diff options
| author | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 22:47:00 +0100 |
|---|---|---|
| committer | Kornelius Kalnbach <murphy@rubychan.de> | 2013-03-10 22:47:00 +0100 |
| commit | 0c98047ea276f393daa8249cf9c124ebc08266d2 (patch) | |
| tree | 71e7333e04e7fd1ff12fa9351886faeec2701671 /lib/coderay/scanners/python.rb | |
| parent | 250373646c32e3c135fb4068b195b578cbdc5870 (diff) | |
| parent | fc16be24d48f8a729ac987149f98f19725943e0d (diff) | |
| download | coderay-0c98047ea276f393daa8249cf9c124ebc08266d2.tar.gz | |
Merge branch 'master' into paint-integration
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: |
