mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-05 06:30:28 +09:00
Fix trailing spaces/tabs in yaml syntax files (#3200)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9ab9f8bc1c
commit
426e6c600f
@@ -3,7 +3,7 @@ filetype: ada
|
|||||||
detect:
|
detect:
|
||||||
filename: "(\\.ads$|\\.adb$|\\.ada$)"
|
filename: "(\\.ads$|\\.adb$|\\.ada$)"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
# Operators
|
# Operators
|
||||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||||
- symbol.brackets: "[(){}]|\\[|\\]"
|
- symbol.brackets: "[(){}]|\\[|\\]"
|
||||||
@@ -18,11 +18,11 @@ rules:
|
|||||||
# Constant
|
# Constant
|
||||||
- constant.bool: \b(TRUE|FALSE)
|
- constant.bool: \b(TRUE|FALSE)
|
||||||
- constant.number: ([0-9]+)
|
- constant.number: ([0-9]+)
|
||||||
|
|
||||||
# Storage Types
|
# Storage Types
|
||||||
- type.storage: \b(INTEGER|NATURAL|POSITIVE|FLOAT|CHARACTER|STRING)\b
|
- type.storage: \b(INTEGER|NATURAL|POSITIVE|FLOAT|CHARACTER|STRING)\b
|
||||||
- type.storage: \b(LONG_INTEGER|SHORT_INTEGER|LONG_FLOAT|SHORT_FLOAT)\b
|
- type.storage: \b(LONG_INTEGER|SHORT_INTEGER|LONG_FLOAT|SHORT_FLOAT)\b
|
||||||
|
|
||||||
#Character
|
#Character
|
||||||
- constant.string.char: \'.\'
|
- constant.string.char: \'.\'
|
||||||
|
|
||||||
@@ -36,9 +36,8 @@ rules:
|
|||||||
- constant.interpolation: \\\([[:graph:]]*\)
|
- constant.interpolation: \\\([[:graph:]]*\)
|
||||||
- constant.unicode: \\u\{[[:xdigit:]]+}
|
- constant.unicode: \\u\{[[:xdigit:]]+}
|
||||||
|
|
||||||
|
|
||||||
# Line Comment
|
# Line Comment
|
||||||
- comment.line: "--.*"
|
- comment.line: "--.*"
|
||||||
|
|
||||||
# Todo
|
# Todo
|
||||||
- todo: "(TODO|XXX|FIXME):?"
|
- todo: "(TODO|XXX|FIXME):?"
|
||||||
|
|||||||
@@ -4,9 +4,9 @@ detect:
|
|||||||
filename: "\\.?ino$"
|
filename: "\\.?ino$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
|
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
|
||||||
|
|
||||||
##
|
## Sized (u)int types
|
||||||
- type: "\\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\\b"
|
- type: "\\b((s?size)|((u_?)?int(8|16|32|64|ptr)))_t\\b"
|
||||||
|
|
||||||
## Constants
|
## Constants
|
||||||
@@ -33,7 +33,7 @@ rules:
|
|||||||
- type: "\\b(boolean|byte|char|float|int|long|word)\\b"
|
- type: "\\b(boolean|byte|char|float|int|long|word)\\b"
|
||||||
|
|
||||||
## Control Structions
|
## Control Structions
|
||||||
- statement: "\\b(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\\b"
|
- statement: "\\b(case|class|default|do|double|else|false|for|if|new|null|private|protected|public|short|signed|static|String|switch|this|throw|try|true|unsigned|void|while)\\b"
|
||||||
- statement: "\\b(goto|continue|break|return)\\b"
|
- statement: "\\b(goto|continue|break|return)\\b"
|
||||||
|
|
||||||
## Math
|
## Math
|
||||||
@@ -66,7 +66,7 @@ rules:
|
|||||||
## Structure
|
## Structure
|
||||||
- identifier: "\\b(setup|loop)\\b"
|
- identifier: "\\b(setup|loop)\\b"
|
||||||
|
|
||||||
##
|
##
|
||||||
- statement: "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
|
- statement: "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
|
||||||
|
|
||||||
## GCC builtins
|
## GCC builtins
|
||||||
|
|||||||
@@ -28,7 +28,7 @@ rules:
|
|||||||
# Paragraph Title
|
# Paragraph Title
|
||||||
- statement: "^\\..*$"
|
- statement: "^\\..*$"
|
||||||
|
|
||||||
# source
|
# source
|
||||||
- identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
|
- identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
|
||||||
|
|
||||||
# Other markup
|
# Other markup
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ rules:
|
|||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
end: "'"
|
end: "'"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ rules:
|
|||||||
|
|
||||||
- statement: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))\\s+(.*)$\\n?"
|
- statement: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))\\s+(.*)$\\n?"
|
||||||
- constant: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))"
|
- constant: "^([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+([\\*0-9,\\-\\/]+)\\s+(([\\*0-9,\\-\\/]+)|(\\b(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)\\b))\\s+(([\\*0-9,\\-\\/]+)|(\\b(sun|mon|tue|wed|thu|fri|sat)\\b))"
|
||||||
|
|
||||||
# Shell Values
|
# Shell Values
|
||||||
- type: "^[A-Z]+\\="
|
- type: "^[A-Z]+\\="
|
||||||
|
|
||||||
|
|||||||
@@ -41,4 +41,4 @@ rules:
|
|||||||
end: "\\*\\/"
|
end: "\\*\\/"
|
||||||
rules:
|
rules:
|
||||||
- todo: "(TODO|XXX|FIXME):?"
|
- todo: "(TODO|XXX|FIXME):?"
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ filetype: csharp-script
|
|||||||
detect:
|
detect:
|
||||||
filename: "\\.csx$"
|
filename: "\\.csx$"
|
||||||
signature: "^#!.*/(env +)?dotnet-script( |$)"
|
signature: "^#!.*/(env +)?dotnet-script( |$)"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- include: "csharp"
|
- include: "csharp"
|
||||||
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"
|
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"
|
||||||
|
|||||||
@@ -51,11 +51,11 @@ rules:
|
|||||||
- constant: "\\b(__DATE__|__EOF__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\\b"
|
- constant: "\\b(__DATE__|__EOF__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\\b"
|
||||||
# String literals
|
# String literals
|
||||||
# DoubleQuotedString
|
# DoubleQuotedString
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
# WysiwygString
|
# WysiwygString
|
||||||
- constant.string:
|
- constant.string:
|
||||||
@@ -93,7 +93,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "q\"<"
|
start: "q\"<"
|
||||||
end: "q\">"
|
end: "q\">"
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "q\"[^({[<\"][^\"]*$"
|
start: "q\"[^({[<\"][^\"]*$"
|
||||||
@@ -106,7 +106,7 @@ rules:
|
|||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
# Comments
|
# Comments
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules: []
|
rules: []
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ rules:
|
|||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ detect:
|
|||||||
|
|
||||||
rules:
|
rules:
|
||||||
- identifier: "\\b[A-Za-z_0-9-]*\\b"
|
- identifier: "\\b[A-Za-z_0-9-]*\\b"
|
||||||
|
|
||||||
- statement: "\\b(?i:(if|else|then|do|loop|case|endcase|of|endof|begin|while|repeat|until|again|unloop|leave|exit|done|next|\\?do|\\+do|\\-do|\\+loop|\\-loop|\\?leave))\\b"
|
- statement: "\\b(?i:(if|else|then|do|loop|case|endcase|of|endof|begin|while|repeat|until|again|unloop|leave|exit|done|next|\\?do|\\+do|\\-do|\\+loop|\\-loop|\\?leave))\\b"
|
||||||
|
|
||||||
- statement: "(^:|;$)"
|
- statement: "(^:|;$)"
|
||||||
|
|||||||
@@ -14,16 +14,16 @@ rules:
|
|||||||
- type: "(?i)\\b(program|public|real|recl|recursive|selected_int_kind)\\b"
|
- type: "(?i)\\b(program|public|real|recl|recursive|selected_int_kind)\\b"
|
||||||
- type: "(?i)\\b(selected_real_kind|subroutine|status|module|function|logical)\\b"
|
- type: "(?i)\\b(selected_real_kind|subroutine|status|module|function|logical)\\b"
|
||||||
|
|
||||||
- constant: "(?i)\\b(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\\b"
|
- constant: "(?i)\\b(abs|achar|adjustl|adjustr|allocate|bit_size|call|char)\\b"
|
||||||
- constant: "(?i)\\b(close|contains|count|cpu_time|cshift|date_and_time)\\b"
|
- constant: "(?i)\\b(close|contains|count|cpu_time|cshift|date_and_time)\\b"
|
||||||
- constant: "(?i)\\b(deallocate|digits|dot_product|eor|eoshift|iachar)\\b"
|
- constant: "(?i)\\b(deallocate|digits|dot_product|eor|eoshift|iachar)\\b"
|
||||||
- constant: "(?i)\\b(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\\b"
|
- constant: "(?i)\\b(iand|ibclr|ibits|ibset|ichar|ieor|iolength|ior|ishft|ishftc)\\b"
|
||||||
- constant: "(?i)\\b(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\\b"
|
- constant: "(?i)\\b(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\\b"
|
||||||
- constant: "(?i)\\b(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\\b"
|
- constant: "(?i)\\b(minexponent|minloc|minval|mvbits|namelist|nearest|nullify)\\b"
|
||||||
- constant: "(?i)\\b(open|pad|present|print|product|pure|quote|radix)\\b"
|
- constant: "(?i)\\b(open|pad|present|print|product|pure|quote|radix)\\b"
|
||||||
- constant: "(?i)\\b(random_number|random_seed|range|read|readwrite|replace)\\b"
|
- constant: "(?i)\\b(random_number|random_seed|range|read|readwrite|replace)\\b"
|
||||||
- constant: "(?i)\\b(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\\b"
|
- constant: "(?i)\\b(reshape|rewind|save|scan|sequence|shape|sign|size|spacing)\\b"
|
||||||
- constant: "(?i)\\b(spread|sum|system_clock|target|transfer|transpose|trim)\\b"
|
- constant: "(?i)\\b(spread|sum|system_clock|target|transfer|transpose|trim)\\b"
|
||||||
- constant: "(?i)\\b(ubound|unpack|verify|write|tiny|type|use|yes|true|false|not)\\b"
|
- constant: "(?i)\\b(ubound|unpack|verify|write|tiny|type|use|yes|true|false|not)\\b"
|
||||||
|
|
||||||
- constant.number: "\\b([0-9]+)\\b"
|
- constant.number: "\\b([0-9]+)\\b"
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ rules:
|
|||||||
#patterns
|
#patterns
|
||||||
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
||||||
#patterns-modifiers
|
#patterns-modifiers
|
||||||
- statement: "\\b(as|when|of)\\b"
|
- statement: "\\b(as|when|of)\\b"
|
||||||
#conditions
|
#conditions
|
||||||
- statement: "\\b(if|then|else)\\b"
|
- statement: "\\b(if|then|else)\\b"
|
||||||
#blocs
|
#blocs
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ rules:
|
|||||||
- symbol.operator: "[-+/*=<>?:!~%&|^]"
|
- symbol.operator: "[-+/*=<>?:!~%&|^]"
|
||||||
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ rules:
|
|||||||
- statement: "\\b(set|unset|plot|splot|replot|if|else|do|for|while|fit)\\b"
|
- statement: "\\b(set|unset|plot|splot|replot|if|else|do|for|while|fit)\\b"
|
||||||
- symbol.operator: "[-+/*=<>?:!~%&|^$]"
|
- symbol.operator: "[-+/*=<>?:!~%&|^$]"
|
||||||
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
# godoc
|
# godoc
|
||||||
# example: go doc -all | micro
|
# example: go doc -all | micro
|
||||||
|
|
||||||
filetype: godoc
|
filetype: godoc
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ rules:
|
|||||||
|
|
||||||
- symbol: "(:|=|\\||\\(|\\)|\\{|\\}|\\[|\\])"
|
- symbol: "(:|=|\\||\\(|\\)|\\{|\\}|\\[|\\])"
|
||||||
|
|
||||||
- constant.bool: "\\b(true|false)\\b"
|
- constant.bool: "\\b(true|false)\\b"
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -44,4 +44,4 @@ rules:
|
|||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules: []
|
rules: []
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: groff
|
filetype: groff
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.m[ems]$|\\.rof|\\.tmac$|^tmac."
|
filename: "\\.m[ems]$|\\.rof|\\.tmac$|^tmac."
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: haml
|
filetype: haml
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.haml$"
|
filename: "\\.haml$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: hare
|
filetype: hare
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.ha$"
|
filename: "\\.ha$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ detect:
|
|||||||
rules:
|
rules:
|
||||||
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
|
- identifier: "\\b[A-Z_][0-9A-Z_]+\\b"
|
||||||
- type: "\\b(F64|I8|U8|I16|U16|I32|U32|I64|U64|sizeof|enum|U0|static|extern|struct|union|class|intern|public|argc|argv|asm)\\b"
|
- type: "\\b(F64|I8|U8|I16|U16|I32|U32|I64|U64|sizeof|enum|U0|static|extern|struct|union|class|intern|public|argc|argv|asm)\\b"
|
||||||
|
|
||||||
- statement: "\\b(for|if|while|do|else|case|default|switch)\\b"
|
- statement: "\\b(for|if|while|do|else|case|default|switch)\\b"
|
||||||
- statement: "\\b(try|catch|throw|goto|continue|break|return)\\b"
|
- statement: "\\b(try|catch|throw|goto|continue|break|return)\\b"
|
||||||
- preproc: "^[[:space:]]*#[[:space:]]*(define|pragma|include|(un|ifn?)def|endif|el(if|se)|if|help_index|ifjit|ifaot|exe)"
|
- preproc: "^[[:space:]]*#[[:space:]]*(define|pragma|include|(un|ifn?)def|endif|el(if|se)|if|help_index|ifjit|ifaot|exe)"
|
||||||
|
|
||||||
# Operator Color
|
# Operator Color
|
||||||
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&)"
|
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&)"
|
||||||
- symbol.brackets: "[(){}]|\\[|\\]"
|
- symbol.brackets: "[(){}]|\\[|\\]"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: inputrc
|
filetype: inputrc
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "inputrc$"
|
filename: "inputrc$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ rules:
|
|||||||
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
||||||
- constant: "\\b(null)\\b"
|
- constant: "\\b(null)\\b"
|
||||||
- constant: "\\b(true|false)\\b"
|
- constant: "\\b(true|false)\\b"
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ rules:
|
|||||||
skip: "\\\\\""
|
skip: "\\\\\""
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\\""
|
- constant.specialChar: "\\\\\""
|
||||||
|
|
||||||
# single-quoted verbatim string
|
# single-quoted verbatim string
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "@'"
|
start: "@'"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: kickstart
|
filetype: kickstart
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.ks$|\\.kickstart$"
|
filename: "\\.ks$|\\.kickstart$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -4,10 +4,10 @@ detect:
|
|||||||
filename: "\\.kts?$"
|
filename: "\\.kts?$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|
||||||
# Operators
|
# Operators
|
||||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||||
|
|
||||||
# Statements Keywords
|
# Statements Keywords
|
||||||
- statement: \b(as|by|class|constructor|companion|const|fun|import|in|infix|interface|inline|is|out|operator|package|return|suspend|super|this|when|val|var)\b
|
- statement: \b(as|by|class|constructor|companion|const|fun|import|in|infix|interface|inline|is|out|operator|package|return|suspend|super|this|when|val|var)\b
|
||||||
- statement.properties: \b(get|set)\b
|
- statement.properties: \b(get|set)\b
|
||||||
@@ -16,9 +16,9 @@ rules:
|
|||||||
- statement.member: \b(override|lateinit|init)\b
|
- statement.member: \b(override|lateinit|init)\b
|
||||||
- statement.access: \b(internal|private|protected|public)\b
|
- statement.access: \b(internal|private|protected|public)\b
|
||||||
- statement.parameter: \b(crossinline|noinline|reified|vararg)\b
|
- statement.parameter: \b(crossinline|noinline|reified|vararg)\b
|
||||||
|
|
||||||
# Expression and types
|
# Expression and types
|
||||||
- type: \b(dynamic|object|throw|typealias)\b
|
- type: \b(dynamic|object|throw|typealias)\b
|
||||||
|
|
||||||
# Meta
|
# Meta
|
||||||
- statement.meta: \@(\bfile|delegate|field|get|property|receiver|set|setparam|param|)\b
|
- statement.meta: \@(\bfile|delegate|field|get|property|receiver|set|setparam|param|)\b
|
||||||
@@ -26,10 +26,10 @@ rules:
|
|||||||
# Constant
|
# Constant
|
||||||
- constant: \b(true|false|null)
|
- constant: \b(true|false|null)
|
||||||
- constant.number: ([0-9]+)
|
- constant.number: ([0-9]+)
|
||||||
|
|
||||||
# Storage Types
|
# Storage Types
|
||||||
- type.storage: \b(Byte|UByte|Char|Double|Float|Int|UInt|Long|ULong|Short|UShort|Boolean|Unit|Nothing)\b
|
- type.storage: \b(Byte|UByte|Char|Double|Float|Int|UInt|Long|ULong|Short|UShort|Boolean|Unit|Nothing)\b
|
||||||
|
|
||||||
# Collections
|
# Collections
|
||||||
- type.collections: \b(Array)\b
|
- type.collections: \b(Array)\b
|
||||||
|
|
||||||
@@ -44,17 +44,17 @@ rules:
|
|||||||
|
|
||||||
# Shebang Line
|
# Shebang Line
|
||||||
- comment.shebang: ^(#!).*
|
- comment.shebang: ^(#!).*
|
||||||
|
|
||||||
# Line Comment
|
# Line Comment
|
||||||
- comment.line: "//.*"
|
- comment.line: "//.*"
|
||||||
|
|
||||||
# Block Comment
|
# Block Comment
|
||||||
- comment.block:
|
- comment.block:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
rules:
|
rules:
|
||||||
- todo: "(TODO|XXX|FIXME):?"
|
- todo: "(TODO|XXX|FIXME):?"
|
||||||
|
|
||||||
# Doc Block Comment
|
# Doc Block Comment
|
||||||
- comment.block:
|
- comment.block:
|
||||||
start: "/\\*\\*"
|
start: "/\\*\\*"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: ledger
|
filetype: ledger
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
|
filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: lfe
|
filetype: lfe
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "lfe$|\\.lfe$"
|
filename: "lfe$|\\.lfe$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: lisp
|
filetype: lisp
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "(emacs|zile)$|\\.(el|li?sp|scm|ss|rkt)$"
|
filename: "(emacs|zile)$|\\.(el|li?sp|scm|ss|rkt)$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ rules:
|
|||||||
- symbol.brackets: "[(){}\\[\\]]"
|
- symbol.brackets: "[(){}\\[\\]]"
|
||||||
- symbol: "(\\*|//|/|%|\\+|-|\\^|>|>=|<|<=|~=|=|[\\.]{2,3}|#)"
|
- symbol: "(\\*|//|/|%|\\+|-|\\^|>|>=|<|<=|~=|=|[\\.]{2,3}|#)"
|
||||||
|
|
||||||
- constant.number: "\\b((0[xX](([0-9A-Fa-f]+\\.[0-9A-Fa-f]*)|(\\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)|((([0-9]+\\.[0-9]*)|(\\.?[0-9]+))([eE][-+]?[0-9]+)?))"
|
- constant.number: "\\b((0[xX](([0-9A-Fa-f]+\\.[0-9A-Fa-f]*)|(\\.?[0-9A-Fa-f]+))([pP][-+]?[0-9]+)?)|((([0-9]+\\.[0-9]*)|(\\.?[0-9]+))([eE][-+]?[0-9]+)?))"
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
@@ -104,7 +104,7 @@ rules:
|
|||||||
|
|
||||||
# this has to go after block comment or block comment does not work
|
# this has to go after block comment or block comment does not work
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "\\-\\-"
|
start: "\\-\\-"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "^Subject:.*"
|
start: "^Subject:.*"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
- statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
|
- statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
|
||||||
- default:
|
- default:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: man
|
filetype: man
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.[1-9]x?$"
|
filename: "\\.[1-9]x?$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: mpd
|
filetype: mpd
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "mpd\\.conf$"
|
filename: "mpd\\.conf$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: nanorc
|
filetype: nanorc
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.?nanorc$"
|
filename: "\\.?nanorc$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: nginx
|
filetype: nginx
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "nginx.*\\.conf$|\\.nginx$"
|
filename: "nginx.*\\.conf$|\\.nginx$"
|
||||||
signature: "^(server|upstream)[a-z ]*\\{$"
|
signature: "^(server|upstream)[a-z ]*\\{$"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: nim
|
filetype: nim
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.nims?$|nim.cfg"
|
filename: "\\.nims?$|nim.cfg"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ rules:
|
|||||||
#patterns
|
#patterns
|
||||||
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
||||||
#patterns-modifiers
|
#patterns-modifiers
|
||||||
- statement: "\\b(as|when|of)\\b"
|
- statement: "\\b(as|when|of)\\b"
|
||||||
#conditions
|
#conditions
|
||||||
- statement: "\\b(if|then|else)\\b"
|
- statement: "\\b(if|then|else)\\b"
|
||||||
#blocs
|
#blocs
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ rules:
|
|||||||
- constant.string:
|
- constant.string:
|
||||||
start: "#[0-9]{1,}"
|
start: "#[0-9]{1,}"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "'"
|
start: "'"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: peg
|
filetype: peg
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.l?peg$"
|
filename: "\\.l?peg$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: perl
|
filetype: perl
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.p[lmp]$"
|
filename: "\\.p[lmp]$"
|
||||||
signature: "^#!.*/(env +)?perl( |$)"
|
signature: "^#!.*/(env +)?perl( |$)"
|
||||||
|
|
||||||
@@ -10,13 +10,13 @@ rules:
|
|||||||
|
|
||||||
- special: "\\-\\>"
|
- special: "\\-\\>"
|
||||||
- symbol: "(,|\\.)"
|
- symbol: "(,|\\.)"
|
||||||
|
|
||||||
#regexes
|
#regexes
|
||||||
- identifier.macro: "m?\\/.*?\\/[a-z]*"
|
- identifier.macro: "m?\\/.*?\\/[a-z]*"
|
||||||
- identifier.macro: "m?\\|.*?\\|[a-z]*"
|
- identifier.macro: "m?\\|.*?\\|[a-z]*"
|
||||||
- identifier.macro: "\\bs/.*?/.*?/[a-z]*"
|
- identifier.macro: "\\bs/.*?/.*?/[a-z]*"
|
||||||
- identifier.macro: "\\bs\\|.*?\\|.*?\\|[a-z]*"
|
- identifier.macro: "\\bs\\|.*?\\|.*?\\|[a-z]*"
|
||||||
|
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: '"'
|
start: '"'
|
||||||
end: '"'
|
end: '"'
|
||||||
@@ -29,19 +29,19 @@ rules:
|
|||||||
end: "'"
|
end: "'"
|
||||||
skip: "\\\\'"
|
skip: "\\\\'"
|
||||||
rules: []
|
rules: []
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules: []
|
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]+"
|
||||||
- constant.number: "\\b[0-9]+"
|
- constant.number: "\\b[0-9]+"
|
||||||
- constant.number: "\\b0x[a-f0-9]+"
|
- constant.number: "\\b0x[a-f0-9]+"
|
||||||
- constant.string.url: "`(.+?)`"
|
- constant.string.url: "`(.+?)`"
|
||||||
- identifier.var: '[\\$@%].[a-zA-Z0-9_]*'
|
- identifier.var: '[\\$@%].[a-zA-Z0-9_]*'
|
||||||
|
|
||||||
- preproc:
|
- preproc:
|
||||||
start: "(^use| = new)"
|
start: "(^use| = new)"
|
||||||
end: ";"
|
end: ";"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: pc
|
filetype: pc
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.pc$"
|
filename: "\\.pc$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: po
|
filetype: po
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.pot?$"
|
filename: "\\.pot?$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: pony
|
filetype: pony
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.pony$"
|
filename: "\\.pony$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: pov
|
filetype: pov
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.(pov|POV|povray|POVRAY)$"
|
filename: "\\.(pov|POV|povray|POVRAY)$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: privoxy-action
|
filetype: privoxy-action
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.action$"
|
filename: "\\.action$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: privoxy-config
|
filetype: privoxy-config
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "privoxy/config$"
|
filename: "privoxy/config$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: privoxy-filter
|
filetype: privoxy-filter
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.filter$"
|
filename: "\\.filter$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: puppet
|
filetype: puppet
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.pp$"
|
filename: "\\.pp$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ rules:
|
|||||||
- statement: "\\b(library|require|break|else|for|function|if|ifelse|in|next|names|switch|repeat|print|try|tryCatch|isTRUE|return|while)\\b"
|
- statement: "\\b(library|require|break|else|for|function|if|ifelse|in|next|names|switch|repeat|print|try|tryCatch|isTRUE|return|while)\\b"
|
||||||
- constant: "\\b(T|TRUE|F|FALSE|NULL|Inf|NaN|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b"
|
- constant: "\\b(T|TRUE|F|FALSE|NULL|Inf|NaN|NA|NA_integer_|NA_real_|NA_complex_|NA_character_)\\b"
|
||||||
- constant.number: "(\\b[0-9]+\\b|\\b0x[0-9A-Fa-f]+\\b)"
|
- constant.number: "(\\b[0-9]+\\b|\\b0x[0-9A-Fa-f]+\\b)"
|
||||||
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&|\\^|\\$)"
|
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&|\\^|\\$)"
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "#"
|
start: "#"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: rpmspec
|
filetype: rpmspec
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.spec$|\\.rpmspec$"
|
filename: "\\.spec$|\\.rpmspec$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: ruby
|
filetype: ruby
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$"
|
filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$"
|
||||||
signature: "^#!.*/(env +)?ruby( |$)"
|
signature: "^#!.*/(env +)?ruby( |$)"
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: sed
|
filetype: sed
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.sed$"
|
filename: "\\.sed$"
|
||||||
signature: "^#!.*bin/(env +)?sed( |$)"
|
signature: "^#!.*bin/(env +)?sed( |$)"
|
||||||
|
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ filetype: shell
|
|||||||
# File extensions:
|
# File extensions:
|
||||||
# * .sh
|
# * .sh
|
||||||
# * .bash
|
# * .bash
|
||||||
# * .ash
|
# * .ash
|
||||||
# * .ebuild (Gentoo ebuild format)
|
# * .ebuild (Gentoo ebuild format)
|
||||||
#
|
#
|
||||||
# Special filenames:
|
# Special filenames:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: salt
|
filetype: salt
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.sls$"
|
filename: "\\.sls$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: smalltalk
|
filetype: smalltalk
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.(st|sources|changes)$"
|
filename: "\\.(st|sources|changes)$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -21,12 +21,12 @@ rules:
|
|||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules: []
|
rules: []
|
||||||
- comment:
|
- comment:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
rules: []
|
rules: []
|
||||||
- todo: "TODO:?"
|
- todo: "TODO:?"
|
||||||
- constant.string:
|
- constant.string:
|
||||||
start: "\""
|
start: "\""
|
||||||
end: "\""
|
end: "\""
|
||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: sql
|
filetype: sql
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.sql$|sqliterc$"
|
filename: "\\.sql$|sqliterc$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ detect:
|
|||||||
filename: "\\.svelte$"
|
filename: "\\.svelte$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
- default:
|
- default:
|
||||||
start: "<script>"
|
start: "<script>"
|
||||||
end: "</script>"
|
end: "</script>"
|
||||||
rules:
|
rules:
|
||||||
- include: "javascript"
|
- include: "javascript"
|
||||||
|
|
||||||
- default:
|
- default:
|
||||||
start: "<script lang=\"ts\">"
|
start: "<script lang=\"ts\">"
|
||||||
end: "</script>"
|
end: "</script>"
|
||||||
rules:
|
rules:
|
||||||
@@ -24,4 +24,4 @@ rules:
|
|||||||
start: "^"
|
start: "^"
|
||||||
end: "$"
|
end: "$"
|
||||||
rules:
|
rules:
|
||||||
- include: "html5"
|
- include: "html5"
|
||||||
|
|||||||
@@ -4,29 +4,29 @@ detect:
|
|||||||
filename: "\\.swift$"
|
filename: "\\.swift$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|
||||||
# Patterns
|
# Patterns
|
||||||
- type: \b(_)\b
|
- type: \b(_)\b
|
||||||
|
|
||||||
# Operators
|
# Operators
|
||||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||||
|
|
||||||
# Declaration Keywords
|
# Declaration Keywords
|
||||||
- statement.declaration: \b(associatedtype|class|deinit|enum|extension|fileprivate|func|import|init)\b
|
- statement.declaration: \b(associatedtype|class|deinit|enum|extension|fileprivate|func|import|init)\b
|
||||||
- statement.declaration: \b(inout|internal|let|open|operator|private|protocol|public|static|struct|subscript|typealias|var)\b
|
- statement.declaration: \b(inout|internal|let|open|operator|private|protocol|public|static|struct|subscript|typealias|var)\b
|
||||||
|
|
||||||
# Statements Keywords
|
# Statements Keywords
|
||||||
- statement: \b(break|case|continue|default|defer|do|else|fallthrough|for|guard)\b
|
- statement: \b(break|case|continue|default|defer|do|else|fallthrough|for|guard)\b
|
||||||
- statement: \b(if|inif|repeat|return|switch|where|while)\b
|
- statement: \b(if|inif|repeat|return|switch|where|while)\b
|
||||||
|
|
||||||
# keyword.reserved
|
# keyword.reserved
|
||||||
- statement.reserved: \b(associativity|convenience|dynamic|didSet|final|get|infix|indirect|lazy|left|mutating)\b
|
- statement.reserved: \b(associativity|convenience|dynamic|didSet|final|get|infix|indirect|lazy|left|mutating)\b
|
||||||
- statement.reserved: \b(none|nonmutating|override|postfix|precedence|prefix|Protocol|required)\b
|
- statement.reserved: \b(none|nonmutating|override|postfix|precedence|prefix|Protocol|required)\b
|
||||||
- statement.reserved: \b(right|set|Type|unowned|weak|willSet)\b
|
- statement.reserved: \b(right|set|Type|unowned|weak|willSet)\b
|
||||||
|
|
||||||
# Expression and types
|
# Expression and types
|
||||||
- type: \b(as|Any|catch|is|rethrows|super|self|throw|throws|try)\b
|
- type: \b(as|Any|catch|is|rethrows|super|self|throw|throws|try)\b
|
||||||
|
|
||||||
- statement.built_in: \b(abs|advance|alignof|alignofValue|anyGenerator|assert|assertionFailure|bridgeFromObjectiveC)\b
|
- statement.built_in: \b(abs|advance|alignof|alignofValue|anyGenerator|assert|assertionFailure|bridgeFromObjectiveC)\b
|
||||||
- statement.built_in: \b(bridgeFromObjectiveCUnconditional|bridgeToObjectiveC|bridgeToObjectiveCUnconditional|contains)\b
|
- statement.built_in: \b(bridgeFromObjectiveCUnconditional|bridgeToObjectiveC|bridgeToObjectiveCUnconditional|contains)\b
|
||||||
- statement.built_in: \b(count|countElements|countLeadingZeros|debugPrint|debugPrintln|distance|dropFirst|dropLast|dump|encodeBitsAsWords)\b
|
- statement.built_in: \b(count|countElements|countLeadingZeros|debugPrint|debugPrintln|distance|dropFirst|dropLast|dump|encodeBitsAsWords)\b
|
||||||
@@ -44,7 +44,7 @@ rules:
|
|||||||
- statement.meta: \@\b(autoclosure|available|convention|exported|IBAction|IBDesignable|IBOutlet|IBInspectable|infix)\b
|
- statement.meta: \@\b(autoclosure|available|convention|exported|IBAction|IBDesignable|IBOutlet|IBInspectable|infix)\b
|
||||||
- statement.meta: \@\b(lazy|noreturn|noescape|nonobjc|NSApplicationMain|NSCopying|NSManaged|objc|prefix|postfix)\b
|
- statement.meta: \@\b(lazy|noreturn|noescape|nonobjc|NSApplicationMain|NSCopying|NSManaged|objc|prefix|postfix)\b
|
||||||
- statement.meta: \@\b(required|testable|warn_unused_result|UIApplicationMain)\b
|
- statement.meta: \@\b(required|testable|warn_unused_result|UIApplicationMain)\b
|
||||||
|
|
||||||
#preprocessor
|
#preprocessor
|
||||||
- preproc: ^[[:space:]]*#[[:space:]]*(define|else|elseif|endif|if|selector)\b
|
- preproc: ^[[:space:]]*#[[:space:]]*(define|else|elseif|endif|if|selector)\b
|
||||||
- preproc.DebugIdentifier: \b(__COLUMN__|__FILE__|__FUNCTION__|__LINE__)\b
|
- preproc.DebugIdentifier: \b(__COLUMN__|__FILE__|__FUNCTION__|__LINE__)\b
|
||||||
@@ -53,12 +53,12 @@ rules:
|
|||||||
# Constant
|
# Constant
|
||||||
- constant: \b(true|false|nil)
|
- constant: \b(true|false|nil)
|
||||||
- constant.number: ([0-9]+)
|
- constant.number: ([0-9]+)
|
||||||
|
|
||||||
# Storage Types
|
# Storage Types
|
||||||
- type.storage: \b((U)?Int(8|16|32|64))\b
|
- type.storage: \b((U)?Int(8|16|32|64))\b
|
||||||
- type.storage: \b(Int|UInt|String|Bit|Bool|Character|Double|Optional|Float|Range)\b
|
- type.storage: \b(Int|UInt|String|Bit|Bool|Character|Double|Optional|Float|Range)\b
|
||||||
- type.storage: \b(AnyObject)\b
|
- type.storage: \b(AnyObject)\b
|
||||||
|
|
||||||
# Collections
|
# Collections
|
||||||
- type.collections: \b(Array|Dictionary|Set)\b
|
- type.collections: \b(Array|Dictionary|Set)\b
|
||||||
|
|
||||||
@@ -80,17 +80,17 @@ rules:
|
|||||||
|
|
||||||
# Doc Comment
|
# Doc Comment
|
||||||
- comment.doc: (///).*
|
- comment.doc: (///).*
|
||||||
|
|
||||||
# Line Comment
|
# Line Comment
|
||||||
- comment.line: "//.*"
|
- comment.line: "//.*"
|
||||||
|
|
||||||
# Block Comment
|
# Block Comment
|
||||||
- comment.block:
|
- comment.block:
|
||||||
start: "/\\*"
|
start: "/\\*"
|
||||||
end: "\\*/"
|
end: "\\*/"
|
||||||
rules:
|
rules:
|
||||||
- todo: "(TODO|XXX|FIXME):?"
|
- todo: "(TODO|XXX|FIXME):?"
|
||||||
|
|
||||||
# Doc Block Comment
|
# Doc Block Comment
|
||||||
- comment.block:
|
- comment.block:
|
||||||
start: "/\\*\\*"
|
start: "/\\*\\*"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: tex
|
filetype: tex
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.tex$|\\.bib$|\\.cls$"
|
filename: "\\.tex$|\\.bib$|\\.cls$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -46,4 +46,4 @@ rules:
|
|||||||
end: "`"
|
end: "`"
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\."
|
- constant.specialChar: "\\\\."
|
||||||
- identifier: "\\x24\\{.*?\\}"
|
- identifier: "\\x24\\{.*?\\}"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: vala
|
filetype: vala
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.vala$"
|
filename: "\\.vala$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: vhdl
|
filetype: vhdl
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.vhdl?$"
|
filename: "\\.vhdl?$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: xresources
|
filetype: xresources
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "X(defaults|resources)$"
|
filename: "X(defaults|resources)$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
filetype: yum
|
filetype: yum
|
||||||
|
|
||||||
detect:
|
detect:
|
||||||
filename: "\\.repo$|yum.*\\.conf$"
|
filename: "\\.repo$|yum.*\\.conf$"
|
||||||
|
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ rules:
|
|||||||
skip: "\\\\."
|
skip: "\\\\."
|
||||||
rules:
|
rules:
|
||||||
- constant.specialChar: "\\\\([nrt\\\\'\"]|x[a-fA-F0-9]{2}|u{[a-fA-F0-9]+})"
|
- constant.specialChar: "\\\\([nrt\\\\'\"]|x[a-fA-F0-9]{2}|u{[a-fA-F0-9]+})"
|
||||||
|
|
||||||
- comment:
|
- comment:
|
||||||
start: "//"
|
start: "//"
|
||||||
end: "$"
|
end: "$"
|
||||||
|
|||||||
Reference in New Issue
Block a user