diff options
author | Kornelius Kalnbach <murphy@rubychan.de> | 2012-03-02 18:02:58 +0100 |
---|---|---|
committer | Kornelius Kalnbach <murphy@rubychan.de> | 2012-03-02 18:02:58 +0100 |
commit | d9bb7f2f718d5eb6ac104f7b661e32fae22f808c (patch) | |
tree | 8bc73c70a2953630fb55047be11ef1170197e9a6 /lib/coderay/scanners/python.rb | |
parent | 9e9594156c3e83bb5a7529dfa9fb70aa2bf66e2f (diff) | |
download | coderay-d9bb7f2f718d5eb6ac104f7b661e32fae22f808c.tar.gz |
replace weird regexp that confuses ruby-head
Diffstat (limited to 'lib/coderay/scanners/python.rb')
-rw-r--r-- | lib/coderay/scanners/python.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/python.rb b/lib/coderay/scanners/python.rb index 5e38a2c..cbdbbdb 100644 --- a/lib/coderay/scanners/python.rb +++ b/lib/coderay/scanners/python.rb @@ -61,7 +61,7 @@ module Scanners add(PREDEFINED_VARIABLES_AND_CONSTANTS, :predefined_constant). add(PREDEFINED_EXCEPTIONS, :exception) # :nodoc: - NAME = / [^\W\d] \w* /x # :nodoc: + NAME = / [[:alpha:]_] \w* /x # :nodoc: ESCAPE = / [abfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc: UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} | N\{[-\w ]+\} /x # :nodoc: |