mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 22:37:10 +09:00
syntax/json: Add comment support to the syntax highlighting (#3434)
* allow comments in json * syntax/json: Add colon to `TODO` comments --------- Co-authored-by: Sertonix <83883937+Sertonix@users.noreply.github.com>
This commit is contained in:
@@ -25,3 +25,15 @@ rules:
|
||||
|
||||
- statement: "\\\"(\\\\\"|[^\"])*\\\"[[:space:]]*:\" \"'(\\'|[^'])*'[[:space:]]*:"
|
||||
- constant: "\\\\u[0-9a-fA-F]{4}|\\\\[bfnrt'\"/\\\\]"
|
||||
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
||||
- comment:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
||||
Reference in New Issue
Block a user