mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-04 22:20:20 +09:00
Revert "syntax: Remove empty rules in regions"
This reverts commit a9b513a28a.
This commit is contained in:
@@ -19,4 +19,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "\\$(\\{|ENV\\{)"
|
start: "\\$(\\{|ENV\\{)"
|
||||||
end: "\\}"
|
end: "\\}"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- identifier.macro: "\\b(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\\b"
|
- identifier.macro: "\\b(APPLE|UNIX|WIN32|CYGWIN|BORLAND|MINGW|MSVC(_IDE|60|71|80|90)?)\\b"
|
||||||
|
|
||||||
|
|||||||
@@ -27,10 +27,12 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "`"
|
end: "`"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "%x\\{"
|
start: "%x\\{"
|
||||||
end: "\\}"
|
end: "\\}"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -66,4 +68,5 @@ rules:
|
|||||||
- constant:
|
- constant:
|
||||||
start: "<<-?'?EOT'?"
|
start: "<<-?'?EOT'?"
|
||||||
end: "^EOT"
|
end: "^EOT"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -109,10 +109,13 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\+"
|
start: "/\\+"
|
||||||
end: "\\+/"
|
end: "\\+/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ rules:
|
|||||||
- default:
|
- default:
|
||||||
start: "<%"
|
start: "<%"
|
||||||
end: "%>"
|
end: "%>"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- preproc: "<%|%>"
|
- preproc: "<%|%>"
|
||||||
- red: "&[^;[[:space:]]]*;"
|
- red: "&[^;[[:space:]]]*;"
|
||||||
@@ -36,5 +37,6 @@ rules:
|
|||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "<<-?'?EOT'?"
|
start: "<<-?'?EOT'?"
|
||||||
end: "^EOT"
|
end: "^EOT"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- todo: "(XXX|TODO|FIXME|\\?\\?\\?)"
|
- todo: "(XXX|TODO|FIXME|\\?\\?\\?)"
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ rules:
|
|||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
# - constant.specialChar: "%."
|
# - constant.specialChar: "%."
|
||||||
# - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
|
# - constant.specialChar: "\\\\[abfnrtv'\\\"\\\\]"
|
||||||
# - constant.specialChar: "\\\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
# - constant.specialChar: "\\\\([0-7]{3}|x[A-Fa-f0-9]{2}|u[A-Fa-f0-9]{4}|U[A-Fa-f0-9]{8})"
|
||||||
@@ -41,3 +42,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "%"
|
start: "%"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ rules:
|
|||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\b([Ss.]\" )"
|
start: "\\b([Ss.]\" )"
|
||||||
end: "\""
|
end: "\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "\\("
|
start: "\\("
|
||||||
|
|||||||
@@ -45,3 +45,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\\(\\*"
|
start: "\\(\\*"
|
||||||
end: "\\*\\)"
|
end: "\\*\\)"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ rules:
|
|||||||
- special:
|
- special:
|
||||||
start: "^```"
|
start: "^```"
|
||||||
end: "^```"
|
end: "^```"
|
||||||
|
rules: []
|
||||||
# heading lines
|
# heading lines
|
||||||
- special: "^#{1,3}.*"
|
- special: "^#{1,3}.*"
|
||||||
# unordered list items
|
# unordered list items
|
||||||
|
|||||||
@@ -20,3 +20,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ rules:
|
|||||||
- comment.line:
|
- comment.line:
|
||||||
start: "^#"
|
start: "^#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# Diffs (i.e. git commit --verbose)
|
# Diffs (i.e. git commit --verbose)
|
||||||
- default:
|
- default:
|
||||||
|
|||||||
@@ -11,3 +11,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -16,3 +16,4 @@ rules:
|
|||||||
- comment.line:
|
- comment.line:
|
||||||
start: "^#"
|
start: "^#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "`"
|
end: "`"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
|
|||||||
@@ -44,3 +44,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ rules:
|
|||||||
- constant:
|
- constant:
|
||||||
start: "(\\\\|\\\\\\\\)n\\["
|
start: "(\\\\|\\\\\\\\)n\\["
|
||||||
end: "]"
|
end: "]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- type: "^\\.[[:space:]]*[^[[:space:]]]*"
|
- type: "^\\.[[:space:]]*[^[[:space:]]]*"
|
||||||
- comment: "^\\.\\\\\".*$"
|
- comment: "^\\.\\\\\".*$"
|
||||||
@@ -18,10 +19,12 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "(\\\\|\\\\\\\\)\\*\\["
|
start: "(\\\\|\\\\\\\\)\\*\\["
|
||||||
end: "]"
|
end: "]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.specialChar: "\\\\\\(.."
|
- constant.specialChar: "\\\\\\(.."
|
||||||
- constant.specialChar:
|
- constant.specialChar:
|
||||||
start: "\\\\\\["
|
start: "\\\\\\["
|
||||||
end: "]"
|
end: "]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- identifier.macro: "\\\\\\\\\\$[1-9]"
|
- identifier.macro: "\\\\\\\\\\$[1-9]"
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ rules:
|
|||||||
- identifier:
|
- identifier:
|
||||||
start: "[$][{]"
|
start: "[$][{]"
|
||||||
end: "[}]"
|
end: "[}]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# Triple-single-quoted strings
|
# Triple-single-quoted strings
|
||||||
- constant.string:
|
- constant.string:
|
||||||
@@ -89,6 +90,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "[$]/"
|
start: "[$]/"
|
||||||
end: "/[$]"
|
end: "/[$]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# Single-line comments
|
# Single-line comments
|
||||||
- comment:
|
- comment:
|
||||||
@@ -108,3 +110,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "/[*][*]@?"
|
start: "/[*][*]@?"
|
||||||
end: "[*]/"
|
end: "[*]/"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ rules:
|
|||||||
- default:
|
- default:
|
||||||
start: ">"
|
start: ">"
|
||||||
end: "<"
|
end: "<"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- symbol.tag: "<|>"
|
- symbol.tag: "<|>"
|
||||||
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ rules:
|
|||||||
- default:
|
- default:
|
||||||
start: ">"
|
start: ">"
|
||||||
end: "<"
|
end: "<"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- symbol.tag: "<|>"
|
- symbol.tag: "<|>"
|
||||||
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
- constant.string.url: "(ftp(s)?|http(s)?|git|chrome)://[^ ]+"
|
||||||
|
|||||||
@@ -28,8 +28,10 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -16,3 +16,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "{#"
|
start: "{#"
|
||||||
end: "#}"
|
end: "#}"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ rules:
|
|||||||
|
|
||||||
start: "\\|\\|\\| *$"
|
start: "\\|\\|\\| *$"
|
||||||
end: "^ *\\|\\|\\|"
|
end: "^ *\\|\\|\\|"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# multi-line comment
|
# multi-line comment
|
||||||
- comment:
|
- comment:
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\"\"\""
|
start: "\"\"\""
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -43,11 +44,14 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'\""
|
start: "'\""
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#="
|
start: "#="
|
||||||
end: "=#"
|
end: "=#"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -37,3 +37,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -23,4 +23,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "^!"
|
start: "^!"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -54,11 +54,14 @@ rules:
|
|||||||
start: "\""
|
start: "\""
|
||||||
end: "(\"|$)"
|
end: "(\"|$)"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
end: "('|$)"
|
end: "('|$)"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "%\\{"
|
start: "%\\{"
|
||||||
end: "%\\}"
|
end: "%\\}"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "%"
|
start: "%"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,7 @@ rules:
|
|||||||
- constant.string.url:
|
- constant.string.url:
|
||||||
start: "https?://"
|
start: "https?://"
|
||||||
end: "\\s"
|
end: "\\s"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# path
|
# path
|
||||||
# - constant.string.url: "\\b(.+)/([^/]+)\\b" # linux
|
# - constant.string.url: "\\b(.+)/([^/]+)\\b" # linux
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\[\\["
|
start: "\\[\\["
|
||||||
end: "\\]\\]"
|
end: "\\]\\]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# support first few lengths of "long brackets" explicitly
|
# support first few lengths of "long brackets" explicitly
|
||||||
# brackets longer than that will give false positives
|
# brackets longer than that will give false positives
|
||||||
@@ -52,18 +53,22 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\[=\\["
|
start: "\\[=\\["
|
||||||
end: "\\]=\\]"
|
end: "\\]=\\]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\[==\\["
|
start: "\\[==\\["
|
||||||
end: "\\]==\\]"
|
end: "\\]==\\]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\[===\\["
|
start: "\\[===\\["
|
||||||
end: "\\]===\\]"
|
end: "\\]===\\]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\\[====+\\["
|
start: "\\[====+\\["
|
||||||
end: "\\]====+\\]"
|
end: "\\]====+\\]"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment.block:
|
- comment.block:
|
||||||
start: "\\-\\-\\[\\["
|
start: "\\-\\-\\[\\["
|
||||||
|
|||||||
@@ -18,6 +18,8 @@ rules:
|
|||||||
- default:
|
- default:
|
||||||
start: "^\\n\\n"
|
start: "^\\n\\n"
|
||||||
end: ".*"
|
end: ".*"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "^>.*"
|
start: "^>.*"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -34,4 +34,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -46,3 +46,4 @@ rules:
|
|||||||
- special:
|
- special:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "`"
|
end: "`"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -11,10 +11,13 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "dnl"
|
start: "dnl"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'$"
|
start: "'$"
|
||||||
end: "';$"
|
end: "';$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment: "(^|[[:space:]])#([^{].*)?$"
|
- comment: "(^|[[:space:]])#([^{].*)?$"
|
||||||
- indent-char.whitespace: "[[:space:]]+$"
|
- indent-char.whitespace: "[[:space:]]+$"
|
||||||
|
|||||||
@@ -22,5 +22,6 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\\#\\["
|
start: "\\#\\["
|
||||||
end: "\\]\\#"
|
end: "\\]\\#"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- todo: "(TODO|FIXME|XXX):?"
|
- todo: "(TODO|FIXME|XXX):?"
|
||||||
|
|||||||
@@ -14,15 +14,19 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "''"
|
start: "''"
|
||||||
end: "''"
|
end: "''"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -94,6 +94,7 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
|||||||
@@ -40,3 +40,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\\(\\*"
|
start: "\\(\\*"
|
||||||
end: "\\*\\)"
|
end: "\\*\\)"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "`"
|
end: "`"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ rules:
|
|||||||
- special:
|
- special:
|
||||||
start: "asm"
|
start: "asm"
|
||||||
end: "end"
|
end: "end"
|
||||||
|
rules: []
|
||||||
- constant.number: "\\$[0-9A-Fa-f]+"
|
- constant.number: "\\$[0-9A-Fa-f]+"
|
||||||
- constant.number: "\\b[+-]?[0-9]+([.]?[0-9]+)?(?i:e[+-]?[0-9]+)?"
|
- constant.number: "\\b[+-]?[0-9]+([.]?[0-9]+)?(?i:e[+-]?[0-9]+)?"
|
||||||
- constant.string:
|
- constant.string:
|
||||||
@@ -28,13 +29,17 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "{\\$"
|
start: "{\\$"
|
||||||
end: "}"
|
end: "}"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "\\(\\*"
|
start: "\\(\\*"
|
||||||
end: "\\*\\)"
|
end: "\\*\\)"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "({)(?:[^$])"
|
start: "({)(?:[^$])"
|
||||||
end: "}"
|
end: "}"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -28,10 +28,12 @@ rules:
|
|||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\'"
|
skip: "\\\\'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string: "\"\\(.*\\)\"|qq?\\|.*\\||qq?\\{.*\\}|qq?\\/.*\\/"
|
- constant.string: "\"\\(.*\\)\"|qq?\\|.*\\||qq?\\{.*\\}|qq?\\/.*\\/"
|
||||||
- constant.number: "\\b([0-9]*[.])?[0-9]+"
|
- constant.number: "\\b([0-9]*[.])?[0-9]+"
|
||||||
@@ -43,11 +45,14 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "(^use| = new)"
|
start: "(^use| = new)"
|
||||||
end: ";"
|
end: ";"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "^="
|
start: "^="
|
||||||
end: "^=cut"
|
end: "^=cut"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "<< 'STOP'"
|
start: "<< 'STOP'"
|
||||||
end: "STOP"
|
end: "STOP"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -40,9 +40,11 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "(^|[[:space:]])*(//|#)"
|
start: "(^|[[:space:]])*(//|#)"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
|
|||||||
@@ -26,10 +26,12 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\"\"\"[^\"]*"
|
start: "\"\"\"[^\"]*"
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment: "(^|[[:space:]])//.*"
|
- comment: "(^|[[:space:]])//.*"
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- todo: "TODO:?"
|
- todo: "TODO:?"
|
||||||
|
|||||||
@@ -17,4 +17,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -32,10 +32,12 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\"\"\""
|
start: "\"\"\""
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'''"
|
start: "'''"
|
||||||
end: "'''"
|
end: "'''"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -54,4 +56,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -34,10 +34,12 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\"\"\""
|
start: "\"\"\""
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'''"
|
start: "'''"
|
||||||
end: "'''"
|
end: "'''"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
|
|||||||
@@ -29,11 +29,14 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "(^use| = new)"
|
start: "(^use| = new)"
|
||||||
end: ";"
|
end: ";"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "<<EOSQL"
|
start: "<<EOSQL"
|
||||||
end: "EOSQL"
|
end: "EOSQL"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "^(Source|Patch)"
|
start: "^(Source|Patch)"
|
||||||
end: ":"
|
end: ":"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- preproc: "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
|
- preproc: "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
|
||||||
- preproc: "(ifarch|ifnarch|ifos|ifnos)"
|
- preproc: "(ifarch|ifnarch|ifos|ifnos)"
|
||||||
@@ -23,10 +24,12 @@ rules:
|
|||||||
- statement:
|
- statement:
|
||||||
start: "%\\{"
|
start: "%\\{"
|
||||||
end: "\\}"
|
end: "\\}"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- statement:
|
- statement:
|
||||||
start: "%\\{__"
|
start: "%\\{__"
|
||||||
end: "\\}"
|
end: "\\}"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- statement: "\\$(RPM_BUILD_ROOT)\\>"
|
- statement: "\\$(RPM_BUILD_ROOT)\\>"
|
||||||
- special: "^%(build$|changelog|check$|clean$|description)"
|
- special: "^%(build$|changelog|check$|clean$|description)"
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ rules:
|
|||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -66,5 +67,6 @@ rules:
|
|||||||
- constant.macro:
|
- constant.macro:
|
||||||
start: "<<-?'?EOT'?"
|
start: "<<-?'?EOT'?"
|
||||||
end: "^EOT"
|
end: "^EOT"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- preproc.shebang: "^#!.+?( |$)"
|
- preproc.shebang: "^#!.+?( |$)"
|
||||||
|
|||||||
@@ -31,18 +31,22 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "[bc]?r#\""
|
start: "[bc]?r#\""
|
||||||
end: "\"#"
|
end: "\"#"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "[bc]?r##\""
|
start: "[bc]?r##\""
|
||||||
end: "\"##"
|
end: "\"##"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "[bc]?r###\""
|
start: "[bc]?r###\""
|
||||||
end: "\"###"
|
end: "\"###"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "[bc]?r####+\""
|
start: "[bc]?r####+\""
|
||||||
end: "\"####+"
|
end: "\"####+"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# Character literals
|
# Character literals
|
||||||
# NOTE: This is an ugly hack to work around the fact that rust uses
|
# NOTE: This is an ugly hack to work around the fact that rust uses
|
||||||
@@ -54,6 +58,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'\""
|
start: "'\""
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
@@ -70,3 +75,4 @@ rules:
|
|||||||
- special:
|
- special:
|
||||||
start: "#!\\["
|
start: "#!\\["
|
||||||
end: "\\]"
|
end: "\\]"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -32,10 +32,12 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\"\"\""
|
start: "\"\"\""
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "'''"
|
start: "'''"
|
||||||
end: "'''"
|
end: "'''"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -54,4 +56,5 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "^ *(use|include) <"
|
start: "^ *(use|include) <"
|
||||||
end: ">;?"
|
end: ">;?"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.number: "\\b[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|PI|inf|nan\\b"
|
- constant.number: "\\b[-+]?[0-9]*\\.?[0-9]+([eE][-+]?[0-9]+)?|PI|inf|nan\\b"
|
||||||
- constant.bool: "\\b(true|false)\\b"
|
- constant.bool: "\\b(true|false)\\b"
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\"\"\""
|
start: "\"\"\""
|
||||||
end: "\"\"\""
|
end: "\"\"\""
|
||||||
|
rules: []
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
@@ -20,10 +21,13 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*\\*"
|
start: "/\\*\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
@@ -48,16 +48,19 @@ rules:
|
|||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "<<[^\\s]+[-~.]*[A-Za-z0-9]+$"
|
start: "<<[^\\s]+[-~.]*[A-Za-z0-9]+$"
|
||||||
end: "^[^\\s]+[A-Za-z0-9]+$"
|
end: "^[^\\s]+[A-Za-z0-9]+$"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "(^|\\s)#"
|
start: "(^|\\s)#"
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ rules:
|
|||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -49,5 +50,6 @@ rules:
|
|||||||
- constant.macro:
|
- constant.macro:
|
||||||
start: "<<-?'?EOT'?"
|
start: "<<-?'?EOT'?"
|
||||||
end: "^EOT"
|
end: "^EOT"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- preproc.shebang: "^#!.+?( |$)"
|
- preproc.shebang: "^#!.+?( |$)"
|
||||||
|
|||||||
@@ -20,9 +20,11 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
- todo: "TODO:?"
|
- todo: "TODO:?"
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
|
|||||||
@@ -11,6 +11,7 @@ rules:
|
|||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
- identifier.macro: "\\$\\w+"
|
- identifier.macro: "\\$\\w+"
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
|
|
||||||
@@ -21,6 +22,7 @@ rules:
|
|||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
- identifier.macro: "\\$\\w+"
|
- identifier.macro: "\\$\\w+"
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
|
|
||||||
@@ -44,6 +46,7 @@ rules:
|
|||||||
- identifier.macro:
|
- identifier.macro:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "///?"
|
start: "///?"
|
||||||
|
|||||||
@@ -8,9 +8,11 @@ rules:
|
|||||||
- identifier:
|
- identifier:
|
||||||
start: "\\{"
|
start: "\\{"
|
||||||
end: "\\}"
|
end: "\\}"
|
||||||
|
rules: []
|
||||||
- identifier:
|
- identifier:
|
||||||
start: "\\["
|
start: "\\["
|
||||||
end: "\\]"
|
end: "\\]"
|
||||||
|
rules: []
|
||||||
# numbers
|
# numbers
|
||||||
- constant.number: "\\b[0-9]+(\\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\\b"
|
- constant.number: "\\b[0-9]+(\\.[0-9]+)?([[:space:]](pt|mm|cm|in|ex|em|bp|pc|dd|cc|nd|nc|sp))?\\b"
|
||||||
# let brackets have the default color again
|
# let brackets have the default color again
|
||||||
@@ -23,6 +25,8 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "[^\\\\]%|^%"
|
start: "[^\\\\]%|^%"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "\\\\begin\\{comment\\}"
|
start: "\\\\begin\\{comment\\}"
|
||||||
end: "\\\\end\\{comment\\}"
|
end: "\\\\end\\{comment\\}"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -27,9 +27,11 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'''"
|
start: "'''"
|
||||||
end: "'{3,5}"
|
end: "'{3,5}"
|
||||||
|
rules: []
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
# Integer
|
# Integer
|
||||||
- constant.number: '[+-]?(\d+_)*\d+\b'
|
- constant.number: '[+-]?(\d+_)*\d+\b'
|
||||||
- constant.number: '(0x([[:xdigit:]]+_)*[[:xdigit:]]+|0o([0-7]_)*[0-7]+|0b([01]+_)*[01]+)'
|
- constant.number: '(0x([[:xdigit:]]+_)*[[:xdigit:]]+|0o([0-7]_)*[0-7]+|0b([01]+_)*[01]+)'
|
||||||
|
|||||||
@@ -52,3 +52,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "\\{#"
|
start: "\\{#"
|
||||||
end: "#\\}"
|
end: "#\\}"
|
||||||
|
rules: []
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "`"
|
start: "`"
|
||||||
end: "`"
|
end: "`"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- todo: "TODO:?"
|
- todo: "TODO:?"
|
||||||
- indent-char.whitespace: "[[:space:]]+$"
|
- indent-char.whitespace: "[[:space:]]+$"
|
||||||
|
|||||||
@@ -14,6 +14,7 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "(^\"|[ \t]+\" |[ \t]+\"$)"
|
start: "(^\"|[ \t]+\" |[ \t]+\"$)"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ rules:
|
|||||||
- comment.block:
|
- comment.block:
|
||||||
start: "<!\\-\\-"
|
start: "<!\\-\\-"
|
||||||
end: "\\-\\->"
|
end: "\\-\\->"
|
||||||
|
rules: []
|
||||||
|
|
||||||
# Bootstrap
|
# Bootstrap
|
||||||
- symbol.tag.extended: "(?i)<[/]?(b-alert|b-aspect|b-avatar|b-badge|b-icon|b-breadcrumb|b-button-group|b-button-toolbar|b-button|b-calendar|b-card-text|b-card-input|b-card|b-carousel-slide|b-carousel|b-collapse|b-dropdown|b-dropdown-item|b-dropdown-divider|b-embed|b-form-checkbox-group|b-form-checkbox|b-form-datepicker|b-form-file|b-form-group|b-form-input|b-form-radio|b-form-rating|b-form-select|b-form-spinbutton|b-form-tags|b-form-textarea|b-form|b-form-timepicker|b-img-lazy|b-img|b-input-group|b-jumbotron|b-input|b-container|b-row|b-col|b-link|b-list-group|b-list-group-item|b-media|b-modal|b-nav|b-nav-item|b-nav-item-dropdown|b-nav-text|b-nav-form|b-navbar|b-navbar-brand|b-navbar-toggle|b-navbar-nav|b-overlay|b-pagination|b-pagination-nav|b-popover|b-progress|b-progress-bar|b-sidebar|b-skeleton-wrapper|b-skeleton|b-spinner|b-table|b-table-lite|b-table-simple|b-tabs|b-tab|b-time|b-toast|b-tooltip)\\b"
|
- symbol.tag.extended: "(?i)<[/]?(b-alert|b-aspect|b-avatar|b-badge|b-icon|b-breadcrumb|b-button-group|b-button-toolbar|b-button|b-calendar|b-card-text|b-card-input|b-card|b-carousel-slide|b-carousel|b-collapse|b-dropdown|b-dropdown-item|b-dropdown-divider|b-embed|b-form-checkbox-group|b-form-checkbox|b-form-datepicker|b-form-file|b-form-group|b-form-input|b-form-radio|b-form-rating|b-form-select|b-form-spinbutton|b-form-tags|b-form-textarea|b-form|b-form-timepicker|b-img-lazy|b-img|b-input-group|b-jumbotron|b-input|b-container|b-row|b-col|b-link|b-list-group|b-list-group-item|b-media|b-modal|b-nav|b-nav-item|b-nav-item-dropdown|b-nav-text|b-nav-form|b-navbar|b-navbar-brand|b-navbar-toggle|b-navbar-nav|b-overlay|b-pagination|b-pagination-nav|b-popover|b-progress|b-progress-bar|b-sidebar|b-skeleton-wrapper|b-skeleton|b-spinner|b-table|b-table-lite|b-table-simple|b-tabs|b-tab|b-time|b-toast|b-tooltip)\\b"
|
||||||
|
|||||||
@@ -8,10 +8,12 @@ rules:
|
|||||||
- preproc:
|
- preproc:
|
||||||
start: "<!DOCTYPE"
|
start: "<!DOCTYPE"
|
||||||
end: "[/]?>"
|
end: "[/]?>"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "<!--"
|
start: "<!--"
|
||||||
end: "-->"
|
end: "-->"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- symbol.tag:
|
- symbol.tag:
|
||||||
start: "<\\??"
|
start: "<\\??"
|
||||||
@@ -20,6 +22,7 @@ rules:
|
|||||||
- identifier:
|
- identifier:
|
||||||
start: " "
|
start: " "
|
||||||
end: "="
|
end: "="
|
||||||
|
rules: []
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
|
|||||||
@@ -43,8 +43,10 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "(^|\\s)#"
|
start: "(^|\\s)#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
rules: []
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user