mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Add converted syntax files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
filetype: dart
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.dart$"
|
||||
|
||||
rules:
|
||||
@@ -11,33 +11,13 @@ rules:
|
||||
- statement: "\\b(break|case|catch|continue|default|else|finally)\\b"
|
||||
- statement: "\\b(for|function|get|if|in|as|is|new|return|set|switch|final|await|async|sync)\\b"
|
||||
- statement: "\\b(switch|this|throw|try|var|void|while|with|import|library|part|const|export)\\b"
|
||||
- constant: "\\b(true|false|null)\\b"
|
||||
- constant.bool: "\\b(true|false|null)\\b"
|
||||
- type: "\\b(List|String)\\b"
|
||||
- type: "\\b(int|num|double|bool)\\b"
|
||||
- statement: "[-+/*=<>!~%?:&|]"
|
||||
- symbol.operator: "[-+/*=<>!~%?:&|]"
|
||||
- constant: "/[^*]([^/]|(\\\\/))*[^\\\\]/[gim]*"
|
||||
- constant: "\\\\[0-7][0-7]?[0-7]?|\\\\x[0-9a-fA-F]+|\\\\[bfnrt'\"\\?\\\\]"
|
||||
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules:
|
||||
- todo: "TODO:?"
|
||||
|
||||
- comment:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules:
|
||||
- todo: "TODO:?"
|
||||
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
- constant.string:
|
||||
start: "'"
|
||||
end: "'"
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- comment: "(^|[[:space:]])//.*"
|
||||
- comment: "/\\*.+\\*/"
|
||||
- todo: "TODO:?"
|
||||
- constant.string: "\"(\\\\.|[^\"])*\"|'(\\\\.|[^'])*'"
|
||||
|
||||
Reference in New Issue
Block a user