parent
2fe2018158
commit
4ddf68f6a0
|
@ -53,19 +53,20 @@ scalar_rules = [
|
|||
PatternRule('perl.array', r'\@[_\+\-]'),
|
||||
PatternRule('perl.array', r"\@\$*" + word2),
|
||||
PatternRule('perl.array', r'\$' + word2 + '(?=\[)'),
|
||||
PatternRule('perl.array', r"\$(?= *\[)"),
|
||||
|
||||
PatternRule('perl.hash', r"\%(?= *{)"),
|
||||
PatternRule('perl.hash', r'\%(?:[!]|^H)'),
|
||||
PatternRule('perl.hash', r"\%\$*" + word2),
|
||||
PatternRule('perl.hash', r'\$' + word2 + '(?= *\{)'),
|
||||
|
||||
PatternRule('perl.hash', r"\$(?= *{)"),
|
||||
|
||||
PatternRule('perl.scalar', r'\$[_&`\'\+\*\.|,\\";#\%=\-~\^:\?!@\$<>()\[\]](?!' + wchr2 + ')'),
|
||||
PatternRule('perl.scalar', r'\$\d+(?!' + wchr2 +')'),
|
||||
PatternRule('perl.scalar', r'\$\^(?:' + word1 + '|' + wchr1 + ')'),
|
||||
PatternRule('perl.scalar', r'\$\^O'),
|
||||
PatternRule('perl.scalar', r'\${\^' + word1 + '}'),
|
||||
PatternRule('perl.scalar', r'\$' + word2),
|
||||
PatternRule('perl.scalar', r'\$+' + word2),
|
||||
]
|
||||
|
||||
def _make_string_rules(forbidden):
|
||||
|
|
Loading…
Reference in New Issue