Fix edge case when comment is at start of line (#2237)
This commit is contained in:
parent
6998cb5602
commit
c442d7030d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ rules:
|
|||
- constant.number: "\\b0[bB][01][01_]+\\b"
|
||||
- constant.number: "\\b[0-9_]((\\.?)[0-9_]+)?[eE][+\\-][0-9][0-9_]+\\b"
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
- comment: "[[:space:]]*[^\\\\]#.*$"
|
||||
- comment: "[[:space:]]*(?:[^\\\\]|^)#.*$"
|
||||
- comment:
|
||||
start: "\\#\\["
|
||||
end: "\\]\\#"
|
||||
|
|
Loading…
Reference in a new issue