mirror of
https://github.com/zyedidia/micro.git
synced 2024-09-17 15:07:41 +03:00
Fix trailing spaces/tabs in yaml syntax files (#3200)
Signed-off-by: Yevhen Babiichuk (DustDFG) <dfgdust@gmail.com>
This commit is contained in:
parent
9ab9f8bc1c
commit
426e6c600f
@ -3,7 +3,7 @@ filetype: ada
|
||||
detect:
|
||||
filename: "(\\.ads$|\\.adb$|\\.ada$)"
|
||||
|
||||
rules:
|
||||
rules:
|
||||
# Operators
|
||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||
- symbol.brackets: "[(){}]|\\[|\\]"
|
||||
@ -18,11 +18,11 @@ rules:
|
||||
# Constant
|
||||
- constant.bool: \b(TRUE|FALSE)
|
||||
- constant.number: ([0-9]+)
|
||||
|
||||
|
||||
# Storage Types
|
||||
- type.storage: \b(INTEGER|NATURAL|POSITIVE|FLOAT|CHARACTER|STRING)\b
|
||||
- type.storage: \b(LONG_INTEGER|SHORT_INTEGER|LONG_FLOAT|SHORT_FLOAT)\b
|
||||
|
||||
|
||||
#Character
|
||||
- constant.string.char: \'.\'
|
||||
|
||||
@ -36,9 +36,8 @@ rules:
|
||||
- constant.interpolation: \\\([[:graph:]]*\)
|
||||
- constant.unicode: \\u\{[[:xdigit:]]+}
|
||||
|
||||
|
||||
# Line Comment
|
||||
- comment.line: "--.*"
|
||||
|
||||
|
||||
# Todo
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
@ -4,9 +4,9 @@ detect:
|
||||
filename: "\\.?ino$"
|
||||
|
||||
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"
|
||||
|
||||
## Constants
|
||||
@ -33,7 +33,7 @@ rules:
|
||||
- type: "\\b(boolean|byte|char|float|int|long|word)\\b"
|
||||
|
||||
## 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"
|
||||
|
||||
## Math
|
||||
@ -66,7 +66,7 @@ rules:
|
||||
## Structure
|
||||
- identifier: "\\b(setup|loop)\\b"
|
||||
|
||||
##
|
||||
##
|
||||
- statement: "^[[:space:]]*#[[:space:]]*(define|include(_next)?|(un|ifn?)def|endif|el(if|se)|if|warning|error|pragma)"
|
||||
|
||||
## GCC builtins
|
||||
|
@ -28,7 +28,7 @@ rules:
|
||||
# Paragraph Title
|
||||
- statement: "^\\..*$"
|
||||
|
||||
# source
|
||||
# source
|
||||
- identifier: "^\\[(source,.+|NOTE|TIP|IMPORTANT|WARNING|CAUTION)\\]"
|
||||
|
||||
# Other markup
|
||||
|
@ -36,7 +36,7 @@ rules:
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
|
||||
|
||||
- constant.string:
|
||||
start: "'"
|
||||
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?"
|
||||
- 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
|
||||
- type: "^[A-Z]+\\="
|
||||
|
||||
|
@ -41,4 +41,4 @@ rules:
|
||||
end: "\\*\\/"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
||||
|
||||
|
@ -2,7 +2,7 @@ filetype: csharp-script
|
||||
detect:
|
||||
filename: "\\.csx$"
|
||||
signature: "^#!.*/(env +)?dotnet-script( |$)"
|
||||
|
||||
|
||||
rules:
|
||||
- include: "csharp"
|
||||
- preproc: "\\B(\\#!|\\#[r|load|]+\\b)"
|
||||
|
@ -51,11 +51,11 @@ rules:
|
||||
- constant: "\\b(__DATE__|__EOF__|__TIME__|__TIMESTAMP__|__VENDOR__|__VERSION__)\\b"
|
||||
# String literals
|
||||
# DoubleQuotedString
|
||||
- constant.string:
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
# WysiwygString
|
||||
- constant.string:
|
||||
@ -93,7 +93,7 @@ rules:
|
||||
- constant.string:
|
||||
start: "q\"<"
|
||||
end: "q\">"
|
||||
rules:
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string:
|
||||
start: "q\"[^({[<\"][^\"]*$"
|
||||
@ -106,7 +106,7 @@ rules:
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
# Comments
|
||||
- comment:
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules: []
|
||||
|
@ -14,7 +14,7 @@ rules:
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string:
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
skip: "\\\\."
|
||||
|
@ -5,7 +5,7 @@ detect:
|
||||
|
||||
rules:
|
||||
- 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: "(^:|;$)"
|
||||
|
@ -14,16 +14,16 @@ rules:
|
||||
- type: "(?i)\\b(program|public|real|recl|recursive|selected_int_kind)\\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(close|contains|count|cpu_time|cshift|date_and_time)\\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(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\\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(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(spread|sum|system_clock|target|transfer|transpose|trim)\\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(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(lbound|len|len_trim|matmul|maxexponent|maxloc|maxval|merge)\\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(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(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.number: "\\b([0-9]+)\\b"
|
||||
|
@ -12,7 +12,7 @@ rules:
|
||||
#patterns
|
||||
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
||||
#patterns-modifiers
|
||||
- statement: "\\b(as|when|of)\\b"
|
||||
- statement: "\\b(as|when|of)\\b"
|
||||
#conditions
|
||||
- statement: "\\b(if|then|else)\\b"
|
||||
#blocs
|
||||
|
@ -13,7 +13,7 @@ rules:
|
||||
- symbol.operator: "[-+/*=<>?:!~%&|^]"
|
||||
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
||||
|
||||
- comment:
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules:
|
||||
|
@ -7,7 +7,7 @@ rules:
|
||||
- statement: "\\b(set|unset|plot|splot|replot|if|else|do|for|while|fit)\\b"
|
||||
- symbol.operator: "[-+/*=<>?:!~%&|^$]"
|
||||
- constant.number: "\\b([0-9]+|0x[0-9a-fA-F]*)\\b"
|
||||
|
||||
|
||||
- comment:
|
||||
start: "#"
|
||||
end: "$"
|
||||
|
@ -1,5 +1,5 @@
|
||||
# godoc
|
||||
# example: go doc -all | micro
|
||||
# example: go doc -all | micro
|
||||
|
||||
filetype: godoc
|
||||
|
||||
|
@ -32,7 +32,7 @@ rules:
|
||||
|
||||
- symbol: "(:|=|\\||\\(|\\)|\\{|\\}|\\[|\\])"
|
||||
|
||||
- constant.bool: "\\b(true|false)\\b"
|
||||
- constant.bool: "\\b(true|false)\\b"
|
||||
|
||||
- constant.string:
|
||||
start: "\""
|
||||
@ -44,4 +44,4 @@ rules:
|
||||
- comment:
|
||||
start: "#"
|
||||
end: "$"
|
||||
rules: []
|
||||
rules: []
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: groff
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.m[ems]$|\\.rof|\\.tmac$|^tmac."
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: haml
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.haml$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: hare
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.ha$"
|
||||
|
||||
rules:
|
||||
|
@ -6,11 +6,11 @@ detect:
|
||||
rules:
|
||||
- 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"
|
||||
|
||||
|
||||
- statement: "\\b(for|if|while|do|else|case|default|switch)\\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)"
|
||||
|
||||
|
||||
# Operator Color
|
||||
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&)"
|
||||
- symbol.brackets: "[(){}]|\\[|\\]"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: inputrc
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "inputrc$"
|
||||
|
||||
rules:
|
||||
|
@ -10,7 +10,7 @@ rules:
|
||||
- constant.number: "\\b[-+]?([0-9]+[EePp][+-]?[0-9]+)[fFlL]?"
|
||||
- constant: "\\b(null)\\b"
|
||||
- constant: "\\b(true|false)\\b"
|
||||
- constant.string:
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
skip: "\\\\."
|
||||
|
@ -49,7 +49,7 @@ rules:
|
||||
skip: "\\\\\""
|
||||
rules:
|
||||
- constant.specialChar: "\\\\\""
|
||||
|
||||
|
||||
# single-quoted verbatim string
|
||||
- constant.string:
|
||||
start: "@'"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: kickstart
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.ks$|\\.kickstart$"
|
||||
|
||||
rules:
|
||||
|
@ -4,10 +4,10 @@ detect:
|
||||
filename: "\\.kts?$"
|
||||
|
||||
rules:
|
||||
|
||||
|
||||
# Operators
|
||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||
|
||||
|
||||
# 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.properties: \b(get|set)\b
|
||||
@ -16,9 +16,9 @@ rules:
|
||||
- statement.member: \b(override|lateinit|init)\b
|
||||
- statement.access: \b(internal|private|protected|public)\b
|
||||
- statement.parameter: \b(crossinline|noinline|reified|vararg)\b
|
||||
|
||||
|
||||
# Expression and types
|
||||
- type: \b(dynamic|object|throw|typealias)\b
|
||||
- type: \b(dynamic|object|throw|typealias)\b
|
||||
|
||||
# Meta
|
||||
- statement.meta: \@(\bfile|delegate|field|get|property|receiver|set|setparam|param|)\b
|
||||
@ -26,10 +26,10 @@ rules:
|
||||
# Constant
|
||||
- constant: \b(true|false|null)
|
||||
- constant.number: ([0-9]+)
|
||||
|
||||
|
||||
# Storage Types
|
||||
- type.storage: \b(Byte|UByte|Char|Double|Float|Int|UInt|Long|ULong|Short|UShort|Boolean|Unit|Nothing)\b
|
||||
|
||||
|
||||
# Collections
|
||||
- type.collections: \b(Array)\b
|
||||
|
||||
@ -44,17 +44,17 @@ rules:
|
||||
|
||||
# Shebang Line
|
||||
- comment.shebang: ^(#!).*
|
||||
|
||||
|
||||
# Line Comment
|
||||
- comment.line: "//.*"
|
||||
|
||||
|
||||
# Block Comment
|
||||
- comment.block:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
||||
|
||||
# Doc Block Comment
|
||||
- comment.block:
|
||||
start: "/\\*\\*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: ledger
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "(^|\\.|/)(ledger|ldgr|beancount|bnct)$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: lfe
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "lfe$|\\.lfe$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: lisp
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "(emacs|zile)$|\\.(el|li?sp|scm|ss|rkt)$"
|
||||
|
||||
rules:
|
||||
|
@ -26,7 +26,7 @@ rules:
|
||||
- symbol.brackets: "[(){}\\[\\]]"
|
||||
- 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:
|
||||
start: "\""
|
||||
@ -104,7 +104,7 @@ rules:
|
||||
|
||||
# this has to go after block comment or block comment does not work
|
||||
|
||||
- comment:
|
||||
- comment:
|
||||
start: "\\-\\-"
|
||||
end: "$"
|
||||
rules:
|
||||
|
@ -12,7 +12,7 @@ rules:
|
||||
- constant.string:
|
||||
start: "^Subject:.*"
|
||||
end: "$"
|
||||
rules:
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- statement: "<?[^@[:space:]]+@[^[:space:]]+>?"
|
||||
- default:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: man
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.[1-9]x?$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: mpd
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "mpd\\.conf$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: nanorc
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.?nanorc$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: nginx
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "nginx.*\\.conf$|\\.nginx$"
|
||||
signature: "^(server|upstream)[a-z ]*\\{$"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: nim
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.nims?$|nim.cfg"
|
||||
|
||||
rules:
|
||||
|
@ -12,7 +12,7 @@ rules:
|
||||
#patterns
|
||||
- statement: "\\b(fun|function|functor|match|try|with)\\b"
|
||||
#patterns-modifiers
|
||||
- statement: "\\b(as|when|of)\\b"
|
||||
- statement: "\\b(as|when|of)\\b"
|
||||
#conditions
|
||||
- statement: "\\b(if|then|else)\\b"
|
||||
#blocs
|
||||
|
@ -18,7 +18,7 @@ rules:
|
||||
- constant.string:
|
||||
start: "#[0-9]{1,}"
|
||||
end: "$"
|
||||
rules:
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- constant.string:
|
||||
start: "'"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: peg
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.l?peg$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: perl
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.p[lmp]$"
|
||||
signature: "^#!.*/(env +)?perl( |$)"
|
||||
|
||||
@ -10,13 +10,13 @@ rules:
|
||||
|
||||
- special: "\\-\\>"
|
||||
- symbol: "(,|\\.)"
|
||||
|
||||
|
||||
#regexes
|
||||
- identifier.macro: "m?\\/.*?\\/[a-z]*"
|
||||
- identifier.macro: "m?\\|.*?\\|[a-z]*"
|
||||
- identifier.macro: "\\bs/.*?/.*?/[a-z]*"
|
||||
- identifier.macro: "\\bs\\|.*?\\|.*?\\|[a-z]*"
|
||||
|
||||
|
||||
- constant.string:
|
||||
start: '"'
|
||||
end: '"'
|
||||
@ -29,19 +29,19 @@ rules:
|
||||
end: "'"
|
||||
skip: "\\\\'"
|
||||
rules: []
|
||||
|
||||
|
||||
- comment:
|
||||
start: "#"
|
||||
end: "$"
|
||||
rules: []
|
||||
|
||||
|
||||
- constant.string: "\"\\(.*\\)\"|qq?\\|.*\\||qq?\\{.*\\}|qq?\\/.*\\/"
|
||||
- constant.number: "\\b([0-9]*[.])?[0-9]+"
|
||||
- constant.number: "\\b[0-9]+"
|
||||
- constant.number: "\\b0x[a-f0-9]+"
|
||||
- constant.string.url: "`(.+?)`"
|
||||
- identifier.var: '[\\$@%].[a-zA-Z0-9_]*'
|
||||
|
||||
|
||||
- preproc:
|
||||
start: "(^use| = new)"
|
||||
end: ";"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: pc
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.pc$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: po
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.pot?$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: pony
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.pony$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: pov
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.(pov|POV|povray|POVRAY)$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: privoxy-action
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.action$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: privoxy-config
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "privoxy/config$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: privoxy-filter
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.filter$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: puppet
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.pp$"
|
||||
|
||||
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"
|
||||
- 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)"
|
||||
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&|\\^|\\$)"
|
||||
- symbol.operator: "([.:;,+*|=!\\%]|<|>|/|-|&|\\^|\\$)"
|
||||
|
||||
- comment:
|
||||
start: "#"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: rpmspec
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.spec$|\\.rpmspec$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: ruby
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.(rb|rake|gemspec)$|^(.*[\\/])?(Gemfile|config.ru|Rakefile|Capfile|Vagrantfile|Guardfile|Appfile|Fastfile|Pluginfile|Podfile|\\.?[Bb]rewfile)$"
|
||||
signature: "^#!.*/(env +)?ruby( |$)"
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: sed
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.sed$"
|
||||
signature: "^#!.*bin/(env +)?sed( |$)"
|
||||
|
||||
|
@ -8,7 +8,7 @@ filetype: shell
|
||||
# File extensions:
|
||||
# * .sh
|
||||
# * .bash
|
||||
# * .ash
|
||||
# * .ash
|
||||
# * .ebuild (Gentoo ebuild format)
|
||||
#
|
||||
# Special filenames:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: salt
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.sls$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: smalltalk
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.(st|sources|changes)$"
|
||||
|
||||
rules:
|
||||
|
@ -21,12 +21,12 @@ rules:
|
||||
start: "//"
|
||||
end: "$"
|
||||
rules: []
|
||||
- comment:
|
||||
- comment:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules: []
|
||||
- todo: "TODO:?"
|
||||
- constant.string:
|
||||
- constant.string:
|
||||
start: "\""
|
||||
end: "\""
|
||||
skip: "\\\\."
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: sql
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.sql$|sqliterc$"
|
||||
|
||||
rules:
|
||||
|
@ -4,13 +4,13 @@ detect:
|
||||
filename: "\\.svelte$"
|
||||
|
||||
rules:
|
||||
- default:
|
||||
- default:
|
||||
start: "<script>"
|
||||
end: "</script>"
|
||||
rules:
|
||||
- include: "javascript"
|
||||
|
||||
- default:
|
||||
- default:
|
||||
start: "<script lang=\"ts\">"
|
||||
end: "</script>"
|
||||
rules:
|
||||
@ -24,4 +24,4 @@ rules:
|
||||
start: "^"
|
||||
end: "$"
|
||||
rules:
|
||||
- include: "html5"
|
||||
- include: "html5"
|
||||
|
@ -4,29 +4,29 @@ detect:
|
||||
filename: "\\.swift$"
|
||||
|
||||
rules:
|
||||
|
||||
|
||||
# Patterns
|
||||
- type: \b(_)\b
|
||||
|
||||
|
||||
# Operators
|
||||
- symbol.operator: ([.:;,+*|=!?\\%]|<|>|/|-|&)
|
||||
|
||||
|
||||
# Declaration Keywords
|
||||
- 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
|
||||
|
||||
|
||||
# Statements Keywords
|
||||
- statement: \b(break|case|continue|default|defer|do|else|fallthrough|for|guard)\b
|
||||
- statement: \b(if|inif|repeat|return|switch|where|while)\b
|
||||
|
||||
|
||||
# keyword.reserved
|
||||
- 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(right|set|Type|unowned|weak|willSet)\b
|
||||
|
||||
|
||||
# Expression and types
|
||||
- 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(bridgeFromObjectiveCUnconditional|bridgeToObjectiveC|bridgeToObjectiveCUnconditional|contains)\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(lazy|noreturn|noescape|nonobjc|NSApplicationMain|NSCopying|NSManaged|objc|prefix|postfix)\b
|
||||
- statement.meta: \@\b(required|testable|warn_unused_result|UIApplicationMain)\b
|
||||
|
||||
|
||||
#preprocessor
|
||||
- preproc: ^[[:space:]]*#[[:space:]]*(define|else|elseif|endif|if|selector)\b
|
||||
- preproc.DebugIdentifier: \b(__COLUMN__|__FILE__|__FUNCTION__|__LINE__)\b
|
||||
@ -53,12 +53,12 @@ rules:
|
||||
# Constant
|
||||
- constant: \b(true|false|nil)
|
||||
- constant.number: ([0-9]+)
|
||||
|
||||
|
||||
# Storage Types
|
||||
- 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(AnyObject)\b
|
||||
|
||||
|
||||
# Collections
|
||||
- type.collections: \b(Array|Dictionary|Set)\b
|
||||
|
||||
@ -80,17 +80,17 @@ rules:
|
||||
|
||||
# Doc Comment
|
||||
- comment.doc: (///).*
|
||||
|
||||
|
||||
# Line Comment
|
||||
- comment.line: "//.*"
|
||||
|
||||
|
||||
# Block Comment
|
||||
- comment.block:
|
||||
start: "/\\*"
|
||||
end: "\\*/"
|
||||
rules:
|
||||
- todo: "(TODO|XXX|FIXME):?"
|
||||
|
||||
|
||||
# Doc Block Comment
|
||||
- comment.block:
|
||||
start: "/\\*\\*"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: tex
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.tex$|\\.bib$|\\.cls$"
|
||||
|
||||
rules:
|
||||
|
@ -46,4 +46,4 @@ rules:
|
||||
end: "`"
|
||||
rules:
|
||||
- constant.specialChar: "\\\\."
|
||||
- identifier: "\\x24\\{.*?\\}"
|
||||
- identifier: "\\x24\\{.*?\\}"
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: vala
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.vala$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: vhdl
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.vhdl?$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: xresources
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "X(defaults|resources)$"
|
||||
|
||||
rules:
|
||||
|
@ -1,6 +1,6 @@
|
||||
filetype: yum
|
||||
|
||||
detect:
|
||||
detect:
|
||||
filename: "\\.repo$|yum.*\\.conf$"
|
||||
|
||||
rules:
|
||||
|
@ -44,7 +44,7 @@ rules:
|
||||
skip: "\\\\."
|
||||
rules:
|
||||
- constant.specialChar: "\\\\([nrt\\\\'\"]|x[a-fA-F0-9]{2}|u{[a-fA-F0-9]+})"
|
||||
|
||||
|
||||
- comment:
|
||||
start: "//"
|
||||
end: "$"
|
||||
|
Loading…
Reference in New Issue
Block a user