We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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