Skip to content

Commit

Permalink
Merge pull request #21 from tk0miya/support_multiline_string
Browse files Browse the repository at this point in the history
Support multiline string
  • Loading branch information
tk0miya authored Dec 6, 2021
2 parents cf1ef1b + 358719e commit 2de3fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actdiag/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def tokenize(string):
'[A-Za-z_\\-.0-9\u0080-\uffff]*',)), # NOQA
('Op', (r'[{};,=\[\]]|(<->)|(<-)|(--)|(->)',)), # NOQA
('Number', (r'-?(\.[0-9]+)|([0-9]+(\.[0-9]*)?)',)), # NOQA
('String', (r'(?P<quote>"|\').*?(?<!\\)(?P=quote)', DOTALL)), # NOQA
('String', (r'(?P<quote>(""")|(\'\'\')|"|\').*?(?<!\\)(?P=quote)', DOTALL)), # NOQA
]
useless = ['Comment', 'NL', 'Space']
t = make_tokenizer(specs)
Expand Down

0 comments on commit 2de3fdf

Please sign in to comment.