Added: - support for space delimitor in every case, included multiline value - check for odd number of backslash escapes - "!" as comment start - support for escape of spaces and separators Dropped: - undocumented ";" and "//" comment start
12 lines
246 B
Text
12 lines
246 B
Text
# Assures lines lead by either # or ! are recognized as a comment
|
|
|
|
---input---
|
|
! a comment
|
|
# also a comment
|
|
|
|
---tokens---
|
|
'! a comment' Comment.Single
|
|
'\n' Text.Whitespace
|
|
|
|
'# also a comment' Comment.Single
|
|
'\n' Text.Whitespace
|