Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e95941 commit d9bb7f2Copy full SHA for d9bb7f2
lib/coderay/scanners/python.rb
@@ -61,7 +61,7 @@ class Python < Scanner
61
add(PREDEFINED_VARIABLES_AND_CONSTANTS, :predefined_constant).
62
add(PREDEFINED_EXCEPTIONS, :exception) # :nodoc:
63
64
- NAME = / [^\W\d] \w* /x # :nodoc:
+ NAME = / [[:alpha:]_] \w* /x # :nodoc:
65
ESCAPE = / [abfnrtv\n\\'"] | x[a-fA-F0-9]{1,2} | [0-7]{1,3} /x # :nodoc:
66
UNICODE_ESCAPE = / u[a-fA-F0-9]{4} | U[a-fA-F0-9]{8} | N\{[-\w ]+\} /x # :nodoc:
67
0 commit comments