Skip to content

Commit

Permalink
feature: syntax for multline comments
Browse files Browse the repository at this point in the history
will break in the specific scenario: user it indenting with 2 spaces,
and have their multiline comment start with 4 spaces, and the first
character in their multiline comment starts with a number
  • Loading branch information
vladdeSV committed Feb 27, 2022
1 parent 4a7ad60 commit 82f2e22
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions syntaxes/klog.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@
}
]
},
"summary-multiline": {
"name": "string.unquoted.summary.multiline.klog",
"begin": "(?<=\\t\\t| {4})(?!\\d)",
"end": "$",
"patterns": [
{
"include": "#tag"
}
]
},
"timespan": {
"name": "markup.other.timespan.klog",
"match": "(<?(?:[01]?\\d|2[0-3]):[0-5]\\d(?:am|pm)?>?)\\s*-\\s*(<?(?:[01]?\\d|2[0-3]):[0-5]\\d(?:am|pm)?>?)"
Expand Down Expand Up @@ -103,6 +113,9 @@
},
{
"include": "#summary-behind-entry"
},
{
"include": "#summary-multiline"
}
]
}
Expand Down

0 comments on commit 82f2e22

Please sign in to comment.