fix issue #1
This commit is contained in:
parent
a33fa666b6
commit
3e781737e4
1 changed files with 4 additions and 2 deletions
|
@ -168,10 +168,12 @@ class ClochurLexer(QsciLexerCustom):
|
|||
# string
|
||||
elif re.match(tmp_parser.string_pattern ,item["str"]):
|
||||
new_state = self.String
|
||||
elif re.match(r"[\"]([^\"\\]|[\\][\"nt]|[\\][\\])+?", item["str"]):
|
||||
elif (re.match(r"[\"]([^\"\\]|[\\][\"nt]|[\\][\\])+?", item["str"]) or re.match(r'["]' ,item["str"])) \
|
||||
and rainbow_state < 10:
|
||||
rainbow_state += 10
|
||||
new_state = self.String
|
||||
elif (re.match(r"([^\"\\]|[\\][\"nt]|[\\][\\])+?[\"]" ,item["str"]) or re.match(r'["]' ,item["str"])):
|
||||
elif (re.match(r"([^\"\\]|[\\][\"nt]|[\\][\\])+?[\"]" ,item["str"]) or re.match(r'["]' ,item["str"])) \
|
||||
and rainbow_state >= 10:
|
||||
new_state = self.String
|
||||
rainbow_state -= 10
|
||||
|
||||
|
|
Loading…
Reference in a new issue