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 368e053 commit af04107Copy full SHA for af04107
lib/coderay/scanners/python.rb
@@ -75,12 +75,10 @@ class Python < Scanner
75
<<=? | >>=? | [<>=]=? | != # comparison and assignment
76
/x # :nodoc:
77
78
- # FIXME: cache attack
79
STRING_DELIMITER_REGEXP = Hash.new { |h, delimiter|
80
h[delimiter] = Regexp.union delimiter # :nodoc:
81
}
82
83
84
STRING_CONTENT_REGEXP = Hash.new { |h, delimiter|
85
h[delimiter] = / [^\\\n]+? (?= \\ | $ | #{Regexp.escape(delimiter)} ) /x # :nodoc:
86
0 commit comments