]> git.lizzy.rs Git - micro.git/blob - runtime/syntax/dart.micro
added pascal syntax
[micro.git] / runtime / syntax / dart.micro
1 syntax "dart" "\.dart$"
2
3 color constant.number   "\b[-+]?([1-9][0-9]*|0[0-7]*|0x[0-9a-fA-F]+)([uU][lL]?|[lL][uU]?)?\b"
4 color constant.number   "\b[-+]?([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([EePp][+-]?[0-9]+)?[fFlL]?"
5 color constant.number   "\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
6 color identifier "[A-Za-z_][A-Za-z0-9_]*[[:space:]]*[(]"
7 color statement  "\b(break|case|catch|continue|default|else|finally)\b"
8 color statement  "\b(for|function|get|if|in|as|is|new|return|set|switch|final|await|async|sync)\b"
9 color statement  "\b(switch|this|throw|try|var|void|while|with|import|library|part|const|export)\b"
10 color constant "\b(true|false|null)\b"
11 color type     "\b(List|String)\b"
12 color type     "\b(int|num|double|bool)\b"
13 color statement "[-+/*=<>!~%?:&|]"
14 color constant   "/[^*]([^/]|(\\/))*[^\\]/[gim]*"
15 color constant   "\\[0-7][0-7]?[0-7]?|\\x[0-9a-fA-F]+|\\[bfnrt'"\?\\]"
16 color comment "(^|[[:space:]])//.*"
17 color comment "/\*.+\*/"
18 color todo "TODO:?"
19 color constant.string ""(\\.|[^"])*"|'(\\.|[^'])*'"