Fix edge case when comment is at start of line (#2237)

This commit is contained in:
Jake Leahy
2021-12-06 12:45:10 +11:00
committed by GitHub
parent 6998cb5602
commit c442d7030d

View File

@@ -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: "\\]\\#"