feat:改成使用element-plus-x官方的markdown渲染组件,所以删除了以前引入的组件
升级element-plus-x至1.3.beta版本
This commit is contained in:
parent
81bfdb1860
commit
3a5feed32a
@ -74,7 +74,7 @@
|
||||
"vue-clipboard3": "^2.0.0",
|
||||
"vue-demi": "0.14.10",
|
||||
"vue-draggable-plus": "^0.6.0",
|
||||
"vue-element-plus-x": "^1.2.1-beta",
|
||||
"vue-element-plus-x": "^1.3.11-beta",
|
||||
"vue-grid-layout": "3.0.0-beta1",
|
||||
"vue-i18n": "^11.1.5",
|
||||
"vue-json-pretty": "^2.4.0",
|
||||
@ -113,7 +113,6 @@
|
||||
"vite": "^6.3.5",
|
||||
"vite-plugin-cdn-import": "^1.0.1",
|
||||
"vite-plugin-compression2": "^2.0.1",
|
||||
"vite-plugin-forvmsc": "^1.0.6",
|
||||
"vite-plugin-vue-setup-extend": "^0.4.0",
|
||||
"vue-eslint-parser": "^10.1.3"
|
||||
},
|
||||
|
||||
@ -1,361 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["abap", "ABAP"],
|
||||
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
||||
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
||||
"keyEquivalent": "^~A",
|
||||
"name": "abap",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.abap"
|
||||
}
|
||||
},
|
||||
"match": "^\\*.*\\n?",
|
||||
"name": "comment.line.full.abap"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.abap"
|
||||
}
|
||||
},
|
||||
"match": "\".*\\n?",
|
||||
"name": "comment.line.partial.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^\\s])##.*?(?=([\\.:,\\s]))",
|
||||
"name": "comment.line.pragma.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?i)(?<=(?:^|\\s|~|->|-|=>))([a-z_/][a-z_0-9/]*)(?=\\s+(?:=|\\+=|-=|\\*=|\\/=|&&=)\\s+)",
|
||||
"name": "variable.other.abap"
|
||||
},
|
||||
{
|
||||
"match": "\\b[0-9]+(\\b|\\.|,)",
|
||||
"name": "constant.numeric.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)(^|\\s+)((PUBLIC|PRIVATE|PROTECTED)\\sSECTION)(?=\\s+|:|\\.)",
|
||||
"name": "storage.modifier.class.abap"
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\\\\)(\\|)(.*?)",
|
||||
"end": "(?<!\\\\)(\\||(\\\\\\\\\\|))",
|
||||
"name": "string.interpolated.abap",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.abap"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.abap"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "({ )|( })",
|
||||
"name": "constant.character.escape"
|
||||
},
|
||||
{
|
||||
"match": "(?<={ ).*?(?= })",
|
||||
"name": "variable.other.abap"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\|",
|
||||
"name": "constant.character.escape.abap"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.abap",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "''",
|
||||
"name": "constant.character.escape.abap"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "`",
|
||||
"end": "`",
|
||||
"name": "string.quoted.single.abap",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "``",
|
||||
"name": "constant.character.escape.abap"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)^\\s*(class)\\s([a-z_\\/][a-z_0-9\\/]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.block.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.block.abap"
|
||||
}
|
||||
},
|
||||
"end": "\\s*\\.\\s*\\n?",
|
||||
"name": "meta.block.begin.implementation.abap",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?ix)(^|\\s+)(definition|implementation|public|inheriting\\s+from|final|deferred|abstract|shared\\s+memory\\s+enabled|(global|local)*\\s*friends|(create\\s+(public|protected|private))|for\\s+testing|risk\\s+level\\s+(critical|dangerous|harmless))|duration\\s(short|medium|long)(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.class.abap"
|
||||
},
|
||||
{
|
||||
"begin": "(?=[A-Za-z_][A-Za-z0-9_]*)",
|
||||
"contentName": "entity.name.type.block.abap",
|
||||
"end": "(?![A-Za-z0-9_])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#generic_names"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?ix)^\\s*(method)\\s(?:([a-z_\\/][a-z_0-9\\/]*)~)?([a-z_\\/][a-z_0-9\\/]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.block.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.abap"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.function.abap"
|
||||
}
|
||||
},
|
||||
"end": "\\s*\\.\\s*\\n?",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?ix)(?<=^|\\s)(BY\\s+DATABASE(\\s+PROCEDURE|\\s+FUNCTION|\\s+GRAPH\\s+WORKSPACE))(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.method.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)(?<=^|\\s)(FOR\\s+(HDB|LLANG))(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.method.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)(?<=\\s)(OPTIONS\\s+(READ-ONLY|DETERMINISTIC|SUPPRESS\\s+SYNTAX\\s+ERRORS))(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.method.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)(?<=^|\\s)(LANGUAGE\\s+(SQLSCRIPT|SQL|GRAPH))(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.method.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)(?<=\\s)(USING)\\s+([a-z_\\/][a-z_0-9\\/=\\>]*)+(?=\\s+|\\.)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.method.abap"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"begin": "(?=[A-Za-z_][A-Za-z0-9_]*)",
|
||||
"end": "(?![A-Za-z0-9_])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#generic_names"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?ix)^\\s*(INTERFACE)\\s([a-z_\\/][a-z_0-9\\/]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.block.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.abap"
|
||||
}
|
||||
},
|
||||
"end": "\\s*\\.\\s*\\n?",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?ix)(?<=^|\\s)(DEFERRED|PUBLIC)(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.method.abap"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?ix)^\\s*(FORM)\\s([a-z_\\/][a-z_0-9\\/]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.block.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.abap"
|
||||
}
|
||||
},
|
||||
"end": "\\s*\\.\\s*\\n?",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?ix)(?<=^|\\s)(USING|TABLES|CHANGING|RAISING)(?=\\s+|\\.)",
|
||||
"name": "storage.modifier.form.abap"
|
||||
},
|
||||
{
|
||||
"include": "#abaptypes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?i)(endclass|endmethod|endform|endinterface)",
|
||||
"name": "storage.type.block.end.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?i)(<[A-Za-z_][A-Za-z0-9_]*>)",
|
||||
"name": "variable.other.field.symbol.abap"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#abap_constants"
|
||||
},
|
||||
{
|
||||
"include": "#reserved_names"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#builtin_functions"
|
||||
},
|
||||
{
|
||||
"include": "#abaptypes"
|
||||
},
|
||||
{
|
||||
"include": "#system_fields"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"abap_constants": {
|
||||
"match": "(?ix)(?<=\\s)(initial|null|space|abap_true|abap_false|table_line)(?=\\s|\\.|,)",
|
||||
"name": "constant.language.abap"
|
||||
},
|
||||
"reserved_names": {
|
||||
"match": "(?ix)(?<=\\s)(me|super)(?=\\s|\\.|,|->)",
|
||||
"name": "constant.language.abap"
|
||||
},
|
||||
"abaptypes": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?ix)\\s(abap_bool|string|xstring|any|clike|csequence|numeric|xsequence|c|n|i|p|f|d|t|x)(?=\\s|\\.|,)",
|
||||
"name": "support.type.abap"
|
||||
},
|
||||
{
|
||||
"match": "(?ix)\\s(TYPE|REF|TO|STANDARD|SORTED|HASHED|INDEX|TABLE|WITH|UNIQUE|NON-UNIQUE|SECONDARY|DEFAULT|KEY)(?=\\s|\\.|,)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
}
|
||||
]
|
||||
},
|
||||
"arithmetic_operator": {
|
||||
"match": "(?i)(?<=\\s)(\\+|\\-|\\*|\\*\\*|\\/|%|DIV|MOD|BIT-AND|BIT-OR|BIT-XOR|BIT-NOT)(?=\\s)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"comparison_operator": {
|
||||
"match": "(?i)(?<=\\s)(<|>|<\\=|>\\=|\\=|<>|eq|ne|lt|le|gt|ge|cs|cp|co|cn|ca|na|ns|np|byte-co|byte-cn|byte-ca|byte-na|byte-cs|byte-ns|o|z|m)(?=\\s)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"control_keywords": {
|
||||
"match": "(?ix)(^|\\s)(\n\t at|case|catch|continue|do|elseif|else|endat|endcase|enddo|endif|\n\t endloop|endon|if|loop|on|raise|try)(?=\\s|\\.|:)",
|
||||
"name": "keyword.control.flow.abap"
|
||||
},
|
||||
"generic_names": {
|
||||
"match": "[A-Za-z_][A-Za-z0-9_]*"
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#main_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#text_symbols"
|
||||
},
|
||||
{
|
||||
"include": "#control_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#keywords_followed_by_braces"
|
||||
}
|
||||
]
|
||||
},
|
||||
"logical_operator": {
|
||||
"match": "(?i)(?<=\\s)(not|or|and)(?=\\s)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"system_fields": {
|
||||
"match": "(?ix)\\b(sy)-(abcde|batch|binpt|calld|callr|colno|cpage|cprog|cucol|curow|datar|datlo|datum|dayst|dbcnt|dbnam|dbsysc|dyngr|dynnr|fdayw|fdpos|host|index|langu|ldbpg|lilli|linct|linno|linsz|lisel|listi|loopc|lsind|macol|mandt|marow|modno|msgid|msgli|msgno|msgty|msgv[1-4]|opsysc|pagno|pfkey|repid|saprl|scols|slset|spono|srows|staco|staro|stepl|subrc|sysid|tabix|tcode|tfill|timlo|title|tleng|tvar[0-9]|tzone|ucomm|uline|uname|uzeit|vline|wtitl|zonlo)(?=\\.|\\s)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.language.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.language.abap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"main_keywords": {
|
||||
"match": "(?ix)(?<=^|\\s)(\n\t abap-source|abstract|access|add|add-corresponding|adjacent|alias|aliases|all|amdp|append|appending|ascending|as|assert|assign|assigned|assigning|association|authority-check|\n\t back|badi|base|begin|between|binary|blanks|block|bound|break-point|by|by\\s+database|byte|\n\t call|calling|cast|casting|cds\\s+session|changing|check|checkbox|class-data|class-events|class-method|class-methods|class-pool|cleanup|clear|client|clients|close|cnt|collect|commit|comment|cond|character|\n\t corresponding|communication|comparing|component|components|compute|concatenate|condense|constants|conv|count|\n\t controls|convert|create|currency|current|\n\t data|database|date|ddl|decimals|default|define|deferred|delete|descending|describe|destination|detail|display|divide|divide-corresponding|display-mode|distinct|duplicates|\n\t deleting|\n\t editor-call|empty|end|endenhancement|endexec|endfunction|ending|endmodule|end-of-definition|end-of-page|end-of-selection|end-test-injection|end-test-seam|exit-command|extension|\n\t endprovide|endselect|entries|endtry|endwhile|enhancement|enhancement-point|enum|escape|event|events|excluding|exec|exit|export|\n\t exporting|extract|exception|exception-table|exceptions|\n\t field-symbols|field-groups|field|first|fetch|fields|format|frame|free|from|function|find|for|found|function-pool|\n\t generate|get|group|\n\t handle|handler|hide|hashed|header|help-request|\n\t include|import|importing|index|infotypes|initial|initialization|\n\t\tid|implemented|ignoring|is|in|inner|interface|interfaces|interface-pool|intervals|init|input|insert|instance|into|\n\t\tjoin|\n\t\tkey|keywords|\n\t language|language\\s+graph|language\\s+sql|left-justified|leave|let|like|line|lines|line-count|line-size|listbox|list-processing|load|local|log-point|length|left|leading|lower|\n\t matchcode|memory|method|mesh|message|message-id|methods|mode|modify|module|move|move-corresponding|multiply|multiply-corresponding|match|modif|\n\t\tnew|new-line|new-page|new-section|next|no|no-display|no-gap|no-gaps|no-sign|no-zero|non-unique|number|\n\t occurrence|object|obligatory|of|order|output|overlay|optional|others|occurrences|occurs|offset|options|\n\t pack|parameter|parameter-table|parameters|partially|perform|pf-status|places|position|preferred|primary|print-control|private|privileged|program|protected|provide|public|pushbutton|put|\n\t radiobutton\\s+group|raising|range|ranges|receive|receiving|redefinition|reduce|reference|refresh|regex|reject|results|requested|\n\t ref|replace|report|required|reserve|respecting|restore|result\\s+xml|result\\s+\\(|return|returning|right|right-justified|rollback|read|read-only|rp-provide-from-last|run|\n\t scan|screen|scroll|search|select|select-options|selection-screen|set|stamp|state|statements|source|subkey|\n\t seconds|selection-table|separated|set|shift|single|skip|sort|sorted|split|spots|stable|standard|stamp|starting|start-of-selection|sum|subscreen|subtract-corresponding|statics|step|stop|structure|structures|submatches|submit|subtract|summary|supplied|suppress|section|syntax-check|syntax-trace|system-call|switch|\n\t tabbed|tables|table|task|testing|test-seam|test-injection|textpool|then|time|times|title|titlebar|to|tokens|top-of-page|trailing|transaction|transfer|transformation|translate|transporting|types|type|type-pool|type-pools|\n\t unassign|unique|uline|union|unpack|until|update|upper|using|user-command|\n\t value|value-request|visible|\n\t wait|when|while|window|write|where|with|work|workspace|\n\t\txml|\n\t\tzone)(?=\\s|\\.|:|,)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"text_symbols": {
|
||||
"match": "(?ix)(?<=^|\\s)(text)-([A-Z0-9]{1,3})(?=\\s|\\.|:|,)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.numeric.abap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"keywords_followed_by_braces": {
|
||||
"match": "(?ix)\\b(data|value|field-symbol)\\((<?[a-z_\\/][a-z_0-9\\/]*>?)\\)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.abap"
|
||||
}
|
||||
}
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#other_operator"
|
||||
},
|
||||
{
|
||||
"include": "#arithmetic_operator"
|
||||
},
|
||||
{
|
||||
"include": "#comparison_operator"
|
||||
},
|
||||
{
|
||||
"include": "#logical_operator"
|
||||
}
|
||||
]
|
||||
},
|
||||
"other_operator": {
|
||||
"match": "(?<=\\s)(&&|\\?=|\\+=|-=|\\/=|\\*=|&&=)(?=\\s)",
|
||||
"name": "keyword.control.simple.abap"
|
||||
},
|
||||
"builtin_functions": {
|
||||
"match": "(?ix)(?<=\\s)(abs|sign|ceil|floor|trunc|frac|acos|asin|atan|cos|sin|tan|cosh|sinh|tanh|exp|log|log10|sqrt|strlen|xstrlen|charlen|lines|numofchar|dbmaxlen|round|rescale|nmax|nmin|cmax|cmin|boolc|boolx|xsdbool|contains|contains_any_of|contains_any_not_of|matches|line_exists|ipow|char_off|count|count_any_of|count_any_not_of|distance|condense|concat_lines_of|escape|find|find_end|find_any_of|find_any_not_of|insert|match|repeat|replace|reverse|segment|shift_left|shift_right|substring|substring_after|substring_from|substring_before|substring_to|to_upper|to_lower|to_mixed|from_mixed|translate|bit-set|line_index)(?=\\()",
|
||||
"name": "entity.name.function.builtin.abap"
|
||||
}
|
||||
},
|
||||
"scopeName": "source.abap",
|
||||
"uuid": "0357FFB4-EFFF-4DE9-8371-B0F9C8DF1B21"
|
||||
}
|
||||
@ -1,949 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["as"],
|
||||
"name": "actionscript-3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#package"
|
||||
},
|
||||
{
|
||||
"include": "#class"
|
||||
},
|
||||
{
|
||||
"include": "#interface"
|
||||
},
|
||||
{
|
||||
"include": "#namespace_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#import"
|
||||
},
|
||||
{
|
||||
"include": "#mxml"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#variable_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_functions"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#language_variables"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
},
|
||||
{
|
||||
"include": "#other_operators"
|
||||
},
|
||||
{
|
||||
"include": "#arithmetic_operators"
|
||||
},
|
||||
{
|
||||
"include": "#logical_operators"
|
||||
},
|
||||
{
|
||||
"include": "#array_access_operators"
|
||||
},
|
||||
{
|
||||
"include": "#vector_creation_operators"
|
||||
},
|
||||
{
|
||||
"include": "#control_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#other_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#use_namespace"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"arithmetic_operators": {
|
||||
"match": "(\\+|\\-|/|%|(?<!:)\\*)",
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"array_access_operators": {
|
||||
"match": "(\\[|\\])",
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"class": {
|
||||
"begin": "(?x) (^|\\s+|;) (\\b(dynamic|final|abstract)\\b\\s+)? (\\b(internal|public)\\b\\s+)? (\\b(dynamic|final|abstract)\\b\\s+)? (?=\\bclass\\b)",
|
||||
"beginCaptures": {
|
||||
"3": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"5": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"7": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"name": "meta.class.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#class_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#method"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_functions"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#language_variables"
|
||||
},
|
||||
{
|
||||
"include": "#other_operators"
|
||||
},
|
||||
{
|
||||
"include": "#other_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#use_namespace"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
},
|
||||
{
|
||||
"include": "#arithmetic_operators"
|
||||
},
|
||||
{
|
||||
"include": "#array_access_operators"
|
||||
},
|
||||
{
|
||||
"include": "#vector_creation_operators"
|
||||
},
|
||||
{
|
||||
"include": "#variable_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#object_literal"
|
||||
}
|
||||
]
|
||||
},
|
||||
"namespace_declaration": {
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) ((\\w+)\\s+)? (namespace) \\s+ (?:[A-Za-z0-9_\\$]+)",
|
||||
"name": "meta.namespace_declaration.actionscript.3"
|
||||
},
|
||||
"class_declaration": {
|
||||
"begin": "(?x) \\b(class)\\b \\s+ ([\\.\\w]+|\\*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.class.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.class.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\{",
|
||||
"name": "meta.class_declaration.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#extends"
|
||||
},
|
||||
{
|
||||
"include": "#implements"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"code_block": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"name": "meta.code_block.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#code_block"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#variable_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_functions"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#language_variables"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
},
|
||||
{
|
||||
"include": "#other_operators"
|
||||
},
|
||||
{
|
||||
"include": "#arithmetic_operators"
|
||||
},
|
||||
{
|
||||
"include": "#logical_operators"
|
||||
},
|
||||
{
|
||||
"include": "#array_access_operators"
|
||||
},
|
||||
{
|
||||
"include": "#vector_creation_operators"
|
||||
},
|
||||
{
|
||||
"include": "#control_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#other_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#use_namespace"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
},
|
||||
{
|
||||
"include": "#import"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*\\*(?!/)",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.documentation.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "@(copy|default|eventType|example|exampleText|includeExample|inheritDoc|internal|param|private|return|see|since|throws)\\b",
|
||||
"name": "keyword.other.documentation.actionscript.3.asdoc"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.actionscript.3"
|
||||
},
|
||||
{
|
||||
"match": "//.*",
|
||||
"name": "comment.line.actionscript.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"control_keywords": {
|
||||
"match": "\\b(if|else|do|while|for|each|continue|return|switch|case|default|break|try|catch|finally|throw|with)\\b",
|
||||
"name": "keyword.control.actionscript.3"
|
||||
},
|
||||
"dynamic_type": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.type.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?<=:)\\s*(\\*)"
|
||||
},
|
||||
"escapes": {
|
||||
"match": "\\\\(x\\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
|
||||
"name": "constant.character.escape.actionscript.3"
|
||||
},
|
||||
"extends": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.other.inherited-class.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.other.inherited-class.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) \\b(extends)\\b \\s+ ([\\.\\w]+) \\s* (?:, \\s* ([\\.\\w]+))* \\s*",
|
||||
"name": "meta.extends.actionscript.3"
|
||||
},
|
||||
"function_arguments": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"name": "meta.function_arguments.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#parameters"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"begin": "(\\.\\.\\.)?\\s*([A-Za-z\\_\\$][A-Za-z0-9_\\$]*)(?:\\s*(\\:)\\s*(?:(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)))?(?:\\s*(=))?",
|
||||
"end": ",|(?=\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.parameter.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"4": {
|
||||
"name": "support.type.actionscript.3"
|
||||
},
|
||||
"5": {
|
||||
"name": "support.type.actionscript.3"
|
||||
},
|
||||
"6": {
|
||||
"name": "support.type.actionscript.3"
|
||||
},
|
||||
"7": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"functions": {
|
||||
"begin": "(?x) \\b(function)\\b (?:\\s+\\b(get|set)\\b\\s+)? \\s* ([a-zA-Z0-9_\\$]+\\b)?",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.function.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "($|;|(?=\\{))",
|
||||
"name": "meta.function.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#function_arguments"
|
||||
},
|
||||
{
|
||||
"include": "#return_type"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"guess_constant": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.other.actionscript.3"
|
||||
}
|
||||
},
|
||||
"comment": "Following convention, let's guess that anything in all caps/digits (possible underscores) is a constant.",
|
||||
"match": "\\b([A-Z\\$][A-Z0-9_]+)\\b"
|
||||
},
|
||||
"guess_type": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.type.actionscript.3"
|
||||
}
|
||||
},
|
||||
"comment": "Following convention, let's guess that any word starting with one or more capital letters (that contains at least some lower-case letters so that constants aren't detected) refers to a class/type. May be fully-qualified.",
|
||||
"match": "\\b((?:[A-Za-z0-9_\\$]+\\.)*[A-Z][A-Z0-9]*[a-z]+[A-Za-z0-9_\\$]*)\\b"
|
||||
},
|
||||
"implements": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.other.inherited-class.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.other.inherited-class.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) \\b(implements)\\b \\s+ ([\\.\\w]+) \\s* (?:, \\s* ([\\.\\w]+))* \\s*",
|
||||
"name": "meta.implements.actionscript.3"
|
||||
},
|
||||
"import": {
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "keyword.control.import.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "support.type.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) (^|\\s+|;) \\b(import)\\b \\s+ ([A-Za-z0-9\\$_\\.]+(?:\\.\\*)?) \\s* (?=;|$)",
|
||||
"name": "meta.import.actionscript.3"
|
||||
},
|
||||
"interface": {
|
||||
"begin": "(?x) (^|\\s+|;) (\\b(internal|public)\\b\\s+)? (?=\\binterface\\b)",
|
||||
"beginCaptures": {
|
||||
"3": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"name": "meta.interface.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interface_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"interface_declaration": {
|
||||
"begin": "(?x) \\b(interface)\\b \\s+ ([\\.\\w]+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.interface.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.class.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\{",
|
||||
"name": "meta.class_declaration.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#extends"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"language_constants": {
|
||||
"match": "\\b(true|false|null|Infinity|-Infinity|NaN|undefined)\\b",
|
||||
"name": "constant.language.actionscript.3"
|
||||
},
|
||||
"language_variables": {
|
||||
"match": "\\b(super|this|arguments)\\b",
|
||||
"name": "variable.language.actionscript.3"
|
||||
},
|
||||
"logical_operators": {
|
||||
"match": "(&|<|~|\\||>|\\^|!|\\?)",
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"metadata_info": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.parameter.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(\\w+)\\s*(=)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"method": {
|
||||
"begin": "(?x) (^|\\s+) ((\\w+)\\s+)? ((\\w+)\\s+)? ((\\w+)\\s+)? ((\\w+)\\s+)? (?=\\bfunction\\b)",
|
||||
"beginCaptures": {
|
||||
"3": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"5": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"7": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"8": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "(?<=(;|\\}))",
|
||||
"name": "meta.method.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#functions"
|
||||
},
|
||||
{
|
||||
"include": "#code_block"
|
||||
}
|
||||
]
|
||||
},
|
||||
"mxml": {
|
||||
"begin": "<!\\[CDATA\\[",
|
||||
"end": "\\]\\]>",
|
||||
"name": "meta.cdata.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#import"
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#class"
|
||||
},
|
||||
{
|
||||
"include": "#namespace_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#use_namespace"
|
||||
},
|
||||
{
|
||||
"include": "#class_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#method"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_functions"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#language_variables"
|
||||
},
|
||||
{
|
||||
"include": "#other_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
},
|
||||
{
|
||||
"include": "#other_operators"
|
||||
},
|
||||
{
|
||||
"include": "#arithmetic_operators"
|
||||
},
|
||||
{
|
||||
"include": "#array_access_operators"
|
||||
},
|
||||
{
|
||||
"include": "#vector_creation_operators"
|
||||
},
|
||||
{
|
||||
"include": "#variable_declaration"
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\b",
|
||||
"name": "constant.numeric.actionscript.3"
|
||||
},
|
||||
"object_literal": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"name": "meta.object_literal.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#object_literal"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_types"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_error_types"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic_type"
|
||||
},
|
||||
{
|
||||
"include": "#primitive_functions"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#language_variables"
|
||||
},
|
||||
{
|
||||
"include": "#guess_type"
|
||||
},
|
||||
{
|
||||
"include": "#guess_constant"
|
||||
},
|
||||
{
|
||||
"include": "#array_access_operators"
|
||||
},
|
||||
{
|
||||
"include": "#vector_creation_operators"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"other_keywords": {
|
||||
"match": "\\b(as|delete|in|instanceof|is|native|new|to|typeof)\\b",
|
||||
"name": "keyword.other.actionscript.3"
|
||||
},
|
||||
"other_operators": {
|
||||
"match": "(\\.|=)",
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"package": {
|
||||
"begin": "(^|\\s+)(package)\\b",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"name": "meta.package.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#package_name"
|
||||
},
|
||||
{
|
||||
"include": "#variable_declaration"
|
||||
},
|
||||
{
|
||||
"include": "#method"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#return_type"
|
||||
},
|
||||
{
|
||||
"include": "#import"
|
||||
},
|
||||
{
|
||||
"include": "#use_namespace"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#class"
|
||||
},
|
||||
{
|
||||
"include": "#interface"
|
||||
},
|
||||
{
|
||||
"include": "#namespace_declaration"
|
||||
}
|
||||
]
|
||||
},
|
||||
"package_name": {
|
||||
"begin": "(?<=package)\\s+([\\w\\._]*)\\b",
|
||||
"end": "\\{",
|
||||
"name": "meta.package_name.actionscript.3"
|
||||
},
|
||||
"primitive_types": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.class.builtin.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Array|Boolean|Class|Date|Function|int|JSON|Math|Namespace|Number|Object|QName|RegExp|String|uint|Vector|XML|XMLList|\\*(?<=a))\\b"
|
||||
},
|
||||
"primitive_error_types": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.class.error.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "\\b((Argument|Definition|Eval|Internal|Range|Reference|Security|Syntax|Type|URI|Verify)?Error)\\b"
|
||||
},
|
||||
"primitive_functions": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "\\b(decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|escape|isFinite|isNaN|isXMLName|parseFloat|parseInt|trace|unescape)(?=\\s*\\()"
|
||||
},
|
||||
"regexp": {
|
||||
"begin": "(?<=[=(:,\\[]|^|return|&&|\\|\\||!)\\s*(/)(?![/*+{}?])",
|
||||
"end": "$|(/)[igm]*",
|
||||
"name": "string.regex.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.actionscript.3"
|
||||
},
|
||||
{
|
||||
"match": "\\[(\\\\\\]|[^\\]])*\\]",
|
||||
"name": "constant.character.class.actionscript.3"
|
||||
}
|
||||
]
|
||||
},
|
||||
"return_type": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.type.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "support.type.actionscript.3"
|
||||
},
|
||||
"4": {
|
||||
"name": "support.type.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(\\:)\\s*(?:([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)(?:\\.<([A-Za-z\\$][A-Za-z0-9_\\$]+(?:\\.[A-Za-z\\$][A-Za-z0-9_\\$]+)*)>)?)|(\\*)"
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escapes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escapes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"metadata": {
|
||||
"begin": "\\[\\s*\\b(\\w+)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"name": "meta.metadata_info.actionscript.3",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#metadata_info"
|
||||
}
|
||||
]
|
||||
},
|
||||
"use_namespace": {
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.other.actionscript.3"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) (^|\\s+|;) (use\\s+)? (namespace) \\s+ (\\w+) \\s* (;|$)"
|
||||
},
|
||||
"variable_declaration": {
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"4": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"6": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"7": {
|
||||
"name": "storage.modifier.actionscript.3"
|
||||
},
|
||||
"8": {
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
}
|
||||
},
|
||||
"match": "(?x) ((static)\\s+)? ((\\w+)\\s+)? ((static)\\s+)? (const|var) \\s+ (?:[A-Za-z0-9_\\$]+)(?:\\s*(:))?",
|
||||
"name": "meta.variable_declaration.actionscript.3"
|
||||
},
|
||||
"vector_creation_operators": {
|
||||
"match": "(<|>)",
|
||||
"name": "keyword.operator.actionscript.3"
|
||||
}
|
||||
},
|
||||
"scopeName": "source.actionscript.3",
|
||||
"uuid": "aa6f75ba-ab10-466e-8c6f-28c69aca1e9d"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,562 +0,0 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"conf",
|
||||
"CONF",
|
||||
"envvars",
|
||||
"htaccess",
|
||||
"HTACCESS",
|
||||
"htgroups",
|
||||
"HTGROUPS",
|
||||
"htpasswd",
|
||||
"HTPASSWD",
|
||||
".htaccess",
|
||||
".HTACCESS",
|
||||
".htgroups",
|
||||
".HTGROUPS",
|
||||
".htpasswd",
|
||||
".HTPASSWD"
|
||||
],
|
||||
"name": "apache",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "^(\\s)*(#).*$\\n?",
|
||||
"name": "comment.line.hash.ini"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.apacheconf"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.tag.apacheconf"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.value.apacheconf"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.tag.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(<)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(\\s(.+?))?(>)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.apacheconf"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.tag.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(</)(Proxy|ProxyMatch|IfVersion|Directory|DirectoryMatch|Files|FilesMatch|IfDefine|IfModule|Limit|LimitExcept|Location|LocationMatch|VirtualHost|Macro|If|Else|ElseIf)(>)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "string.regexp.apacheconf"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.replacement.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(?<=(Rewrite(Rule|Cond)))\\s+(.+?)\\s+(.+?)($|\\s)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.status.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.regexp.apacheconf"
|
||||
},
|
||||
"5": {
|
||||
"name": "string.path.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(?<=RedirectMatch)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.status.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.path.apacheconf"
|
||||
},
|
||||
"5": {
|
||||
"name": "string.path.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(?<=Redirect)(\\s+(\\d\\d\\d|permanent|temp|seeother|gone))?\\s+(.+?)\\s+((.+?)($|\\s))?"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "string.regexp.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.path.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(?<=ScriptAliasMatch|AliasMatch)\\s+(.+?)\\s+((.+?)\\s)?"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "string.path.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.path.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(?<=RedirectPermanent|RedirectTemp|ScriptAlias|Alias)\\s+(.+?)\\s+((.+?)($|\\s))?"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.core.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AcceptPathInfo|AccessFileName|AddDefaultCharset|AddOutputFilterByType|AllowEncodedSlashes|AllowOverride|AuthName|AuthType|CGIMapExtension|ContentDigest|DefaultType|Define|DocumentRoot|EnableMMAP|EnableSendfile|ErrorDocument|ErrorLog|FileETag|ForceType|HostnameLookups|IdentityCheck|Include(Optional)?|KeepAlive|KeepAliveTimeout|LimitInternalRecursion|LimitRequestBody|LimitRequestFields|LimitRequestFieldSize|LimitRequestLine|LimitXMLRequestBody|LogLevel|MaxKeepAliveRequests|Mutex|NameVirtualHost|Options|Require|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScriptInterpreterSource|ServerAdmin|ServerAlias|ServerName|ServerPath|ServerRoot|ServerSignature|ServerTokens|SetHandler|SetInputFilter|SetOutputFilter|Time(O|o)ut|TraceEnable|UseCanonicalName|Use|ErrorLogFormat|GlobalLog|PHPIniDir|SSLHonorCipherOrder|SSLCompression|SSLUseStapling|SSLStapling\\w+|SSLCARevocationCheck|SSLSRPVerifierFile|SSLSessionTickets|RequestReadTimeout|ProxyHTML\\w+|MaxRanges)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.mpm.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AcceptMutex|AssignUserID|BS2000Account|ChildPerUserID|CoreDumpDirectory|EnableExceptionHook|Group|Listen|ListenBacklog|LockFile|MaxClients|MaxConnectionsPerChild|MaxMemFree|MaxRequestsPerChild|MaxRequestsPerThread|MaxRequestWorkers|MaxSpareServers|MaxSpareThreads|MaxThreads|MaxThreadsPerChild|MinSpareServers|MinSpareThreads|NumServers|PidFile|ReceiveBufferSize|ScoreBoardFile|SendBufferSize|ServerLimit|StartServers|StartThreads|ThreadLimit|ThreadsPerChild|ThreadStackSize|User|Win32DisableAcceptEx)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.access.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Allow|Deny|Order)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.actions.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Action|Script)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.alias.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Alias|AliasMatch|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ScriptAlias|ScriptAliasMatch)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.auth.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AuthAuthoritative|AuthGroupFile|AuthUserFile|AuthBasicProvider|AuthBasicFake|AuthBasicAuthoritative|AuthBasicUseDigestAlgorithm)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.auth_anon.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Anonymous|Anonymous_Authoritative|Anonymous_LogEmail|Anonymous_MustGiveEmail|Anonymous_NoUserID|Anonymous_VerifyEmail)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.auth_dbm.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AuthDBMAuthoritative|AuthDBMGroupFile|AuthDBMType|AuthDBMUserFile)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.auth_digest.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AuthDigestAlgorithm|AuthDigestDomain|AuthDigestFile|AuthDigestGroupFile|AuthDigestNcCheck|AuthDigestNonceFormat|AuthDigestNonceLifetime|AuthDigestQop|AuthDigestShmemSize|AuthDigestProvider)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.auth_ldap.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AuthLDAPAuthoritative|AuthLDAPBindDN|AuthLDAPBindPassword|AuthLDAPCharsetConfig|AuthLDAPCompareDNOnServer|AuthLDAPDereferenceAliases|AuthLDAPEnabled|AuthLDAPFrontPageHack|AuthLDAPGroupAttribute|AuthLDAPGroupAttributeIsDN|AuthLDAPRemoteUserIsDN|AuthLDAPUrl)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.autoindex.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AddAlt|AddAltByEncoding|AddAltByType|AddDescription|AddIcon|AddIconByEncoding|AddIconByType|DefaultIcon|HeaderName|IndexIgnore|IndexOptions|IndexOrderDefault|IndexStyleSheet|IndexHeadInsert|ReadmeName)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.filter.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(BalancerMember|BalancerGrowth|BalancerPersist|BalancerInherit)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.cache.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CacheDefaultExpire|CacheDisable|CacheEnable|CacheForceCompletion|CacheIgnoreCacheControl|CacheIgnoreHeaders|CacheIgnoreNoLastMod|CacheLastModifiedFactor|CacheMaxExpire)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.cern_meta.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(MetaDir|MetaFiles|MetaSuffix)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.cgi.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.cgid.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ScriptLog|ScriptLogBuffer|ScriptLogLength|ScriptSock)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.charset_lite.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CharsetDefault|CharsetOptions|CharsetSourceEnc)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.dav.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Dav|DavDepthInfinity|DavMinTimeout|DavLockDB)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.deflate.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(DeflateBufferSize|DeflateCompressionLevel|DeflateFilterNote|DeflateMemLevel|DeflateWindowSize)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.dir.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(DirectoryIndex|DirectorySlash|FallbackResource)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.disk_cache.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CacheDirLength|CacheDirLevels|CacheExpiryCheck|CacheGcClean|CacheGcDaily|CacheGcInterval|CacheGcMemUsage|CacheGcUnused|CacheMaxFileSize|CacheMinFileSize|CacheRoot|CacheSize|CacheTimeMargin)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.dumpio.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(DumpIOInput|DumpIOOutput)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.env.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(PassEnv|SetEnv|UnsetEnv)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.expires.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ExpiresActive|ExpiresByType|ExpiresDefault)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.ext_filter.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ExtFilterDefine|ExtFilterOptions)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.file_cache.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CacheFile|MMapFile)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.filter.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AddOutputFilterByType|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.headers.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Header|RequestHeader)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.imap.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ImapBase|ImapDefault|ImapMenu)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.include.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(SSIEndTag|SSIErrorMsg|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|XBitHack)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.isapi.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ISAPIAppendLogToErrors|ISAPIAppendLogToQuery|ISAPICacheFile|ISAPIFakeAsync|ISAPILogNotSupported|ISAPIReadAheadBuffer)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.ldap.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(LDAPCacheEntries|LDAPCacheTTL|LDAPConnectionTimeout|LDAPOpCacheEntries|LDAPOpCacheTTL|LDAPSharedCacheFile|LDAPSharedCacheSize|LDAPTrustedCA|LDAPTrustedCAType)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.log.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(BufferedLogs|CookieLog|CustomLog|LogFormat|TransferLog|ForensicLog)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.mem_cache.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(MCacheMaxObjectCount|MCacheMaxObjectSize|MCacheMaxStreamingBuffer|MCacheMinObjectSize|MCacheRemovalAlgorithm|MCacheSize)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.mime.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AddCharset|AddEncoding|AddHandler|AddInputFilter|AddLanguage|AddOutputFilter|AddType|DefaultLanguage|ModMimeUsePathInfo|MultiviewsMatch|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|TypesConfig)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.misc.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(ProtocolEcho|Example|AddModuleInfo|MimeMagicFile|CheckSpelling|ExtendedStatus|SuexecUserGroup|UserDir)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.negotiation.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CacheNegotiatedDocs|ForceLanguagePriority|LanguagePriority)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.nw_ssl.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(NWSSLTrustedCerts|NWSSLUpgradeable|SecureListen)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.proxy.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(AllowCONNECT|NoProxy|ProxyBadHeader|ProxyBlock|ProxyDomain|ProxyErrorOverride|ProxyFtpDirCharset|ProxyIOBufferSize|ProxyMaxForwards|ProxyPass|ProxyPassMatch|ProxyPassReverse|ProxyPreserveHost|ProxyReceiveBufferSize|ProxyRemote|ProxyRemoteMatch|ProxyRequests|ProxyTimeout|ProxyVia)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.rewrite.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(RewriteBase|RewriteCond|RewriteEngine|RewriteLock|RewriteLog|RewriteLogLevel|RewriteMap|RewriteOptions|RewriteRule)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.setenvif.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(BrowserMatch|BrowserMatchNoCase|SetEnvIf|SetEnvIfNoCase)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.so.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(LoadFile|LoadModule)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.ssl.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(SSLCACertificateFile|SSLCACertificatePath|SSLCARevocationFile|SSLCARevocationPath|SSLCertificateChainFile|SSLCertificateFile|SSLCertificateKeyFile|SSLCipherSuite|SSLEngine|SSLMutex|SSLOptions|SSLPassPhraseDialog|SSLProtocol|SSLProxyCACertificateFile|SSLProxyCACertificatePath|SSLProxyCARevocationFile|SSLProxyCARevocationPath|SSLProxyCipherSuite|SSLProxyEngine|SSLProxyMachineCertificateFile|SSLProxyMachineCertificatePath|SSLProxyProtocol|SSLProxyVerify|SSLProxyVerifyDepth|SSLRandomSeed|SSLRequire|SSLRequireSSL|SSLSessionCache|SSLSessionCacheTimeout|SSLUserName|SSLVerifyClient|SSLVerifyDepth|SSLInsecureRenegotiation|SSLOpenSSLConfCmd)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.substitute.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(Substitute|SubstituteInheritBefore|SubstituteMaxLineLength)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.usertrack.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.vhost_alias.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(VirtualDocumentRoot|VirtualDocumentRootIP|VirtualScriptAlias|VirtualScriptAliasIP)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.php.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.property.apacheconf"
|
||||
},
|
||||
"5": {
|
||||
"name": "string.value.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(php_value|php_flag|php_admin_value|php_admin_flag)\\b(\\s+(.+?)(\\s+(\".+?\"|.+?))?)?\\s"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.variable.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.env.apacheconf"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.misc.apacheconf"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.variable.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "(%\\{)((HTTP_USER_AGENT|HTTP_REFERER|HTTP_COOKIE|HTTP_FORWARDED|HTTP_HOST|HTTP_PROXY_CONNECTION|HTTP_ACCEPT|REMOTE_ADDR|REMOTE_HOST|REMOTE_PORT|REMOTE_USER|REMOTE_IDENT|REQUEST_METHOD|SCRIPT_FILENAME|PATH_INFO|QUERY_STRING|AUTH_TYPE|DOCUMENT_ROOT|SERVER_ADMIN|SERVER_NAME|SERVER_ADDR|SERVER_PORT|SERVER_PROTOCOL|SERVER_SOFTWARE|TIME_YEAR|TIME_MON|TIME_DAY|TIME_HOUR|TIME_MIN|TIME_SEC|TIME_WDAY|TIME|API_VERSION|THE_REQUEST|REQUEST_URI|REQUEST_FILENAME|IS_SUBREQ|HTTPS)|(.*?))(\\})"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.mime-type.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b((text|image|application|video|audio)/.+?)\\s"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.helper.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(?i)(export|from|unset|set|on|off)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.numeric.integer.decimal.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\b(\\d+)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.flag.apacheconf"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.flag.apacheconf"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.flag.apacheconf"
|
||||
}
|
||||
},
|
||||
"match": "\\s(\\[)(.*?)(\\])\\s"
|
||||
}
|
||||
],
|
||||
"scopeName": "source.apacheconf",
|
||||
"uuid": "8747d9e4-b308-4fc2-9aa1-66b6919bc7b9"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,425 +0,0 @@
|
||||
{
|
||||
"scopeName": "source.ara",
|
||||
"name": "ara",
|
||||
"fileTypes": ["ara"],
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#namespace"
|
||||
},
|
||||
{
|
||||
"include": "#named-arguments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#type"
|
||||
},
|
||||
{
|
||||
"include": "#function-call"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"class-name": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b(?i)(?<!\\$)(?=[\\\\a-zA-Z_])",
|
||||
"end": "(?i)([a-z_][a-z_0-9]*)?(?=[^a-z0-9_\\\\])\\b",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.class.ara"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#namespace"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"name": "support.type.php",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?:void|true|false|null|never|float|bool|int|string|dict|vec|object|mixed|nonnull|resource|self|static|parent|iterable)\\b",
|
||||
"name": "support.type.php"
|
||||
},
|
||||
{
|
||||
"begin": "([A-Za-z_][A-Za-z0-9_]*)<",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.class.php"
|
||||
}
|
||||
},
|
||||
"end": ">",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-annotation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(shape\\()",
|
||||
"end": "((,|\\.\\.\\.)?\\s*\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.key.php"
|
||||
}
|
||||
},
|
||||
"name": "storage.type.shape.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-annotation"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#constants"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-annotation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(fn\\(",
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-annotation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#class-name"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"namespace": {
|
||||
"begin": "(?i)((namespace)|[a-z0-9_]+)?(\\\\)(?=.*?[^a-z_0-9\\\\])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.type.namespace.php"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.inheritance.php"
|
||||
}
|
||||
},
|
||||
"end": "(?i)(?=[a-z0-9_]*[^a-z0-9_\\\\])",
|
||||
"name": "support.other.namespace.php",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.type.namespace.php",
|
||||
"match": "(?i)[a-z0-9_]+(?=\\\\)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.inheritance.php"
|
||||
}
|
||||
},
|
||||
"match": "(?i)(\\\\)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"named-arguments": {
|
||||
"match": "(?i)(?<=^|\\(|,)\\s*([a-z_\\x{7f}-\\x{10ffff}][a-z0-9_\\x{7f}-\\x{10ffff}]*)\\s*(:)(?!:)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.variable.parameter.ara"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.colon.ara"
|
||||
}
|
||||
}
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ara"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.ara"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.ara"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ara"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-slash.ara"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.ara",
|
||||
"match": "\\b(await|async|concurrently|break|continue|do|else|elseif|for|if|loop|while|foreach|match|return|try|yield|from|catch|finally|default|exit)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.decl.ara",
|
||||
"match": "\\b(const|enum|class|interface|trait|namespace|type|case|function|fn)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.ara",
|
||||
"match": "\\b(final|abstract|static|readonly|public|private|protected)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.ara",
|
||||
"match": "\\b(as|is|extends|implements|use|where|clone|new)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-call": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?i)(?=\\\\?[a-z_0-9\\\\]+\\\\[a-z_][a-z0-9_]*\\s*(\\(|(::<)))",
|
||||
"comment": "Functions in a user-defined namespace (overrides any built-ins)",
|
||||
"end": "(?=\\s*(\\(|(::<)))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#user-function-call"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(\\\\)?(?=\\b[a-z_][a-z_0-9]*\\s*(\\(|(::<)))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.inheritance.php"
|
||||
}
|
||||
},
|
||||
"comment": "Root namespace function calls (built-in or user)",
|
||||
"end": "(?=\\s*(\\(|(::<)))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#user-function-call"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"user-function-call": {
|
||||
"begin": "(?i)(?=[a-z_0-9\\\\]*[a-z_][a-z0-9_]*\\s*\\()",
|
||||
"end": "(?i)[a-z_][a-z_0-9]*(?=\\s*\\()",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "entity.name.function.php"
|
||||
}
|
||||
},
|
||||
"name": "meta.function-call.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#namespace"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.single.ara",
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\[\\\\']",
|
||||
"name": "constant.character.escape.ara"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.ara",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"interpolation": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "Interpolating octal values e.g. \\01 or \\07.",
|
||||
"match": "\\\\[0-7]{1,3}",
|
||||
"name": "constant.numeric.octal.ara"
|
||||
},
|
||||
{
|
||||
"comment": "Interpolating hex values e.g. \\x1 or \\xFF.",
|
||||
"match": "\\\\x[0-9A-Fa-f]{1,2}",
|
||||
"name": "constant.numeric.hex.ara"
|
||||
},
|
||||
{
|
||||
"comment": "Escaped characters in double-quoted strings e.g. \\n or \\t.",
|
||||
"match": "\\\\[nrt\\\\\\$\\\"]",
|
||||
"name": "constant.character.escape.ara"
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "0[xX][0-9a-fA-F]+(?:_[0-9a-fA-F]+)*",
|
||||
"name": "constant.numeric.hex.ara"
|
||||
},
|
||||
{
|
||||
"match": "0[bB][01]+(?:_[01]+)*",
|
||||
"name": "constant.numeric.binary.ara"
|
||||
},
|
||||
{
|
||||
"match": "0[oO][0-7]+(?:_[0-7]+)*",
|
||||
"name": "constant.numeric.octal.ara"
|
||||
},
|
||||
{
|
||||
"match": "0(?:_?[0-7]+)+",
|
||||
"name": "constant.numeric.octal.ara"
|
||||
},
|
||||
{
|
||||
"match": "(?x)\n(?:\n (?:[0-9]+(?:_[0-9]+)*)?(\\.)[0-9]+(?:_[0-9]+)*(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # .3\n [0-9]+(?:_[0-9]+)*(\\.)(?:[0-9]+(?:_[0-9]+)*)?(?:[eE][+-]?[0-9]+(?:_[0-9]+)*)?| # 3.\n [0-9]+(?:_[0-9]+)*[eE][+-]?[0-9]+(?:_[0-9]+)* # 2e-3\n)",
|
||||
"name": "constant.numeric.decimal.ara",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.decimal.period.ara"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.decimal.period.ara"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "0|[1-9](?:_?[0-9]+)*",
|
||||
"name": "constant.numeric.decimal.ara"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "assignment operators",
|
||||
"name": "keyword.assignments.ara",
|
||||
"match": "(\\+=|-=|\\*=|/=|%=|\\^=|&&=|<=|>=|&=|\\|=|<<=|>>=|\\?\\?=)"
|
||||
},
|
||||
{
|
||||
"comment": "logical operators",
|
||||
"name": "keyword.operators.ara",
|
||||
"match": "(\\^|\\||\\|\\||&&|>>|<<|&|~|<<|>>|>|<|<=>|\\?\\?|\\?|:|\\?:)(?!=)"
|
||||
},
|
||||
{
|
||||
"comment": "comparison operators",
|
||||
"name": "keyword.operator.comparison.ara",
|
||||
"match": "(==|===|!==|!=|<=|>=|<|>)(?!=)"
|
||||
},
|
||||
{
|
||||
"comment": "math operators",
|
||||
"name": "keyword.operator.math.ara",
|
||||
"match": "(([+%]|(\\*(?!\\w)))(?!=))|(-(?!>))|(/(?!/))"
|
||||
},
|
||||
{
|
||||
"comment": "single equal assignment operator",
|
||||
"name": "keyword.operator.assignment.ara",
|
||||
"match": "(?<![<>])=(?!=|>)"
|
||||
},
|
||||
{
|
||||
"comment": "less than, greater than (special case)",
|
||||
"match": "(?:\\b|(?:(\\))|(\\])|(\\})))[ \\t]+([<>])[ \\t]+(?:\\b|(?:(\\()|(\\[)|(\\{)))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.brackets.round.ara"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.brackets.square.ara"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.brackets.curly.ara"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.comparison.ara"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.brackets.round.ara"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.brackets.square.ara"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.brackets.curly.ara"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "arrow method call, arrow property access",
|
||||
"name": "keyword.operator.arrow.ara",
|
||||
"match": "(?x)\n(?:\n -> | \\?-> \n)"
|
||||
},
|
||||
{
|
||||
"comment": "double arrow key-value pair",
|
||||
"name": "keyword.operator.double-arrow.ara",
|
||||
"match": "(?x)\n(?:\n =>\n)"
|
||||
},
|
||||
{
|
||||
"comment": "static method call, static property access",
|
||||
"name": "keyword.operator.static.ara",
|
||||
"match": "(?x)\n(?:\n ::\n)"
|
||||
},
|
||||
{
|
||||
"comment": "closure creation",
|
||||
"name": "keyword.operator.closure.ara",
|
||||
"match": "(?x)\n(?:\n \\(\\.\\.\\.\\)\n)"
|
||||
},
|
||||
{
|
||||
"comment": "spread operator",
|
||||
"name": "keyword.operator.spread.ara",
|
||||
"match": "(?x)\n(?:\n \\.\\.\\.\n)"
|
||||
},
|
||||
{
|
||||
"comment": "namespace operator",
|
||||
"name": "keyword.operator.namespace.ara",
|
||||
"match": "\\\\"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,723 +0,0 @@
|
||||
{
|
||||
"name": "astro",
|
||||
"scopeName": "source.astro",
|
||||
"fileTypes": ["astro"],
|
||||
"injections": {
|
||||
"L:(meta.script.astro) (meta.lang.json) - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.json"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:(meta.script.astro) (meta.lang.js | meta.lang.javascript | meta.lang.partytown | meta.lang.node) - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.js",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:(meta.script.astro) (meta.lang.ts | meta.lang.typescript) - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.ts",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.script.astro - meta.lang - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.js",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.stylus - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.stylus",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.stylus"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.sass - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.sass",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sass"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.css - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.scss - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.css.scss",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css.scss"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.less - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.css.less",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css.less"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro meta.lang.postcss - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.css.postcss",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css.postcss"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"L:meta.style.astro - meta.lang - (meta source)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=>)(?!</)",
|
||||
"end": "(?=</)",
|
||||
"name": "meta.embedded.block.astro",
|
||||
"contentName": "source.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#scope"
|
||||
},
|
||||
{
|
||||
"include": "#frontmatter"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"frontmatter": {
|
||||
"begin": "\\A(-{3})\\s*$",
|
||||
"end": "(^|\\G)(-{3})|\\.{3}\\s*$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "comment"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "comment"
|
||||
}
|
||||
},
|
||||
"contentName": "source.ts",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ts"
|
||||
}
|
||||
]
|
||||
},
|
||||
"scope": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#tags"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=>|})",
|
||||
"end": "(?=<|{)",
|
||||
"name": "text.astro"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"begin": "<!--",
|
||||
"end": "-->",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.astro"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\G-?>|<!--(?!>)|<!-(?=-->)|--!>",
|
||||
"name": "invalid.illegal.characters-not-allowed-here.astro"
|
||||
}
|
||||
]
|
||||
},
|
||||
"interpolation": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.astro"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.astro"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.embedded.expression.astro source.tsx",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G\\s*(?={)",
|
||||
"end": "(?<=})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.tsx#object-literal"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "source.tsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"attributes": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attributes-events"
|
||||
},
|
||||
{
|
||||
"include": "#attributes-keyvalue"
|
||||
},
|
||||
{
|
||||
"include": "#attributes-interpolated"
|
||||
}
|
||||
]
|
||||
},
|
||||
"attributes-events": {
|
||||
"begin": "(on(s(croll|t(orage|alled)|u(spend|bmit)|e(curitypolicyviolation|ek(ing|ed)|lect))|hashchange|c(hange|o(ntextmenu|py)|u(t|echange)|l(ick|ose)|an(cel|play(through)?))|t(imeupdate|oggle)|in(put|valid)|o(nline|ffline)|d(urationchange|r(op|ag(start|over|e(n(ter|d)|xit)|leave)?)|blclick)|un(handledrejection|load)|p(opstate|lay(ing)?|a(ste|use|ge(show|hide))|rogress)|e(nded|rror|mptied)|volumechange|key(down|up|press)|focus|w(heel|aiting)|l(oad(start|e(nd|d(data|metadata)))?|anguagechange)|a(uxclick|fterprint|bort)|r(e(s(ize|et)|jectionhandled)|atechange)|m(ouse(o(ut|ver)|down|up|enter|leave|move)|essage(error)?)|b(efore(unload|print)|lur)))(?![\\\\w:-])",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": ".*",
|
||||
"name": "entity.other.attribute-name.astro"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=\\s*+[^=\\s])",
|
||||
"name": "meta.attribute.$1.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.key-value.astro"
|
||||
}
|
||||
},
|
||||
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?=[^\\s=<>`/]|/(?!>))",
|
||||
"end": "(?!\\G)",
|
||||
"name": "meta.embedded.line.js",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(([^\\s\\\"'=<>`/]|/(?!>))+)",
|
||||
"name": "string.unquoted.astro",
|
||||
"captures": [
|
||||
{
|
||||
"0": {
|
||||
"name": "source.js"
|
||||
}
|
||||
},
|
||||
{
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(['\"])",
|
||||
"end": "\\1",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.astro"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.astro"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([^\\n\\\"/]|/(?![/*]))+",
|
||||
"captures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.js"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\\")|\\n",
|
||||
"name": "comment.line.double-slash.js"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.js"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\\")|\\*/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.js"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"attributes-interpolated": {
|
||||
"begin": "(?<!:|=)\\s*({)",
|
||||
"end": "(\\})",
|
||||
"contentName": "meta.embedded.expression.astro source.tsx",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.tsx"
|
||||
}
|
||||
]
|
||||
},
|
||||
"attributes-keyvalue": {
|
||||
"begin": "([_@$[:alpha:]][:._\\-$[:alnum:]]*)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": ".*",
|
||||
"name": "entity.other.attribute-name.astro"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=\\s*+[^=\\s])",
|
||||
"name": "meta.attribute.$1.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.key-value.astro"
|
||||
}
|
||||
},
|
||||
"end": "(?<=[^\\s=])(?!\\s*=)|(?=/?>)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attributes-value"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"attributes-value": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"match": "([^\\s\"'=<>`/]|/(?!>))+",
|
||||
"name": "string.unquoted.astro"
|
||||
},
|
||||
{
|
||||
"begin": "(['\"])",
|
||||
"end": "\\1",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.astro"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.astro"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.astro"
|
||||
},
|
||||
{
|
||||
"begin": "(`)",
|
||||
"end": "\\1",
|
||||
"name": "string.template.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.tsx#template-substitution-element"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-raw"
|
||||
},
|
||||
{
|
||||
"include": "#tags-lang"
|
||||
},
|
||||
{
|
||||
"include": "#tags-void"
|
||||
},
|
||||
{
|
||||
"include": "#tags-general-end"
|
||||
},
|
||||
{
|
||||
"include": "#tags-general-start"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-name": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[A-Z][a-zA-Z0-9_]*",
|
||||
"name": "support.class.component.astro"
|
||||
},
|
||||
{
|
||||
"match": "[a-z][\\w0-9:]*-[\\w0-9:-]*",
|
||||
"name": "meta.tag.custom.astro entity.name.tag.astro"
|
||||
},
|
||||
{
|
||||
"match": "[a-z][\\w0-9:-]*",
|
||||
"name": "entity.name.tag.astro"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-start-attributes": {
|
||||
"begin": "\\G",
|
||||
"end": "(?=/?>)",
|
||||
"name": "meta.tag.start.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-lang-start-attributes": {
|
||||
"begin": "\\G",
|
||||
"end": "(?=/>)|>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.astro"
|
||||
}
|
||||
},
|
||||
"name": "meta.tag.start.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-start-node": {
|
||||
"match": "(<)([^/\\s>/]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.astro"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-name"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "meta.tag.start.astro"
|
||||
},
|
||||
"tags-end-node": {
|
||||
"match": "(</)(.*?)\\s*(>)|(/>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.tag.end.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-name"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
|
||||
},
|
||||
"4": {
|
||||
"name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags-raw": {
|
||||
"begin": "<([^/?!\\s<>]+)(?=[^>]+is:raw).*?",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-start-node"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "</\\1\\s*>|/>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-end-node"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "meta.scope.tag.$1.astro meta.raw.astro",
|
||||
"contentName": "source.unknown",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-lang-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-lang": {
|
||||
"begin": "<(script|style)",
|
||||
"end": "</\\1\\s*>|/>",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-start-node"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-end-node"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "meta.scope.tag.$1.astro meta.$1.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text\\/)?(application\\/ld\\+json)\\2)",
|
||||
"end": "(?=</|/>)",
|
||||
"name": "meta.lang.json.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-lang-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(module)\\2)",
|
||||
"end": "(?=</|/>)",
|
||||
"name": "meta.lang.javascript.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-lang-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\G(?=\\s*[^>]*?(type|lang)\\s*=\\s*(['\"]|)(?:text/|application/)?([\\w\\/+]+)\\2)",
|
||||
"end": "(?=</|/>)",
|
||||
"name": "meta.lang.$3.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-lang-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#tags-lang-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-void": {
|
||||
"begin": "(<)(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)(?=\\s|/?>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.astro"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.astro"
|
||||
}
|
||||
},
|
||||
"end": "/?>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.begin.astro"
|
||||
}
|
||||
},
|
||||
"name": "meta.tag.void.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-general-start": {
|
||||
"begin": "(<)([^/\\s>/]*)",
|
||||
"end": "(/?>)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-start-node"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "meta.tag.start.astro punctuation.definition.tag.end.astro"
|
||||
}
|
||||
},
|
||||
"name": "meta.scope.tag.$2.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-start-attributes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags-general-end": {
|
||||
"begin": "(</)([^/\\s>]*)",
|
||||
"end": "(>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "meta.tag.end.astro punctuation.definition.tag.begin.astro"
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.tag.end.astro",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags-name"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "meta.tag.end.astro punctuation.definition.tag.end.astro"
|
||||
}
|
||||
},
|
||||
"name": "meta.scope.tag.$2.astro"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,386 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["awk"],
|
||||
"name": "awk",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#procedure"
|
||||
},
|
||||
{
|
||||
"include": "#pattern"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"builtin-pattern": {
|
||||
"match": "\\b(BEGINFILE|BEGIN|ENDFILE|END)\\b",
|
||||
"name": "constant.language.awk"
|
||||
},
|
||||
"command": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?:next|print|printf)\\b",
|
||||
"name": "keyword.other.command.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:close|getline|delete|system)\\b",
|
||||
"name": "keyword.other.command.nawk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:fflush|nextfile)\\b",
|
||||
"name": "keyword.other.command.bell-awk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"match": "#.*",
|
||||
"name": "comment.line.number-sign.awk"
|
||||
},
|
||||
"constant": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#numeric-constant"
|
||||
},
|
||||
{
|
||||
"include": "#string-constant"
|
||||
}
|
||||
]
|
||||
},
|
||||
"escaped-char": {
|
||||
"match": "\\\\(?:[\\\\abfnrtv/\"]|x[0-9A-Fa-f]{2}|[0-7]{3})",
|
||||
"name": "constant.character.escape.awk"
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
},
|
||||
{
|
||||
"include": "#constant"
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#regexp-in-expression"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#groupings"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?:exp|int|log|sqrt|index|length|split|sprintf|substr)\\b",
|
||||
"name": "support.function.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:atan2|cos|rand|sin|srand|gsub|match|sub|tolower|toupper)\\b",
|
||||
"name": "support.function.nawk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:gensub|strftime|systime)\\b",
|
||||
"name": "support.function.gawk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-definition": {
|
||||
"begin": "\\b(function)\\s+(\\w+)(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.awk"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.awk"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.parameters.begin.awk"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.parameters.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(\\w+)\\b",
|
||||
"name": "variable.parameter.function.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(,)\\b",
|
||||
"name": "punctuation.separator.parameters.awk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"groupings": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\(",
|
||||
"name": "meta.brace.round.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\)",
|
||||
"name": "meta.brace.round.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\,",
|
||||
"name": "punctuation.separator.parameters.awk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword": {
|
||||
"match": "\\b(?:break|continue|do|while|exit|for|if|else|return)\\b",
|
||||
"name": "keyword.control.awk"
|
||||
},
|
||||
"numeric-constant": {
|
||||
"match": "\\b[0-9]+(?:\\.[0-9]+)?(?:e[+-][0-9]+)?\\b",
|
||||
"name": "constant.numeric.awk"
|
||||
},
|
||||
"operator": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(!?~|[=<>!]=|[<>])",
|
||||
"name": "keyword.operator.comparison.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(in)\\b",
|
||||
"name": "keyword.operator.comparison.awk"
|
||||
},
|
||||
{
|
||||
"match": "([+\\-*/%^]=|\\+\\+|--|>>|=)",
|
||||
"name": "keyword.operator.assignment.awk"
|
||||
},
|
||||
{
|
||||
"match": "(\\|\\||&&|!)",
|
||||
"name": "keyword.operator.boolean.awk"
|
||||
},
|
||||
{
|
||||
"match": "([+\\-*/%^])",
|
||||
"name": "keyword.operator.arithmetic.awk"
|
||||
},
|
||||
{
|
||||
"match": "([?:])",
|
||||
"name": "keyword.operator.trinary.awk"
|
||||
},
|
||||
{
|
||||
"match": "(\\[|\\])",
|
||||
"name": "keyword.operator.index.awk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pattern": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#regexp-as-pattern"
|
||||
},
|
||||
{
|
||||
"include": "#function-definition"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-pattern"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"procedure": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#procedure"
|
||||
},
|
||||
{
|
||||
"include": "#keyword"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regex-as-assignment": {
|
||||
"begin": "([^=<>!+\\-*/%^]=)\\s*(/)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.assignment.awk"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.regex.begin.awk"
|
||||
}
|
||||
},
|
||||
"contentName": "string.regexp",
|
||||
"end": "/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.regexp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regex-as-comparison": {
|
||||
"begin": "(!?~)\\s*(/)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.comparison.awk"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.regex.begin.awk"
|
||||
}
|
||||
},
|
||||
"contentName": "string.regexp",
|
||||
"end": "/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.regexp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regex-as-first-argument": {
|
||||
"begin": "(\\()\\s*(/)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "meta.brace.round.awk"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.regex.begin.awk"
|
||||
}
|
||||
},
|
||||
"contentName": "string.regexp",
|
||||
"end": "/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.regexp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regex-as-nth-argument": {
|
||||
"begin": "(,)\\s*(/)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.parameters.awk"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.regex.begin.awk"
|
||||
}
|
||||
},
|
||||
"contentName": "string.regexp",
|
||||
"end": "/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.regexp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regexp-as-pattern": {
|
||||
"begin": "/",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.begin.awk"
|
||||
}
|
||||
},
|
||||
"contentName": "string.regexp",
|
||||
"end": "/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regex.end.awk"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.regexp"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regexp-in-expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#regex-as-assignment"
|
||||
},
|
||||
{
|
||||
"include": "#regex-as-comparison"
|
||||
},
|
||||
{
|
||||
"include": "#regex-as-first-argument"
|
||||
},
|
||||
{
|
||||
"include": "#regex-as-nth-argument"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-constant": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.awk"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.awk"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.awk",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped-char"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\$[0-9]+",
|
||||
"name": "variable.language.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:FILENAME|FS|NF|NR|OFMT|OFS|ORS|RS)\\b",
|
||||
"name": "variable.language.awk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:ARGC|ARGV|CONVFMT|ENVIRON|FNR|RLENGTH|RSTART|SUBSEP)\\b",
|
||||
"name": "variable.language.nawk"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:ARGIND|ERRNO|FIELDWIDTHS|IGNORECASE|RT)\\b",
|
||||
"name": "variable.language.gawk"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.awk",
|
||||
"uuid": "67bd1ff0-006b-4c32-8b97-8bc198777582"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,788 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/mmims/language-batchfile/blob/master/grammars/batchfile.cson",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/mmims/language-batchfile/commit/6154ae25a24e01ac9329e7bcf958e093cd8733a9",
|
||||
"name": "bat",
|
||||
"scopeName": "source.batchfile",
|
||||
"injections": {
|
||||
"L:meta.block.repeat.batchfile": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#repeatParameter"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#commands"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#constants"
|
||||
},
|
||||
{
|
||||
"include": "#controls"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
},
|
||||
{
|
||||
"include": "#labels"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"commands": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=^|[\\s@])(?i:adprep|append|arp|assoc|at|atmadm|attrib|auditpol|autochk|autoconv|autofmt|bcdboot|bcdedit|bdehdcfg|bitsadmin|bootcfg|brea|cacls|cd|certreq|certutil|change|chcp|chdir|chglogon|chgport|chgusr|chkdsk|chkntfs|choice|cipher|clip|cls|clscluadmin|cluster|cmd|cmdkey|cmstp|color|comp|compact|convert|copy|cprofile|cscript|csvde|date|dcdiag|dcgpofix|dcpromo|defra|del|dfscmd|dfsdiag|dfsrmig|diantz|dir|dirquota|diskcomp|diskcopy|diskpart|diskperf|diskraid|diskshadow|dispdiag|doin|dnscmd|doskey|driverquery|dsacls|dsadd|dsamain|dsdbutil|dsget|dsmgmt|dsmod|dsmove|dsquery|dsrm|edit|endlocal|eraseesentutl|eventcreate|eventquery|eventtriggers|evntcmd|expand|extract|fc|filescrn|find|findstr|finger|flattemp|fonde|forfiles|format|freedisk|fsutil|ftp|ftype|fveupdate|getmac|gettype|gpfixup|gpresult|gpupdate|graftabl|hashgen|hep|helpctr|hostname|icacls|iisreset|inuse|ipconfig|ipxroute|irftp|ismserv|jetpack|klist|ksetup|ktmutil|ktpass|label|ldifd|ldp|lodctr|logman|logoff|lpq|lpr|macfile|makecab|manage-bde|mapadmin|md|mkdir|mklink|mmc|mode|more|mount|mountvol|move|mqbup|mqsvc|mqtgsvc|msdt|msg|msiexec|msinfo32|mstsc|nbtstat|net computer|net group|net localgroup|net print|net session|net share|net start|net stop|net use|net user|net view|net|netcfg|netdiag|netdom|netsh|netstat|nfsadmin|nfsshare|nfsstat|nlb|nlbmgr|nltest|nslookup|ntackup|ntcmdprompt|ntdsutil|ntfrsutl|openfiles|pagefileconfig|path|pathping|pause|pbadmin|pentnt|perfmon|ping|pnpunatten|pnputil|popd|powercfg|powershell|powershell_ise|print|prncnfg|prndrvr|prnjobs|prnmngr|prnport|prnqctl|prompt|pubprn|pushd|pushprinterconnections|pwlauncher|qappsrv|qprocess|query|quser|qwinsta|rasdial|rcp|rd|rdpsign|regentc|recover|redircmp|redirusr|reg|regini|regsvr32|relog|ren|rename|rendom|repadmin|repair-bde|replace|reset session|rxec|risetup|rmdir|robocopy|route|rpcinfo|rpcping|rsh|runas|rundll32|rwinsta|sc|schtasks|scp|scwcmd|secedit|serverceipoptin|servrmanagercmd|serverweroptin|setspn|setx|sfc|sftp|shadow|shift|showmount|shutdown|sort|ssh|ssh-add|ssh-agent|ssh-keygen|ssh-keyscan|start|storrept|subst|sxstrace|ysocmgr|systeminfo|takeown|tapicfg|taskkill|tasklist|tcmsetup|telnet|tftp|time|timeout|title|tlntadmn|tpmvscmgr|tpmvscmgr|tacerpt|tracert|tree|tscon|tsdiscon|tsecimp|tskill|tsprof|type|typeperf|tzutil|uddiconfig|umount|unlodctr|ver|verifier|verif|vol|vssadmin|w32tm|waitfor|wbadmin|wdsutil|wecutil|wevtutil|where|whoami|winnt|winnt32|winpop|winrm|winrs|winsat|wlbs|wmic|wscript|wsl|xcopy)(?=$|\\s)",
|
||||
"name": "keyword.command.batchfile"
|
||||
},
|
||||
{
|
||||
"begin": "(?i)(?<=^|[\\s@])(echo)(?:(?=$|\\.|:)|\\s+(?:(on|off)(?=\\s*$))?)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.command.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?i)(?<=^|[\\s@])(setlocal)(?:\\s*$|\\s+(EnableExtensions|DisableExtensions|EnableDelayedExpansion|DisableDelayedExpansion)(?=\\s*$))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.command.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.batchfile"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#command_set"
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=^|[\\s@])(?i:SET)(?=$|\\s)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.command.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command_set_inside"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set_inside": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#command_set_strings"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"begin": "([^ ][^=]*)(=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\s+/[aA]\\s+",
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"name": "meta.expression.set.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command_set_inside_arithmetic"
|
||||
},
|
||||
{
|
||||
"include": "#command_set_group"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#command_set_inside_arithmetic"
|
||||
},
|
||||
{
|
||||
"include": "#command_set_group"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\s+/[pP]\\s+",
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command_set_strings"
|
||||
},
|
||||
{
|
||||
"begin": "([^ ][^=]*)(=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"name": "meta.prompt.set.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set_group": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.end.batchfile"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command_set_inside_arithmetic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set_inside_arithmetic": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#command_set_operators"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set_operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([^ ]*)(\\+\\=|\\-\\=|\\*\\=|\\/\\=|%%\\=|&\\=|\\|\\=|\\^\\=|<<\\=|>>\\=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.augmented.batchfile"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\+|\\-|/|\\*|%%|\\||&|\\^|<<|>>|~",
|
||||
"name": "keyword.operator.arithmetic.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "!",
|
||||
"name": "keyword.operator.logical.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "([^ =]*)(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.other.readwrite.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.batchfile"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"command_set_strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\")\\s*([^ ][^=]*)(=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.readwrite.batchfile"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.assignment.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?:^|(&))\\s*(?=((?::[+=,;: ])))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.conditional.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((?::[+=,;: ]))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\n)",
|
||||
"name": "comment.line.colon.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=^|[\\s@])(?i)(REM)(\\.)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.command.rem.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=$\\n|[&|><)])",
|
||||
"name": "comment.line.rem.batchfile"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=^|[\\s@])(?i:rem)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.command.rem.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.rem.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[><|]",
|
||||
"name": "invalid.illegal.unexpected-character.batchfile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"constants": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?i:NUL)\\b",
|
||||
"name": "constant.language.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"controls": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)(?<=^|\\s)(?:call|exit(?=$|\\s)|goto(?=$|\\s|:))",
|
||||
"name": "keyword.control.statement.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "(?<=^|\\s)(?i)(if)\\s+(?:(not)\\s+)?(exist|defined|errorlevel|cmdextversion)(?=\\s)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.logical.batchfile"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.other.special-method.batchfile"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?<=^|\\s)(?i)(?:if|else)(?=$|\\s)",
|
||||
"name": "keyword.control.conditional.batchfile"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=^|[\\s(&^])(?i)for(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.repeat.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.repeat.batchfile",
|
||||
"end": "\\n",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=[\\s^])(?i)in(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.repeat.in.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?<=[\\s)^])(?i)do(?=\\s)|\\n",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.repeat.do.batchfile"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"escaped_characters": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "%%|\\^\\^!|\\^(?=.)|\\^\\n",
|
||||
"name": "constant.character.escape.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"labels": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?i)(?:^\\s*|(?<=call|goto)\\s*)(:)([^+=,;:\\s]\\S*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.batchfile"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=^|\\s|=)(0[xX][0-9A-Fa-f]*|[+-]?\\d+)(?=$|\\s|<|>)",
|
||||
"name": "constant.numeric.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "@(?=\\S)",
|
||||
"name": "keyword.operator.at.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\s)(?i:EQU|NEQ|LSS|LEQ|GTR|GEQ)(?=\\s)|==",
|
||||
"name": "keyword.operator.comparison.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\s)(?i)(NOT)(?=\\s)",
|
||||
"name": "keyword.operator.logical.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\^)&&?|\\|\\|",
|
||||
"name": "keyword.operator.conditional.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\^)\\|",
|
||||
"name": "keyword.operator.pipe.batchfile"
|
||||
},
|
||||
{
|
||||
"match": "<&?|>[&>]?",
|
||||
"name": "keyword.operator.redirection.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parens": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.end.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "meta.group.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": ",|;",
|
||||
"name": "punctuation.separator.batchfile"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"repeatParameter": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(%%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?[a-zA-Z])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "variable.parameter.repeat.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(\")|(\\n)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "invalid.illegal.newline.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "%%",
|
||||
"name": "constant.character.escape.batchfile"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(%)(?:(?i:~[fdpnxsatz]*(?:\\$PATH:)?)?\\d|\\*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "variable.parameter.batchfile"
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#variable_delayed_expansion"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "%(?=[^%]+%)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.variable.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(%)|\\n",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.end.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "variable.other.readwrite.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": ":~",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=%|\\n)",
|
||||
"name": "meta.variable.substring.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable_substring"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=%|\\n)",
|
||||
"name": "meta.variable.substitution.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable_replace"
|
||||
},
|
||||
{
|
||||
"begin": "=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=%|\\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable_delayed_expansion"
|
||||
},
|
||||
{
|
||||
"match": "[^%]+",
|
||||
"name": "string.unquoted.batchfile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable_delayed_expansion": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "!(?=[^!]+!)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.variable.begin.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(!)|\\n",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.end.batchfile"
|
||||
}
|
||||
},
|
||||
"name": "variable.other.readwrite.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": ":~",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=!|\\n)",
|
||||
"name": "meta.variable.substring.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable_substring"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=!|\\n)",
|
||||
"name": "meta.variable.substitution.batchfile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_characters"
|
||||
},
|
||||
{
|
||||
"include": "#variable_replace"
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"begin": "=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
}
|
||||
},
|
||||
"end": "(?=!|\\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"match": "[^!]+",
|
||||
"name": "string.unquoted.batchfile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable_replace": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[^=%!\\n]+",
|
||||
"name": "string.unquoted.batchfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable_substring": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([+-]?\\d+)(?:(,)([+-]?\\d+))?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.numeric.batchfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.batchfile"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.batchfile"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,123 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "berry",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#controls"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#comment-block"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
},
|
||||
{
|
||||
"include": "#member"
|
||||
},
|
||||
{
|
||||
"include": "#identifier"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"controls": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.berry",
|
||||
"match": "\\b(if|elif|else|for|while|do|end|break|continue|return|try|except|raise)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.double.berry",
|
||||
"match": "\"(\\\\.|[^\"])*\""
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.single.berry",
|
||||
"match": "'(\\\\.|[^'])*'"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment-block": {
|
||||
"name": "comment.berry",
|
||||
"begin": "\\#\\-",
|
||||
"end": "\\-#",
|
||||
"patterns": [{}]
|
||||
},
|
||||
"comments": {
|
||||
"name": "comment.line.berry",
|
||||
"begin": "\\#",
|
||||
"end": "\\n",
|
||||
"patterns": [{}]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.berry",
|
||||
"match": "\\b(var|static|def|class|true|false|nil|self|super|import|as)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"identifier": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "identifier.berry",
|
||||
"match": "\\b[_A-Za-z]\\w+\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"number": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.berry",
|
||||
"match": "0x[a-fA-F0-9]+|\\d+|(\\d+\\.?|\\.\\d)\\d*([eE][+-]?\\d+)?"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operator": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.berry",
|
||||
"match": "\\(|\\)|\\[|\\]|\\.|-|\\!|~|\\*|/|%|\\+|&|\\^|\\||<|>|=|:"
|
||||
}
|
||||
]
|
||||
},
|
||||
"member": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\.([a-zA-Z_][a-zA-Z0-9_]*)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "entity.other.attribute-name.berry"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"function": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.function.berry",
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\())"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.berry"
|
||||
}
|
||||
@ -1,272 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/jlelong/vscode-latex-basics/blob/master/syntaxes/Bibtex.tmLanguage.json",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/jlelong/vscode-latex-basics/commit/b98c2d4911652824fc990f4b26c9c30be59b78a2",
|
||||
"name": "bibtex",
|
||||
"scopeName": "text.bibtex",
|
||||
"comment": "Grammar based on description from http://artis.imag.fr/~Xavier.Decoret/resources/xdkbibtex/bibtex_summary.html#comment\n\t\n\tTODO: Does not support @preamble\n\t",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "@Comment",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "$\\n?",
|
||||
"name": "comment.line.at-sign.bibtex"
|
||||
},
|
||||
{
|
||||
"begin": "((@)(?i:string))\\s*(\\{)\\s*([a-zA-Z]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_content"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)i(?i::string))\\s*(\\()\\s*([a-zA-Z]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.string-constant.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.string-constant.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.string-constant.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.string-constant.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_content"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)[a-zA-Z]+)\\s*(\\{)\\s*([^\\s,]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.braces.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,}])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_var"
|
||||
},
|
||||
{
|
||||
"include": "#string_content"
|
||||
},
|
||||
{
|
||||
"include": "#integer"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "((@)[a-zA-Z]+)\\s*(\\()\\s*([^\\s,]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.entry-type.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.entry.begin.bibtex"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type.entry-key.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.entry.end.bibtex"
|
||||
}
|
||||
},
|
||||
"name": "meta.entry.parenthesis.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z0-9\\!\\$\\&\\*\\+\\-\\.\\/\\:\\;\\<\\>\\?\\[\\]\\^\\_\\`\\|]+)\\s*(\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.key.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?=[,)])",
|
||||
"name": "meta.key-assignment.bibtex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_var"
|
||||
},
|
||||
{
|
||||
"include": "#string_content"
|
||||
},
|
||||
{
|
||||
"include": "#integer"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "[^@\\n]",
|
||||
"end": "(?=@)",
|
||||
"name": "comment.block.bibtex"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"integer": {
|
||||
"match": "\\d+",
|
||||
"name": "constant.numeric.bibtex"
|
||||
},
|
||||
"nested_braces": {
|
||||
"begin": "(?<!\\\\)\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.group.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(?<!\\\\)\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.group.end.bibtex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nested_braces"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_var": {
|
||||
"match": "(#)?\\s*([a-zA-Z]+)\\s*(#)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.bibtex"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.variable.bibtex"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.bibtex"
|
||||
}
|
||||
}
|
||||
},
|
||||
"string_content": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "(\\})(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.bibtex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "@",
|
||||
"name": "invalid.illegal.at-sign.bibtex"
|
||||
},
|
||||
{
|
||||
"include": "#nested_braces"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.bibtex"
|
||||
}
|
||||
},
|
||||
"end": "\"(?=(?:,?\\s*\\}?\\s*\\n)|(?:\\s*#))",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.bibtex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "@",
|
||||
"name": "invalid.illegal.at-sign.bibtex"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,236 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "bicep",
|
||||
"scopeName": "source.bicep",
|
||||
"fileTypes": [".bicep"],
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"array-literal": {
|
||||
"name": "meta.array-literal.bicep",
|
||||
"begin": "\\[(?!(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\bfor\\b)",
|
||||
"end": "]",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"block-comment": {
|
||||
"name": "comment.block.bicep",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/"
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#line-comment"
|
||||
},
|
||||
{
|
||||
"include": "#block-comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"decorator": {
|
||||
"name": "meta.decorator.bicep",
|
||||
"begin": "@(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*(?=\\b[_$[:alpha:]][_$[:alnum:]]*\\b)",
|
||||
"end": "",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"directive": {
|
||||
"name": "meta.directive.bicep",
|
||||
"begin": "#\\b[_a-zA-Z-0-9]+\\b",
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#directive-variable"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"directive-variable": {
|
||||
"name": "keyword.control.declaration.bicep",
|
||||
"match": "\\b[_a-zA-Z-0-9]+\\b"
|
||||
},
|
||||
"escape-character": {
|
||||
"name": "constant.character.escape.bicep",
|
||||
"match": "\\\\(u{[0-9A-Fa-f]+}|n|r|t|\\\\|'|\\${)"
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-literal"
|
||||
},
|
||||
{
|
||||
"include": "#string-verbatim"
|
||||
},
|
||||
{
|
||||
"include": "#numeric-literal"
|
||||
},
|
||||
{
|
||||
"include": "#named-literal"
|
||||
},
|
||||
{
|
||||
"include": "#object-literal"
|
||||
},
|
||||
{
|
||||
"include": "#array-literal"
|
||||
},
|
||||
{
|
||||
"include": "#keyword"
|
||||
},
|
||||
{
|
||||
"include": "#identifier"
|
||||
},
|
||||
{
|
||||
"include": "#function-call"
|
||||
},
|
||||
{
|
||||
"include": "#decorator"
|
||||
},
|
||||
{
|
||||
"include": "#lambda-start"
|
||||
},
|
||||
{
|
||||
"include": "#directive"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-call": {
|
||||
"name": "meta.function-call.bicep",
|
||||
"begin": "(\\b[_$[:alpha:]][_$[:alnum:]]*\\b)(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\(",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.bicep"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"identifier": {
|
||||
"name": "variable.other.readwrite.bicep",
|
||||
"match": "\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?!(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\()"
|
||||
},
|
||||
"keyword": {
|
||||
"name": "keyword.control.declaration.bicep",
|
||||
"match": "\\b(metadata|targetScope|resource|module|param|var|output|for|in|if|existing|import|as|type|with)\\b"
|
||||
},
|
||||
"lambda-start": {
|
||||
"name": "meta.lambda-start.bicep",
|
||||
"begin": "(\\((?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*(,(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*)*\\)|\\((?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\)|(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*)(?=(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*=>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "meta.undefined.bicep",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#identifier"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*=>"
|
||||
},
|
||||
"line-comment": {
|
||||
"name": "comment.line.double-slash.bicep",
|
||||
"match": "//.*(?=$)"
|
||||
},
|
||||
"named-literal": {
|
||||
"name": "constant.language.bicep",
|
||||
"match": "\\b(true|false|null)\\b"
|
||||
},
|
||||
"numeric-literal": {
|
||||
"name": "constant.numeric.bicep",
|
||||
"match": "[0-9]+"
|
||||
},
|
||||
"object-literal": {
|
||||
"name": "meta.object-literal.bicep",
|
||||
"begin": "{",
|
||||
"end": "}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#object-property-key"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"object-property-key": {
|
||||
"name": "variable.other.property.bicep",
|
||||
"match": "\\b[_$[:alpha:]][_$[:alnum:]]*\\b(?=(?:[ \\t\\r\\n]|\\/\\*(?:\\*(?!\\/)|[^*])*\\*\\/)*:)"
|
||||
},
|
||||
"string-literal": {
|
||||
"name": "string.quoted.single.bicep",
|
||||
"begin": "'(?!'')",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escape-character"
|
||||
},
|
||||
{
|
||||
"include": "#string-literal-subst"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-literal-subst": {
|
||||
"name": "meta.string-literal-subst.bicep",
|
||||
"begin": "(?<!\\\\)(\\${)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.template-expression.begin.bicep"
|
||||
}
|
||||
},
|
||||
"end": "(})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.template-expression.end.bicep"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-verbatim": {
|
||||
"name": "string.quoted.multi.bicep",
|
||||
"begin": "'''",
|
||||
"end": "'''",
|
||||
"patterns": []
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,738 +0,0 @@
|
||||
{
|
||||
"scopeName": "source.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#declarations"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#code-block"
|
||||
},
|
||||
{
|
||||
"include": "#composite"
|
||||
},
|
||||
{
|
||||
"include": "#event"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.cadence"
|
||||
}
|
||||
},
|
||||
"match": "\\A^(#!).*$\\n?",
|
||||
"name": "comment.line.number-sign.cadence"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*\\*(?!/)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.documentation.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nested"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "/\\*:",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.documentation.playground.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nested"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nested"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\*/",
|
||||
"name": "invalid.illegal.unexpected-end-of-block-comment.cadence"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "///",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.cadence"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"name": "comment.line.triple-slash.documentation.cadence"
|
||||
},
|
||||
{
|
||||
"begin": "//:",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.cadence"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"name": "comment.line.double-slash.documentation.cadence"
|
||||
},
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.cadence"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"name": "comment.line.double-slash.cadence"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"nested": {
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nested"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"literals": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#boolean"
|
||||
},
|
||||
{
|
||||
"include": "#numeric"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"match": "\\bnil\\b",
|
||||
"name": "constant.language.nil.cadence"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"boolean": {
|
||||
"match": "\\b(true|false)\\b",
|
||||
"name": "constant.language.boolean.cadence"
|
||||
},
|
||||
"numeric": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#binary"
|
||||
},
|
||||
{
|
||||
"include": "#octal"
|
||||
},
|
||||
{
|
||||
"include": "#decimal"
|
||||
},
|
||||
{
|
||||
"include": "#hexadecimal"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"binary": {
|
||||
"comment": "",
|
||||
"match": "(\\B\\-|\\b)0b[01]([_01]*[01])?\\b",
|
||||
"name": "constant.numeric.integer.binary.cadence"
|
||||
},
|
||||
"octal": {
|
||||
"comment": "",
|
||||
"match": "(\\B\\-|\\b)0o[0-7]([_0-7]*[0-7])?\\b",
|
||||
"name": "constant.numeric.integer.octal.cadence"
|
||||
},
|
||||
"decimal": {
|
||||
"comment": "",
|
||||
"match": "(\\B\\-|\\b)[0-9]([_0-9]*[0-9])?\\b",
|
||||
"name": "constant.numeric.integer.decimal.cadence"
|
||||
},
|
||||
"hexadecimal": {
|
||||
"comment": "",
|
||||
"match": "(\\B\\-|\\b)0x[0-9A-Fa-f]([_0-9A-Fa-f]*[0-9A-Fa-f])?\\b",
|
||||
"name": "constant.numeric.integer.hexadecimal.cadence"
|
||||
}
|
||||
}
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.single-line.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\r|\\n",
|
||||
"name": "invalid.illegal.returns-not-allowed.cadence"
|
||||
},
|
||||
{
|
||||
"include": "#string-guts"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"string-guts": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\[0\\\\tnr\"']",
|
||||
"name": "constant.character.escape.cadence"
|
||||
},
|
||||
{
|
||||
"match": "\\\\u\\{[0-9a-fA-F]{1,8}\\}",
|
||||
"name": "constant.character.escape.unicode.cadence"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\-",
|
||||
"name": "keyword.operator.arithmetic.unary.cadence"
|
||||
},
|
||||
{
|
||||
"match": "!",
|
||||
"name": "keyword.operator.logical.not.cadence"
|
||||
},
|
||||
{
|
||||
"match": "=",
|
||||
"name": "keyword.operator.assignment.cadence"
|
||||
},
|
||||
{
|
||||
"match": "<-",
|
||||
"name": "keyword.operator.move.cadence"
|
||||
},
|
||||
{
|
||||
"match": "<-!",
|
||||
"name": "keyword.operator.force-move.cadence"
|
||||
},
|
||||
{
|
||||
"match": "\\+|\\-|\\*|/",
|
||||
"name": "keyword.operator.arithmetic.cadence"
|
||||
},
|
||||
{
|
||||
"match": "%",
|
||||
"name": "keyword.operator.arithmetic.remainder.cadence"
|
||||
},
|
||||
{
|
||||
"match": "==|!=|>|<|>=|<=",
|
||||
"name": "keyword.operator.comparison.cadence"
|
||||
},
|
||||
{
|
||||
"match": "\\?\\?",
|
||||
"name": "keyword.operator.coalescing.cadence"
|
||||
},
|
||||
{
|
||||
"match": "&&|\\|\\|",
|
||||
"name": "keyword.operator.logical.cadence"
|
||||
},
|
||||
{
|
||||
"match": "[?!]",
|
||||
"name": "keyword.operator.type.optional.cadence"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:if|else|switch|case|default)\\b",
|
||||
"name": "keyword.control.branch.cadence"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:return|continue|break)\\b",
|
||||
"name": "keyword.control.transfer.cadence"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:while|for|in)\\b",
|
||||
"name": "keyword.control.loop.cadence"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:pre|post|prepare|execute|create|destroy|emit)\\b",
|
||||
"name": "keyword.other.cadence"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:private|pub(?:\\(set\\))?|access\\((?:self|contract|account|all)\\))\\b",
|
||||
"name": "keyword.other.declaration-specifier.accessibility.cadence"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:init|destroy)\\b",
|
||||
"name": "storage.type.function.cadence"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\b(?:import|from)\\b",
|
||||
"name": "keyword.control.import.cadence"
|
||||
}
|
||||
]
|
||||
},
|
||||
"code-block": {
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.end.cadence"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function": {
|
||||
"begin": "\\b(fun)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?<=\\})|$",
|
||||
"name": "meta.definition.function.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#parameter-clause"
|
||||
},
|
||||
{
|
||||
"include": "#function-result"
|
||||
},
|
||||
{
|
||||
"begin": "(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.function.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.function.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "meta.definition.function.body.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"initializer": {
|
||||
"begin": "(?<!\\.)\\b(init)\\s*(?=\\(|<)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?<=\\})|$",
|
||||
"name": "meta.definition.function.initializer.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#parameter-clause"
|
||||
},
|
||||
{
|
||||
"begin": "(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.function.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.function.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "meta.definition.function.body.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-result": {
|
||||
"begin": "(?<![/=\\-+!*%<>&|\\^~.])(:)(?![/=\\-+!*%<>&|\\^~.])\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.function-result.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)(?=\\{|;)|$",
|
||||
"name": "meta.function-result.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type"
|
||||
}
|
||||
]
|
||||
},
|
||||
"expressions": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#function-call-expression"
|
||||
},
|
||||
{
|
||||
"include": "#literals"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#language-variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
"language-variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(self)\\b",
|
||||
"name": "variable.language.cadence"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-call-expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?!(?:set|init))([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.cadence"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.arguments.begin.cadence"
|
||||
}
|
||||
},
|
||||
"comment": "foo(args) -- a call whose callee is a highlightable name",
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.arguments.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "meta.function-call.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression-element-list"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"expression-element-list": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*(:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.any-method.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.argument-label.cadence"
|
||||
}
|
||||
},
|
||||
"comment": "an element with a label",
|
||||
"end": "(?=[,)\\]])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expressions"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?![,)\\]])(?=\\S)",
|
||||
"comment": "an element without a label (i.e. anything else)",
|
||||
"end": "(?=[,)\\]])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expressions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#var-let-declaration"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
},
|
||||
{
|
||||
"include": "#initializer"
|
||||
}
|
||||
]
|
||||
},
|
||||
"var-let-declaration": {
|
||||
"begin": "\\b(var|let)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.$1.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.$1.cadence"
|
||||
}
|
||||
},
|
||||
"end": "=|<-|<-!|$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
|
||||
"name": "storage.type.cadence"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameter-clause": {
|
||||
"begin": "(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.parameters.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.parameters.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "meta.parameter-clause.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#parameter-list"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameter-list": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)(?=\\s*:)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.parameter.function.cadence"
|
||||
}
|
||||
},
|
||||
"comment": "External parameter labels are considered part of the function name"
|
||||
},
|
||||
{
|
||||
"match": "(([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*))(?=\\s*:)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.parameter.function.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.cadence"
|
||||
}
|
||||
},
|
||||
"comment": "If no external label is given, the name is both the external label and the internal variable name"
|
||||
},
|
||||
{
|
||||
"begin": ":\\s*(?!\\s)",
|
||||
"end": "(?=[,)])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type"
|
||||
},
|
||||
{
|
||||
"match": ":",
|
||||
"name": "invalid.illegal.extra-colon-in-parameter-list.cadence"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"event": {
|
||||
"begin": "\\b(event)\\b\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.event.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.event.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?<=\\))|$",
|
||||
"name": "meta.definition.type.event.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#parameter-clause"
|
||||
}
|
||||
]
|
||||
},
|
||||
"composite": {
|
||||
"begin": "\\b((?:(?:struct|resource|contract)(?:\\s+interface)?)|transaction|enum)\\s+([\\p{L}_][\\p{L}_\\p{N}\\p{M}]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.$1.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.$1.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?<=\\})",
|
||||
"name": "meta.definition.type.composite.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#conformance-clause"
|
||||
},
|
||||
{
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.type.begin.cadence"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.type.end.cadence"
|
||||
}
|
||||
},
|
||||
"name": "meta.definition.type.body.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"conformance-clause": {
|
||||
"begin": "(:)(?=\\s*\\{)|(:)\\s*",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "invalid.illegal.empty-conformance-clause.cadence"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.conformance-clause.cadence"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)$|(?=[={}])",
|
||||
"name": "meta.conformance-clause.cadence",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "(?!\\G)$|(?=[={}])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"name": "cadence"
|
||||
}
|
||||
@ -1,875 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "clarity",
|
||||
"scopeName": "source.clar",
|
||||
"uuid": "f9e9871d-2ea6-4be0-afd2-fc382d704716",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#define-constant"
|
||||
},
|
||||
{
|
||||
"include": "#define-data-var"
|
||||
},
|
||||
{
|
||||
"include": "#define-map"
|
||||
},
|
||||
{
|
||||
"include": "#define-function"
|
||||
},
|
||||
{
|
||||
"include": "#define-fungible-token"
|
||||
},
|
||||
{
|
||||
"include": "#define-non-fungible-token"
|
||||
},
|
||||
{
|
||||
"include": "#define-trait"
|
||||
},
|
||||
{
|
||||
"include": "#use-trait"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comment": {
|
||||
"name": "comment.line.semicolon.clarity",
|
||||
"match": "(?x) (?<=^|[()\\[\\]{}\",'`;\\s]) (;) .* $"
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#keyword"
|
||||
},
|
||||
{
|
||||
"include": "#literal"
|
||||
},
|
||||
{
|
||||
"include": "#let-func"
|
||||
},
|
||||
{
|
||||
"include": "#built-in-func"
|
||||
},
|
||||
{
|
||||
"include": "#get-set-func"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword": {
|
||||
"name": "constant.language.clarity",
|
||||
"match": "\\b(?:block-height|burn-block-height|contract-caller|is-in-regtest|stx-liquid-supply|tx-sender)\\b"
|
||||
},
|
||||
"define-function": {
|
||||
"begin": "(?x) (\\() \\s* (define-(?:public|private|read-only)) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-function.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-function.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-function.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.function-signature.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.function-signature.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-function-signature",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.function-argument.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.parameter.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.function-argument.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.function-argument",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"define-fungible-token": {
|
||||
"match": "(?x) (\\() \\s* (define-fungible-token) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) (?:\\s+(u\\d+))?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-fungible-token.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-fungible-token.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.fungible-token-name.clarity variable.other.clarity"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.numeric.fungible-token-total-supply.clarity"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.define-fungible-token.end.clarity"
|
||||
}
|
||||
}
|
||||
},
|
||||
"define-non-fungible-token": {
|
||||
"begin": "(?x) (\\() \\s* (define-non-fungible-token) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-non-fungible-token.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-non-fungible-token.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.non-fungible-token-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-non-fungible-token.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-non-fungible-token",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
},
|
||||
"define-trait": {
|
||||
"begin": "(?x) (\\() \\s* (define-trait) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-trait.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-trait.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.trait-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-trait.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-trait",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?x) (\\() \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-trait-body.start.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-trait-body.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-trait-body",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"begin": "(?x) (\\() \\s* ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]+\\??) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.trait-function.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.trait-function-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.trait-function.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.trait-function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
},
|
||||
{
|
||||
"begin": "(?x) (\\() \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.trait-function-args.start.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.trait-function-args.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.trait-function-args",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"use-trait": {
|
||||
"begin": "(?x) (\\() \\s* (use-trait) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.use-trait.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.use-trait.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.trait-alias.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.use-trait.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.use-trait",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#literal"
|
||||
}
|
||||
]
|
||||
},
|
||||
"define-constant": {
|
||||
"begin": "(?x) (\\() \\s* (define-constant) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-constant.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-constant.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.constant-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-constant.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-constant",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"define-data-var": {
|
||||
"begin": "(?x) (\\() \\s* (define-data-var) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-data-var.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-data-var.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.data-var-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-data-var.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-data-var",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"define-map": {
|
||||
"begin": "(?x) (\\() \\s* (define-map) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-map.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.define-map.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.map-name.clarity variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.define-map.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.define-map",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#number-literal"
|
||||
},
|
||||
{
|
||||
"include": "#bool-literal"
|
||||
},
|
||||
{
|
||||
"include": "#string-literal"
|
||||
},
|
||||
{
|
||||
"include": "#tuple-literal"
|
||||
},
|
||||
{
|
||||
"include": "#principal-literal"
|
||||
},
|
||||
{
|
||||
"include": "#list-literal"
|
||||
},
|
||||
{
|
||||
"include": "#optional-literal"
|
||||
},
|
||||
{
|
||||
"include": "#response-literal"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"number-literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "unsigned integers",
|
||||
"name": "constant.numeric.uint.clarity",
|
||||
"match": "\\bu\\d+\\b"
|
||||
},
|
||||
{
|
||||
"comment": "signed integers",
|
||||
"name": "constant.numeric.int.clarity",
|
||||
"match": "\\b\\d+\\b"
|
||||
},
|
||||
{
|
||||
"comment": "hexadecimals",
|
||||
"name": "constant.numeric.hex.clarity",
|
||||
"match": "\\b0x[0-9a-f]*\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"bool-literal": {
|
||||
"name": "constant.language.bool.clarity",
|
||||
"match": "\\b(true|false)\\b"
|
||||
},
|
||||
"string-literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.double.clarity",
|
||||
"begin": "(u?)(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "string.quoted.utf8.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.clarity"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.clarity"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.quote",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"tuple-literal": {
|
||||
"begin": "(\\{)",
|
||||
"end": "(\\})",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.tuple.start.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.tuple.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.tuple",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.tag.tuple-key.clarity",
|
||||
"match": "([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)(?=:)"
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
}
|
||||
]
|
||||
},
|
||||
"principal-literal": {
|
||||
"name": "constant.other.principal.clarity",
|
||||
"match": "(?x) \\'[0-9A-Z]{28,41}(:?\\.[a-zA-Z][a-zA-Z0-9\\-]+){0,2} | (\\.[a-zA-Z][a-zA-Z0-9\\-]*){1,2} (?=[\\s(){},]|$)"
|
||||
},
|
||||
"list-literal": {
|
||||
"begin": "(?x) (\\() \\s* (list) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.list.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.list.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"names": "punctuation.list.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.list",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
}
|
||||
]
|
||||
},
|
||||
"optional-literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(none)\\b",
|
||||
"name": "constant.language.none.clarity"
|
||||
},
|
||||
{
|
||||
"begin": "(?x) (\\() \\s* (some) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.some.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.language.some.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.some.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.some",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"response-literal": {
|
||||
"begin": "(?x) (\\() \\s* (ok|err) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.response.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.language.ok-err.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.response.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.response",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"data-type": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"comment": "numerics",
|
||||
"name": "entity.name.type.numeric.clarity",
|
||||
"match": "\\b(uint|int)\\b"
|
||||
},
|
||||
{
|
||||
"comment": "principal",
|
||||
"name": "entity.name.type.principal.clarity",
|
||||
"match": "\\b(principal)\\b"
|
||||
},
|
||||
{
|
||||
"comment": "bool",
|
||||
"name": "entity.name.type.bool.clarity",
|
||||
"match": "\\b(bool)\\b"
|
||||
},
|
||||
{
|
||||
"match": "(?x) (\\() \\s* (?:(string-ascii|string-utf8)\\s+(\\d+)) \\s* (\\))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.string-def.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.string.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.string-len.clarity"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.string-def.end.clarity"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?x) (\\() \\s* (buff)\\s+(\\d+)\\s* (\\))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.buff-def.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.buff.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.buf-len.clarity"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.buff-def.end.clarity"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "optional",
|
||||
"begin": "(?x) (\\() \\s* (optional)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.optional-def.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.modifier"
|
||||
}
|
||||
},
|
||||
"end": "(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.optional-def.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.optional-def",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "response",
|
||||
"begin": "(?x) (\\() \\s* (response)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.response-def.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.modifier"
|
||||
}
|
||||
},
|
||||
"end": "(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.response-def.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.response-def",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "list",
|
||||
"begin": "(?x) (\\() \\s* (list) \\s+ (\\d+) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.list-def.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.list.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.list-len.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.list-def.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.list-def",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.tuple-def.start.clarity"
|
||||
}
|
||||
},
|
||||
"end": "(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.tuple-def.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.tuple-def",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.tag.tuple-data-type-key.clarity",
|
||||
"match": "([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)(?=:)"
|
||||
},
|
||||
{
|
||||
"include": "#data-type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"built-in-func": {
|
||||
"begin": "(?x) (\\() \\s* (\\-|\\+|<\\=|>\\=|<|>|\\*|/|and|append|as-contract|as-max-len\\?|asserts!|at-block|begin|concat|contract-call\\?|contract-of|default-to|element-at|filter|fold|ft-burn\\?|ft-get-balance|ft-get-supply|ft-mint\\?|ft-transfer\\?|get-block-info\\?|hash160|if|impl-trait|index-of|is-eq|is-err|is-none|is-ok|is-some|keccak256|len|log2|map|match|merge|mod|nft-burn\\?|nft-get-owner\\?|nft-mint\\?|nft-transfer\\?|not|or|pow|principal-of\\?|print|secp256k1-recover\\?|secp256k1-verify|sha256|sha512|sha512/256|sqrti|stx-burn\\?|stx-get-balance|stx-transfer\\?|to-int|to-uint|try!|unwrap-err-panic|unwrap-err!|unwrap-panic|unwrap!|xor) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.built-in-function.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.built-in-function.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.built-in-function.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.built-in-function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
}
|
||||
]
|
||||
},
|
||||
"get-set-func": {
|
||||
"name": "meta.get-set-func",
|
||||
"begin": "(?x) (\\() \\s* (var-get|var-set|map-get\\?|map-set|map-insert|map-delete|get) \\s+ ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.get-set-func.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.clarity"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.get-set-func.end.clarity"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"let-func": {
|
||||
"begin": "(?x) (\\() \\s* (let) \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-function.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.declaration.let-function.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-function.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.let-function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
},
|
||||
{
|
||||
"begin": "(?x) (\\() \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-var.start.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-var.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.let-var",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?x) (\\() ([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*) \\s+",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-local-var.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.let-local-var-name.clarity variable.parameter.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.let-local-var.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.let-local-var",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#user-func"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"user-func": {
|
||||
"begin": "(?x) (\\() \\s* (([a-zA-Z][a-zA-Z0-9_\\-\\!\\?]*)) \\s*",
|
||||
"end": "(\\))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.user-function.start.clarity"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.clarity"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.user-function.end.clarity"
|
||||
}
|
||||
},
|
||||
"name": "meta.user-function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,431 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/atom/language-clojure/blob/master/grammars/clojure.cson",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/atom/language-clojure/commit/45bdb881501d0b8f8b707ca1d3fcc8b4b99fca03",
|
||||
"name": "clojure",
|
||||
"scopeName": "source.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#shebang-comment"
|
||||
},
|
||||
{
|
||||
"include": "#quoted-sexp"
|
||||
},
|
||||
{
|
||||
"include": "#sexp"
|
||||
},
|
||||
{
|
||||
"include": "#keyfn"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#vector"
|
||||
},
|
||||
{
|
||||
"include": "#set"
|
||||
},
|
||||
{
|
||||
"include": "#map"
|
||||
},
|
||||
{
|
||||
"include": "#regexp"
|
||||
},
|
||||
{
|
||||
"include": "#var"
|
||||
},
|
||||
{
|
||||
"include": "#constants"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic-variables"
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#namespace-symbol"
|
||||
},
|
||||
{
|
||||
"include": "#symbol"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comment": {
|
||||
"begin": "(?<!\\\\);",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.clojure"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "comment.line.semicolon.clojure"
|
||||
},
|
||||
"constants": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(nil)(?=(\\s|\\)|\\]|\\}))",
|
||||
"name": "constant.language.nil.clojure"
|
||||
},
|
||||
{
|
||||
"match": "(true|false)",
|
||||
"name": "constant.language.boolean.clojure"
|
||||
},
|
||||
{
|
||||
"match": "(##(?:Inf|-Inf|NaN))",
|
||||
"name": "constant.numeric.symbol.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?\\d+/\\d+)",
|
||||
"name": "constant.numeric.ratio.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?(?:(?:3[0-6])|(?:[12]\\d)|[2-9])[rR][0-9A-Za-z]+N?)",
|
||||
"name": "constant.numeric.arbitrary-radix.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?0[xX][0-9a-fA-F]+N?)",
|
||||
"name": "constant.numeric.hexadecimal.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?0[0-7]+N?)",
|
||||
"name": "constant.numeric.octal.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?[0-9]+(?:(\\.|(?=[eEM]))[0-9]*([eE][-+]?[0-9]+)?)M?)",
|
||||
"name": "constant.numeric.double.clojure"
|
||||
},
|
||||
{
|
||||
"match": "([-+]?\\d+N?)",
|
||||
"name": "constant.numeric.long.clojure"
|
||||
},
|
||||
{
|
||||
"include": "#keyword"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword": {
|
||||
"match": "(?<=(\\s|\\(|\\[|\\{)):[\\w\\#\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}|\\,))",
|
||||
"name": "constant.keyword.clojure"
|
||||
},
|
||||
"keyfn": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=(\\s|\\(|\\[|\\{))(if(-[-\\p{Ll}\\?]*)?|when(-[-\\p{Ll}]*)?|for(-[-\\p{Ll}]*)?|cond|do|let(-[-\\p{Ll}\\?]*)?|binding|loop|recur|fn|throw[\\p{Ll}\\-]*|try|catch|finally|([\\p{Ll}]*case))(?=(\\s|\\)|\\]|\\}))",
|
||||
"name": "storage.control.clojure"
|
||||
},
|
||||
{
|
||||
"match": "(?<=(\\s|\\(|\\[|\\{))(declare-?|(in-)?ns|import|use|require|load|compile|(def[\\p{Ll}\\-]*))(?=(\\s|\\)|\\]|\\}))",
|
||||
"name": "keyword.control.clojure"
|
||||
}
|
||||
]
|
||||
},
|
||||
"dynamic-variables": {
|
||||
"match": "\\*[\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\d]+\\*",
|
||||
"name": "meta.symbol.dynamic.clojure"
|
||||
},
|
||||
"map": {
|
||||
"begin": "(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.map.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.map.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.map.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.map.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"metadata": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\^\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.metadata.map.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.metadata.map.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.metadata.map.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.metadata.map.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(\\^)",
|
||||
"end": "(\\s)",
|
||||
"name": "meta.metadata.simple.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keyword"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"quoted-sexp": {
|
||||
"begin": "(['``]\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.expression.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.expression.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.expression.end.trailing.clojure"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.expression.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.quoted-expression.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regexp": {
|
||||
"begin": "#\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regexp.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.regexp.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "string.regexp.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#regexp_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
"regexp_escaped_char": {
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.clojure"
|
||||
},
|
||||
"set": {
|
||||
"begin": "(\\#\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.set.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\}(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.set.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.set.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.set.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"sexp": {
|
||||
"begin": "(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.expression.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\))$|(\\)(?=[\\}\\]\\)\\s]*(?:;|$)))|(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.expression.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.expression.end.trailing.clojure"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.expression.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.expression.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=\\()(ns|declare|def[\\w\\d._:+=><!?*-]*|[\\w._:+=><!?*-][\\w\\d._:+=><!?*-]*/def[\\w\\d._:+=><!?*-]*)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\))",
|
||||
"name": "meta.definition.global.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#dynamic-variables"
|
||||
},
|
||||
{
|
||||
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)",
|
||||
"name": "entity.global.clojure"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#keyfn"
|
||||
},
|
||||
{
|
||||
"include": "#constants"
|
||||
},
|
||||
{
|
||||
"include": "#vector"
|
||||
},
|
||||
{
|
||||
"include": "#map"
|
||||
},
|
||||
{
|
||||
"include": "#set"
|
||||
},
|
||||
{
|
||||
"include": "#sexp"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\()(.+?)(?=\\s|\\))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.clojure"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"shebang-comment": {
|
||||
"begin": "^(#!)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.shebang.clojure"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "comment.line.shebang.clojure"
|
||||
},
|
||||
"string": {
|
||||
"begin": "(?<!\\\\)(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\")",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.clojure"
|
||||
}
|
||||
]
|
||||
},
|
||||
"namespace-symbol": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)/",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.symbol.namespace.clojure"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"symbol": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([\\p{L}\\.\\-\\_\\+\\=\\>\\<\\!\\?\\*][\\w\\.\\-\\_\\:\\+\\=\\>\\<\\!\\?\\*\\d]*)",
|
||||
"name": "meta.symbol.clojure"
|
||||
}
|
||||
]
|
||||
},
|
||||
"var": {
|
||||
"match": "(?<=(\\s|\\(|\\[|\\{)\\#)'[\\w\\.\\-\\_\\:\\+\\=\\>\\<\\/\\!\\?\\*]+(?=(\\s|\\)|\\]|\\}))",
|
||||
"name": "meta.var.clojure"
|
||||
},
|
||||
"vector": {
|
||||
"begin": "(\\[)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.vector.begin.clojure"
|
||||
}
|
||||
},
|
||||
"end": "(\\](?=[\\}\\]\\)\\s]*(?:;|$)))|(\\])",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.vector.end.trailing.clojure"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.vector.end.clojure"
|
||||
}
|
||||
},
|
||||
"name": "meta.vector.clojure",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,139 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["cmake", "CMakeLists.txt"],
|
||||
"name": "cmake",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "Variables That Describe the System",
|
||||
"match": "\\b(?i:APPLE|BORLAND|(CMAKE_)?(CL_64|COMPILER_2005|HOST_APPLE|HOST_SYSTEM|HOST_SYSTEM_NAME|HOST_SYSTEM_PROCESSOR|HOST_SYSTEM_VERSION|HOST_UNIX|HOST_WIN32|LIBRARY_ARCHITECTURE|LIBRARY_ARCHITECTURE_REGEX|OBJECT_PATH_MAX|SYSTEM|SYSTEM_NAME|SYSTEM_PROCESSOR|SYSTEM_VERSION)|CYGWIN|MSVC|MSVC80|MSVC_IDE|MSVC_VERSION|UNIX|WIN32|XCODE_VERSION|MSVC60|MSVC70|MSVC90|MSVC71)\\b",
|
||||
"name": "constant.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "cmakeOperators",
|
||||
"match": "\\b(?i:ABSOLUTE|AND|BOOL|CACHE|COMMAND|COMMENT|DEFINED|DOC|EQUAL|EXISTS|EXT|FALSE|GREATER|GREATER_EQUAL|INTERNAL|IN_LIST|IS_ABSOLUTE|IS_DIRECTORY|IS_NEWER_THAN|IS_SYMLINK|LESS|LESS_EQUAL|MATCHES|NAME|NAMES|NAME_WE|NOT|OFF|ON|OR|PATH|PATHS|POLICY|PROGRAM|STREQUAL|STRGREATER|STRGREATER_EQUAL|STRING|STRLESS|STRLESS_EQUAL|TARGET|TEST|TRUE|VERSION_EQUAL|VERSION_GREATER|VERSION_GREATER_EQUAL|VERSION_LESS)\\b",
|
||||
"name": "keyword.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Commands",
|
||||
"match": "^\\s*\\b(?i:add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_libraries|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)\\b",
|
||||
"name": "keyword.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Variables That Change Behavior",
|
||||
"match": "\\b(?i:BUILD_SHARED_LIBS|(CMAKE_)?(ABSOLUTE_DESTINATION_FILES|AUTOMOC_RELAXED_MODE|BACKWARDS_COMPATIBILITY|BUILD_TYPE|COLOR_MAKEFILE|CONFIGURATION_TYPES|DEBUG_TARGET_PROPERTIES|DISABLE_FIND_PACKAGE_\\w+|FIND_LIBRARY_PREFIXES|FIND_LIBRARY_SUFFIXES|IGNORE_PATH|INCLUDE_PATH|INSTALL_DEFAULT_COMPONENT_NAME|INSTALL_PREFIX|LIBRARY_PATH|MFC_FLAG|MODULE_PATH|NOT_USING_CONFIG_FLAGS|POLICY_DEFAULT_CMP\\w+|PREFIX_PATH|PROGRAM_PATH|SKIP_INSTALL_ALL_DEPENDENCY|SYSTEM_IGNORE_PATH|SYSTEM_INCLUDE_PATH|SYSTEM_LIBRARY_PATH|SYSTEM_PREFIX_PATH|SYSTEM_PROGRAM_PATH|USER_MAKE_RULES_OVERRIDE|WARN_ON_ABSOLUTE_INSTALL_DESTINATION))\\b",
|
||||
"name": "variable.source.cmake"
|
||||
},
|
||||
{
|
||||
"match": "\\$\\{\\w+\\}",
|
||||
"name": "storage.source.cmake"
|
||||
},
|
||||
{
|
||||
"match": "\\$ENV\\{\\w+\\}",
|
||||
"name": "storage.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Variables that Control the Build",
|
||||
"match": "\\b(?i:(CMAKE_)?(\\w+_POSTFIX|ARCHIVE_OUTPUT_DIRECTORY|AUTOMOC|AUTOMOC_MOC_OPTIONS|BUILD_WITH_INSTALL_RPATH|DEBUG_POSTFIX|EXE_LINKER_FLAGS|EXE_LINKER_FLAGS_\\w+|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GNUtoMS|INCLUDE_CURRENT_DIR|INCLUDE_CURRENT_DIR_IN_INTERFACE|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_PATH_FLAG|LINK_DEF_FILE_FLAG|LINK_DEPENDS_NO_SHARED|LINK_INTERFACE_LIBRARIES|LINK_LIBRARY_FILE_FLAG|LINK_LIBRARY_FLAG|MACOSX_BUNDLE|NO_BUILTIN_CHRPATH|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|RUNTIME_OUTPUT_DIRECTORY|SKIP_BUILD_RPATH|SKIP_INSTALL_RPATH|TRY_COMPILE_CONFIGURATION|USE_RELATIVE_PATHS|WIN32_EXECUTABLE)|EXECUTABLE_OUTPUT_PATH|LIBRARY_OUTPUT_PATH)\\b",
|
||||
"name": "variable.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Variables that Provide Information",
|
||||
"match": "\\b(?i:CMAKE_(AR|ARGC|ARGV0|BINARY_DIR|BUILD_TOOL|CACHEFILE_DIR|CACHE_MAJOR_VERSION|CACHE_MINOR_VERSION|CACHE_PATCH_VERSION|CFG_INTDIR|COMMAND|CROSSCOMPILING|CTEST_COMMAND|CURRENT_BINARY_DIR|CURRENT_LIST_DIR|CURRENT_LIST_FILE|CURRENT_LIST_LINE|CURRENT_SOURCE_DIR|DL_LIBS|EDIT_COMMAND|EXECUTABLE_SUFFIX|EXTRA_GENERATOR|EXTRA_SHARED_LIBRARY_SUFFIXES|GENERATOR|HOME_DIRECTORY|IMPORT_LIBRARY_PREFIX|IMPORT_LIBRARY_SUFFIX|LINK_LIBRARY_SUFFIX|MAJOR_VERSION|MAKE_PROGRAM|MINOR_VERSION|PARENT_LIST_FILE|PATCH_VERSION|PROJECT_NAME|RANLIB|ROOT|SCRIPT_MODE_FILE|SHARED_LIBRARY_PREFIX|SHARED_LIBRARY_SUFFIX|SHARED_MODULE_PREFIX|SHARED_MODULE_SUFFIX|SIZEOF_VOID_P|SKIP_RPATH|SOURCE_DIR|STANDARD_LIBRARIES|STATIC_LIBRARY_PREFIX|STATIC_LIBRARY_SUFFIX|TWEAK_VERSION|USING_VC_FREE_TOOLS|VERBOSE_MAKEFILE|VERSION)|PROJECT_BINARY_DIR|PROJECT_NAME|PROJECT_SOURCE_DIR|\\w+_BINARY_DIR|\\w+__SOURCE_DIR)\\b",
|
||||
"name": "variable.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "BracketArgs",
|
||||
"begin": "#\\[(=*)\\[",
|
||||
"end": "\\]\\1\\]",
|
||||
"name": "comment.source.cmake",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(.|$)",
|
||||
"name": "constant.character.escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "BracketArgs",
|
||||
"begin": "\\[(=*)\\[",
|
||||
"end": "\\]\\1\\]",
|
||||
"name": "argument.source.cmake",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(.|$)",
|
||||
"name": "constant.character.escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "#+.*$",
|
||||
"name": "comment.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties on Cache Entries",
|
||||
"match": "\\b(?i:ADVANCED|HELPSTRING|MODIFIED|STRINGS|TYPE|VALUE)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties on Source Files",
|
||||
"match": "\\b(?i:ABSTRACT|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_<CONFIG>|COMPILE_FLAGS|EXTERNAL_OBJECT|Fortran_FORMAT|GENERATED|HEADER_FILE_ONLY|KEEP_EXTENSION|LABELS|LANGUAGE|LOCATION|MACOSX_PACKAGE_LOCATION|OBJECT_DEPENDS|OBJECT_OUTPUTS|SYMBOLIC|WRAP_EXCLUDE)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties on Tests",
|
||||
"match": "\\b(?i:ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|COST|DEPENDS|ENVIRONMENT|FAIL_REGULAR_EXPRESSION|LABELS|MEASUREMENT|PASS_REGULAR_EXPRESSION|PROCESSORS|REQUIRED_FILES|RESOURCE_LOCK|RUN_SERIAL|TIMEOUT|WILL_FAIL|WORKING_DIRECTORY)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties on Directories",
|
||||
"match": "\\b(?i:ADDITIONAL_MAKE_CLEAN_FILES|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMPILE_DEFINITIONS|COMPILE_DEFINITIONS_\\w+|DEFINITIONS|EXCLUDE_FROM_ALL|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LINK_DIRECTORIES|LISTFILE_STACK|MACROS|PARENT_DIRECTORY|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|TEST_INCLUDE_FILE|VARIABLES|VS_GLOBAL_SECTION_POST_\\w+|VS_GLOBAL_SECTION_PRE_\\w+)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties of Global Scope",
|
||||
"match": "\\b(?i:ALLOW_DUPLICATE_CUSTOM_TARGETS|DEBUG_CONFIGURATIONS|DISABLED_FEATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|IN_TRY_COMPILE|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PREDEFINED_TARGETS_FOLDER|REPORT_UNDEFINED_PROPERTIES|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_SUPPORTS_SHARED_LIBS|USE_FOLDERS|__CMAKE_DELETE_CACHE_CHANGE_VARS_)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Properties on Targets",
|
||||
"match": "\\b(?i:\\w+_(OUTPUT_NAME|POSTFIX)|ARCHIVE_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|AUTOMOC(_MOC_OPTIONS)?|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE(_EXTENSION)?|COMPATIBLE_INTERFACE_BOOL|COMPATIBLE_INTERFACE_STRING|COMPILE_(DEFINITIONS(_\\w+)?|FLAGS)|DEBUG_POSTFIX|DEFINE_SYMBOL|ENABLE_EXPORTS|EXCLUDE_FROM_ALL|EchoString|FOLDER|FRAMEWORK|Fortran_(FORMAT|MODULE_DIRECTORY)|GENERATOR_FILE_NAME|GNUtoMS|HAS_CXX|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(CONFIGURATIONS|IMPLIB(_\\w+)?|LINK_DEPENDENT_LIBRARIES(_\\w+)?|LINK_INTERFACE_LANGUAGES(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LOCATION(_\\w+)?|NO_SONAME(_\\w+)?|SONAME(_\\w+)?)|IMPORT_PREFIX|IMPORT_SUFFIX|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE|INTERFACE_COMPILE_DEFINITIONS|INTERFACE_INCLUDE_DIRECTORIES|INTERPROCEDURAL_OPTIMIZATION|INTERPROCEDURAL_OPTIMIZATION_\\w+|LABELS|LIBRARY_OUTPUT_DIRECTORY(_\\w+)?|LIBRARY_OUTPUT_NAME(_\\w+)?|LINKER_LANGUAGE|LINK_DEPENDS|LINK_FLAGS(_\\w+)?|LINK_INTERFACE_LIBRARIES(_\\w+)?|LINK_INTERFACE_MULTIPLICITY(_\\w+)?|LINK_LIBRARIES|LINK_SEARCH_END_STATIC|LINK_SEARCH_START_STATIC|LOCATION(_\\w+)?|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MAP_IMPORTED_CONFIG_\\w+|NO_SONAME|OSX_ARCHITECTURES(_\\w+)?|OUTPUT_NAME(_\\w+)?|PDB_NAME(_\\w+)?|POST_INSTALL_SCRIPT|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE|PRIVATE_HEADER|PROJECT_LABEL|PUBLIC|PUBLIC_HEADER|RESOURCE|RULE_LAUNCH_(COMPILE|CUSTOM|LINK)|RUNTIME_OUTPUT_(DIRECTORY(_\\w+)?|NAME(_\\w+)?)|SKIP_BUILD_RPATH|SOURCES|SOVERSION|STATIC_LIBRARY_FLAGS(_\\w+)?|SUFFIX|TYPE|VERSION|VS_DOTNET_REFERENCES|VS_GLOBAL_(\\w+|KEYWORD|PROJECT_TYPES)|VS_KEYWORD|VS_SCC_(AUXPATH|LOCALPATH|PROJECTNAME|PROVIDER)|VS_WINRT_EXTENSIONS|VS_WINRT_REFERENCES|WIN32_EXECUTABLE|XCODE_ATTRIBUTE_\\w+)\\b",
|
||||
"name": "entity.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Escaped Strings",
|
||||
"begin": "\\\\\"",
|
||||
"end": "\\\\\"",
|
||||
"name": "string.source.cmake",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(.|$)",
|
||||
"name": "constant.character.escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "Normal Strings",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.source.cmake",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(.|$)",
|
||||
"name": "constant.character.escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "Derecated keyword",
|
||||
"match": "\\bBUILD_NAME\\b",
|
||||
"name": "invalid.deprecated.source.cmake"
|
||||
},
|
||||
{
|
||||
"comment": "Compiler Flags",
|
||||
"match": "\\b(?i:(CMAKE_)?(CXX_FLAGS|CMAKE_CXX_FLAGS_DEBUG|CMAKE_CXX_FLAGS_MINSIZEREL|CMAKE_CXX_FLAGS_RELEASE|CMAKE_CXX_FLAGS_RELWITHDEBINFO))\\b",
|
||||
"name": "variable.source.cmake"
|
||||
}
|
||||
],
|
||||
"repository": {},
|
||||
"scopeName": "source.cmake",
|
||||
"uuid": "7aed2d59-22d9-41c8-ba9e-4f178191e380"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,525 +0,0 @@
|
||||
{
|
||||
"name": "dart",
|
||||
"version": "1.1.1",
|
||||
"fileTypes": ["dart"],
|
||||
"scopeName": "source.dart",
|
||||
"foldingStartMarker": "\\{\\s*$",
|
||||
"foldingStopMarker": "^\\s*\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.preprocessor.script.dart",
|
||||
"match": "^(#!.*)$"
|
||||
},
|
||||
{
|
||||
"name": "meta.declaration.dart",
|
||||
"begin": "^\\w*\\b(library|import|part of|part|export)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.import.dart"
|
||||
}
|
||||
},
|
||||
"end": ";",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.terminator.dart"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.import.dart",
|
||||
"match": "\\b(as|show|hide)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.dart",
|
||||
"match": "\\b(if)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#annotations"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#constants-and-special-vars"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"dartdoc": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\[.*?\\])",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.name.source.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "^ {4,}(?![ \\*]).*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.name.source.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"contentName": "variable.other.source.dart",
|
||||
"begin": "```.*?$",
|
||||
"end": "```"
|
||||
},
|
||||
{
|
||||
"match": "(`.*?`)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.other.source.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(`.*?`)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "variable.other.source.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(\\* (( ).*))$",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "variable.other.source.dart"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.block.empty.dart",
|
||||
"match": "/\\*\\*/",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#comments-doc-oldschool"
|
||||
},
|
||||
{
|
||||
"include": "#comments-doc"
|
||||
},
|
||||
{
|
||||
"include": "#comments-inline"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments-doc-oldschool": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.block.documentation.dart",
|
||||
"begin": "/\\*\\*",
|
||||
"end": "\\*/",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments-doc-oldschool"
|
||||
},
|
||||
{
|
||||
"include": "#comments-block"
|
||||
},
|
||||
{
|
||||
"include": "#dartdoc"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments-doc": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.block.documentation.dart",
|
||||
"begin": "///",
|
||||
"while": "^\\s*///",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#dartdoc"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments-inline": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments-block"
|
||||
},
|
||||
{
|
||||
"match": "((//).*)$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "comment.line.double-slash.dart"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments-block": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.block.dart",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments-block"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"annotations": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "storage.type.annotation.dart",
|
||||
"match": "@[a-zA-Z]+"
|
||||
}
|
||||
]
|
||||
},
|
||||
"constants-and-special-vars": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.language.dart",
|
||||
"match": "(?<!\\$)\\b(true|false|null)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "variable.language.dart",
|
||||
"match": "(?<!\\$)\\b(this|super)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.dart",
|
||||
"match": "(?<!\\$)\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"include": "#class-identifier"
|
||||
},
|
||||
{
|
||||
"include": "#function-identifier"
|
||||
}
|
||||
]
|
||||
},
|
||||
"class-identifier": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<!\\$)\\b(bool|num|int|double|dynamic)\\b(?!\\$)",
|
||||
"name": "support.class.dart"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\$)\\bvoid\\b(?!\\$)",
|
||||
"name": "storage.type.primitive.dart"
|
||||
},
|
||||
{
|
||||
"begin": "(?<![a-zA-Z0-9_$])([_$]*[A-Z][a-zA-Z0-9_$]*)\\b",
|
||||
"end": "(?!<)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.class.dart"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-args"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-identifier": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([_$]*[a-z][a-zA-Z0-9_$]*)(<(?:[a-zA-Z0-9_$<>?]|,\\s*|\\s+extends\\s+)+>)?[!?]?(\\(|\\s+=>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.dart"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-args"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"type-args": {
|
||||
"begin": "(<)",
|
||||
"end": "(>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "other.source.dart"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "other.source.dart"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#class-identifier"
|
||||
},
|
||||
{
|
||||
"match": ","
|
||||
},
|
||||
{
|
||||
"name": "keyword.declaration.dart",
|
||||
"match": "extends"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.cast.dart",
|
||||
"match": "(?<!\\$)\\bas\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.catch-exception.dart",
|
||||
"match": "(?<!\\$)\\b(try|on|catch|finally|throw|rethrow)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.dart",
|
||||
"match": "(?<!\\$)\\b(break|case|continue|default|do|else|for|if|in|return|switch|while)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.dart",
|
||||
"match": "(?<!\\$)\\b(sync(\\*)?|async(\\*)?|await|yield(\\*)?)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.dart",
|
||||
"match": "(?<!\\$)\\bassert\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.new.dart",
|
||||
"match": "(?<!\\$)\\b(new)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.declaration.dart",
|
||||
"match": "(?<!\\$)\\b(abstract|class|enum|extends|extension|external|factory|implements|get(?!\\()|mixin|native|operator|set(?!\\()|typedef|with|covariant)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.dart",
|
||||
"match": "(?<!\\$)\\b(static|final|const|required|late)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.primitive.dart",
|
||||
"match": "(?<!\\$)\\b(?:void|var)\\b(?!\\$)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.dart",
|
||||
"match": "(?<!\\$)\\b(is\\!?)\\b(?!\\$)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.ternary.dart",
|
||||
"match": "\\?|:"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.bitwise.dart",
|
||||
"match": "(<<|>>>?|~|\\^|\\||&)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.assignment.bitwise.dart",
|
||||
"match": "((&|\\^|\\||<<|>>>?)=)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.closure.dart",
|
||||
"match": "(=>)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.comparison.dart",
|
||||
"match": "(==|!=|<=?|>=?)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.assignment.arithmetic.dart",
|
||||
"match": "(([+*/%-]|\\~)=)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.assignment.dart",
|
||||
"match": "(=)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.increment-decrement.dart",
|
||||
"match": "(\\-\\-|\\+\\+)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.dart",
|
||||
"match": "(\\-|\\+|\\*|\\/|\\~\\/|%)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.logical.dart",
|
||||
"match": "(!|&&|\\|\\|)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-interp": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\$([a-zA-Z0-9_]+)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.parameter.dart"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "string.interpolated.expression.dart",
|
||||
"begin": "\\$\\{",
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#constants-and-special-vars",
|
||||
"name": "variable.parameter.dart"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"name": "variable.parameter.dart",
|
||||
"match": "[a-zA-Z0-9_]+"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "constant.character.escape.dart",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.interpolated.triple.double.dart",
|
||||
"begin": "(?<!r)\"\"\"",
|
||||
"end": "\"\"\"(?!\")",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-interp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.interpolated.triple.single.dart",
|
||||
"begin": "(?<!r)'''",
|
||||
"end": "'''(?!')",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-interp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.triple.double.dart",
|
||||
"begin": "r\"\"\"",
|
||||
"end": "\"\"\"(?!\")"
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.triple.single.dart",
|
||||
"begin": "r'''",
|
||||
"end": "'''(?!')"
|
||||
},
|
||||
{
|
||||
"name": "string.interpolated.double.dart",
|
||||
"begin": "(?<!\\|r)\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.string.newline",
|
||||
"match": "\\n"
|
||||
},
|
||||
{
|
||||
"include": "#string-interp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.dart",
|
||||
"begin": "r\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.string.newline",
|
||||
"match": "\\n"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.interpolated.single.dart",
|
||||
"begin": "(?<!\\|r)'",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.string.newline",
|
||||
"match": "\\n"
|
||||
},
|
||||
{
|
||||
"include": "#string-interp"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.single.dart",
|
||||
"begin": "r'",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.string.newline",
|
||||
"match": "\\n"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"punctuation": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "punctuation.comma.dart",
|
||||
"match": ","
|
||||
},
|
||||
{
|
||||
"name": "punctuation.terminator.dart",
|
||||
"match": ";"
|
||||
},
|
||||
{
|
||||
"name": "punctuation.dot.dart",
|
||||
"match": "\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,185 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "dax",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
},
|
||||
{
|
||||
"include": "#labels"
|
||||
},
|
||||
{
|
||||
"include": "#parameters"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"parameters": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.function.definition.parameters.dax",
|
||||
"comment": "build out variable assignment",
|
||||
"begin": "\\b(?<!\\.)(VAR)\\b(?<!\\.)\\b",
|
||||
"end": "=",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.dax"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.readwrite.dax"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.assignment.dax"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.control.dax",
|
||||
"match": "(?x)\n = \n"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "variable.other.constant.dax",
|
||||
"match": "[_$[:alpha:]][_$[:alnum:]]*"
|
||||
}
|
||||
]
|
||||
},
|
||||
"labels": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(^(.*?)\\s*(:=|!=))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.label.dax"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.label.dax"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"name": "constant.numeric.dax",
|
||||
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional"
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.dax",
|
||||
"begin": "//",
|
||||
"end": "\n",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dax"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "comment.line.dax",
|
||||
"begin": "--",
|
||||
"end": "\n",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dax"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dax"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.dax"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(YIELDMAT|YIELDDISC|YIELD|YEARFRAC|YEAR|XNPV|XIRR|WEEKNUM|WEEKDAY|VDB|VARX.S|VARX.P|VAR.S|VAR.P|VALUES|VALUE|UTCTODAY|UTCNOW|USERPRINCIPALNAME|USEROBJECTID|USERNAME|USERELATIONSHIP|USERCULTURE|UPPER|UNION|UNICODE|UNICHAR|TRUNC|TRUE|TRIM|TREATAS|TOTALYTD|TOTALQTD|TOTALMTD|TOPNSKIP|TOPNPERLEVEL|TOPN|TODAY|TIMEVALUE|TIME|TBILLYIELD|TBILLPRICE|TBILLEQ|TANH|TAN|T.INV.2T|T.INV|T.DIST.RT|T.DIST.2T|T.DIST|SYD|SWITCH|SUMX|SUMMARIZECOLUMNS|SUMMARIZE|SUM|SUBSTITUTEWITHINDEX|SUBSTITUTE|STDEVX.S|STDEVX.P|STDEV.S|STDEV.P|STARTOFYEAR|STARTOFQUARTER|STARTOFMONTH|SQRTPI|SQRT|SLN|SINH|SIN|SIGN|SELECTEDVALUE|SELECTEDMEASURENAME|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURE|SELECTCOLUMNS|SECOND|SEARCH|SAMPLE|SAMEPERIODLASTYEAR|RRI|ROW|ROUNDUP|ROUNDDOWN|ROUND|ROLLUPISSUBTOTAL|ROLLUPGROUP|ROLLUPADDISSUBTOTAL|ROLLUP|RIGHT|REPT|REPLACE|REMOVEFILTERS|RELATEDTABLE|RELATED|RECEIVED|RATE|RANKX|RANK.EQ|RANDBETWEEN|RAND|RADIANS|QUOTIENT|QUARTER|PV|PRODUCTX|PRODUCT|PRICEMAT|PRICEDISC|PRICE|PREVIOUSYEAR|PREVIOUSQUARTER|PREVIOUSMONTH|PREVIOUSDAY|PPMT|POWER|POISSON.DIST|PMT|PI|PERMUT|PERCENTILEX.INC|PERCENTILEX.EXC|PERCENTILE.INC|PERCENTILE.EXC|PDURATION|PATHLENGTH|PATHITEMREVERSE|PATHITEM|PATHCONTAINS|PATH|PARALLELPERIOD|OR|OPENINGBALANCEYEAR|OPENINGBALANCEQUARTER|OPENINGBALANCEMONTH|ODDLYIELD|ODDLPRICE|ODDFYIELD|ODDFPRICE|ODD|NPER|NOW|NOT|NORM.S.INV|NORM.S.DIST|NORM.INV|NORM.DIST|NONVISUAL|NOMINAL|NEXTYEAR|NEXTQUARTER|NEXTMONTH|NEXTDAY|NATURALLEFTOUTERJOIN|NATURALINNERJOIN|MROUND|MONTH|MOD|MINX|MINUTE|MINA|MIN|MID|MEDIANX|MEDIAN|MDURATION|MAXX|MAXA|MAX|LOWER|LOOKUPVALUE|LOG10|LOG|LN|LEN|LEFT|LCM|LASTNONBLANKVALUE|LASTNONBLANK|LASTDATE|KEYWORDMATCH|KEEPFILTERS|ISTEXT|ISSUBTOTAL|ISSELECTEDMEASURE|ISPMT|ISONORAFTER|ISODD|ISO.CEILING|ISNUMBER|ISNONTEXT|ISLOGICAL|ISINSCOPE|ISFILTERED|ISEVEN|ISERROR|ISEMPTY|ISCROSSFILTERED|ISBLANK|ISAFTER|IPMT|INTRATE|INTERSECT|INT|IGNORE|IFERROR|IF.EAGER|IF|HOUR|HASONEVALUE|HASONEFILTER|HASH|GROUPBY|GEOMEANX|GEOMEAN|GENERATESERIES|GENERATEALL|GENERATE|GCD|FV|FORMAT|FLOOR|FIXED|FIRSTNONBLANKVALUE|FIRSTNONBLANK|FIRSTDATE|FIND|FILTERS|FILTER|FALSE|FACT|EXPON.DIST|EXP|EXCEPT|EXACT|EVEN|ERROR|EOMONTH|ENDOFYEAR|ENDOFQUARTER|ENDOFMONTH|EFFECT|EDATE|EARLIEST|EARLIER|DURATION|DOLLARFR|DOLLARDE|DIVIDE|DISTINCTCOUNTNOBLANK|DISTINCTCOUNT|DISTINCT|DISC|DETAILROWS|DEGREES|DDB|DB|DAY|DATEVALUE|DATESYTD|DATESQTD|DATESMTD|DATESINPERIOD|DATESBETWEEN|DATEDIFF|DATEADD|DATE|DATATABLE|CUSTOMDATA|CURRENTGROUP|CURRENCY|CUMPRINC|CUMIPMT|CROSSJOIN|CROSSFILTER|COUPPCD|COUPNUM|COUPNCD|COUPDAYSNC|COUPDAYS|COUPDAYBS|COUNTX|COUNTROWS|COUNTBLANK|COUNTAX|COUNTA|COUNT|COTH|COT|COSH|COS|CONVERT|CONTAINSSTRINGEXACT|CONTAINSSTRING|CONTAINSROW|CONTAINS|CONFIDENCE.T|CONFIDENCE.NORM|CONCATENATEX|CONCATENATE|COMBINEVALUES|COMBINA|COMBIN|COLUMNSTATISTICS|COALESCE|CLOSINGBALANCEYEAR|CLOSINGBALANCEQUARTER|CLOSINGBALANCEMONTH|CHISQ.INV.RT|CHISQ.INV|CHISQ.DIST.RT|CHISQ.DIST|CEILING|CALENDARAUTO|CALENDAR|CALCULATETABLE|CALCULATE|BLANK|BETA.INV|BETA.DIST|AVERAGEX|AVERAGEA|AVERAGE|ATANH|ATAN|ASINH|ASIN|APPROXIMATEDISTINCTCOUNT|AND|AMORLINC|AMORDEGRC|ALLSELECTED|ALLNOBLANKROW|ALLEXCEPT|ALLCROSSFILTERED|ALL|ADDMISSINGITEMS|ADDCOLUMNS|ACOTH|ACOT|ACOSH|ACOS|ACCRINTM|ACCRINT|ABS)\\b",
|
||||
"name": "variable.language.dax"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.dax",
|
||||
"match": "\\b(DEFINE|EVALUATE|ORDER BY|RETURN|VAR)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.array.constructor.dax",
|
||||
"match": "(?x)\n { | }"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.comparison.dax",
|
||||
"match": "(?x)\n > | < | >= | <= | =(?!==)\n"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.logical.dax",
|
||||
"match": "(?x)\n && | IN | NOT | \\|\\|"
|
||||
},
|
||||
{
|
||||
"name": "keyword.arithmetic.operator.dax",
|
||||
"match": "(?x)\n \\+ | \\- | \\* | \\/ \n"
|
||||
},
|
||||
{
|
||||
"begin": "\\[",
|
||||
"end": "\\]",
|
||||
"name": "support.function.dax"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.dax"
|
||||
},
|
||||
{
|
||||
"begin": "\\'",
|
||||
"end": "\\'",
|
||||
"name": "support.class.dax"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings": {
|
||||
"name": "string.quoted.double.dax",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.dax",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
},
|
||||
"metas": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.brace.round.dax"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.brace.round.dax"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.dax"
|
||||
}
|
||||
@ -1,160 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/textmate/diff.tmbundle/blob/master/Syntaxes/Diff.plist",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/textmate/diff.tmbundle/commit/0593bb775eab1824af97ef2172fd38822abd97d7",
|
||||
"name": "diff",
|
||||
"scopeName": "source.diff",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.separator.diff"
|
||||
}
|
||||
},
|
||||
"match": "^((\\*{15})|(={67})|(-{3}))$\\n?",
|
||||
"name": "meta.separator.diff"
|
||||
},
|
||||
{
|
||||
"match": "^\\d+(,\\d+)*(a|d|c)\\d+(,\\d+)*$\\n?",
|
||||
"name": "meta.diff.range.normal"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.toc-list.line-number.diff"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
}
|
||||
},
|
||||
"match": "^(@@)\\s*(.+?)\\s*(@@)($\\n?)?",
|
||||
"name": "meta.diff.range.unified"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.definition.range.diff"
|
||||
}
|
||||
},
|
||||
"match": "^(((\\-{3}) .+ (\\-{4}))|((\\*{3}) .+ (\\*{4})))$\\n?",
|
||||
"name": "meta.diff.range.context"
|
||||
},
|
||||
{
|
||||
"match": "^diff --git a/.*$\\n?",
|
||||
"name": "meta.diff.header.git"
|
||||
},
|
||||
{
|
||||
"match": "^diff (-|\\S+\\s+\\S+).*$\\n?",
|
||||
"name": "meta.diff.header.command"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"4": {
|
||||
"name": "punctuation.definition.from-file.diff"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.from-file.diff"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.definition.from-file.diff"
|
||||
}
|
||||
},
|
||||
"match": "(^(((-{3}) .+)|((\\*{3}) .+))$\\n?|^(={4}) .+(?= - ))",
|
||||
"name": "meta.diff.header.from-file"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.to-file.diff"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.to-file.diff"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.to-file.diff"
|
||||
}
|
||||
},
|
||||
"match": "(^(\\+{3}) .+$\\n?| (-) .* (={4})$\\n?)",
|
||||
"name": "meta.diff.header.to-file"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "punctuation.definition.inserted.diff"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.inserted.diff"
|
||||
}
|
||||
},
|
||||
"match": "^(((>)( .*)?)|((\\+).*))$\\n?",
|
||||
"name": "markup.inserted.diff"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.changed.diff"
|
||||
}
|
||||
},
|
||||
"match": "^(!).*$\\n?",
|
||||
"name": "markup.changed.diff"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "punctuation.definition.deleted.diff"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.deleted.diff"
|
||||
}
|
||||
},
|
||||
"match": "^(((<)( .*)?)|((-).*))$\\n?",
|
||||
"name": "markup.deleted.diff"
|
||||
},
|
||||
{
|
||||
"begin": "^(#)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.diff"
|
||||
}
|
||||
},
|
||||
"comment": "Git produces unified diffs with embedded comments\"",
|
||||
"end": "\\n",
|
||||
"name": "comment.line.number-sign.diff"
|
||||
},
|
||||
{
|
||||
"match": "^index [0-9a-f]{7,40}\\.\\.[0-9a-f]{7,40}.*$\\n?",
|
||||
"name": "meta.diff.index.git"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.key-value.diff"
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.toc-list.file-name.diff"
|
||||
}
|
||||
},
|
||||
"match": "^Index(:) (.+)$\\n?",
|
||||
"name": "meta.diff.index"
|
||||
},
|
||||
{
|
||||
"match": "^Only in .*: .*$\\n?",
|
||||
"name": "meta.diff.only-in"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,102 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/moby/moby/blob/master/contrib/syntax/textmate/Docker.tmbundle/Syntaxes/Dockerfile.tmLanguage",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/moby/moby/commit/abd39744c6f3ed854500e423f5fabf952165161f",
|
||||
"name": "docker",
|
||||
"scopeName": "source.dockerfile",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.special-method.dockerfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.dockerfile"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*\\b(?i:(FROM))\\b.*?\\b(?i:(AS))\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.dockerfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.dockerfile"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR))\\s"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.dockerfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.special-method.dockerfile"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(?i:(ONBUILD)\\s+)?(?i:(CMD|ENTRYPOINT))\\s"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.dockerfile"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.dockerfile"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.dockerfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escaped.dockerfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.dockerfile"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.dockerfile"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.dockerfile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escaped.dockerfile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.dockerfile"
|
||||
},
|
||||
"2": {
|
||||
"name": "comment.line.number-sign.dockerfile"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.comment.dockerfile"
|
||||
}
|
||||
},
|
||||
"comment": "comment.line",
|
||||
"match": "^(\\s*)((#).*$\\n?)"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,636 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["dm", "dme"],
|
||||
"foldingStartMarker": "(?x)\n/\\*\\*(?!\\*)\n|^(?![^{]*?//|[^{]*?/\\*(?!.*?\\*/.*?\\{)).*?\\{\\s*($|//|/\\*(?!.*?\\*/.*\\S))",
|
||||
"foldingStopMarker": "(?<!\\*)\\*\\*/|^\\s*\\}",
|
||||
"name": "dream-maker",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#preprocessor-rule-enabled"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-rule-disabled"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-rule-other"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "(?x)\n(var)[\\/ ]\n(?:(static|global|tmp|const)\\/)?\n(?:(datum|atom(?:\\/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\/)?\n(?:\n\t([a-zA-Z0-9_\\-$]*)\\/\n)*\n\n([A-Za-z0-9_$]*)\\b",
|
||||
"name": "meta.initialization.dm",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.dm"
|
||||
},
|
||||
"5": {
|
||||
"name": "variable.other.dm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
|
||||
"name": "constant.numeric.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while)\\b",
|
||||
"name": "keyword.control.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(del|new)\\b",
|
||||
"name": "keyword.other.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(proc|verb|datum|atom(/movable)?|obj|mob|turf|area|savefile|list|client|sound|image|database|matrix|regex|exception)\\b",
|
||||
"name": "storage.type.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(as|const|global|set|static|tmp)\\b",
|
||||
"name": "storage.modifier.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(usr|world|src|args)\\b",
|
||||
"name": "variable.language.dm"
|
||||
},
|
||||
{
|
||||
"match": "(\\?|(>|<)(=)?|\\.|:|/(=)?|~|\\+(\\+|=)?|-(-|=)?|\\*(\\*|=)?|%|>>|<<|=(=)?|!(=)?|<>|&|&&|\\^|\\||\\|\\||\\bto\\b|\\bin\\b|\\bstep\\b)",
|
||||
"name": "keyword.operator.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\b([A-Z_][A-Z_0-9]*)\\b",
|
||||
"name": "constant.language.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\bnull\\b",
|
||||
"name": "constant.language.dm"
|
||||
},
|
||||
{
|
||||
"begin": "{\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.dm"
|
||||
}
|
||||
},
|
||||
"end": "\"}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.dm"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.triple.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_embedded_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.dm"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.dm"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_embedded_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.dm"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.dm"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n(?:\n\t(\\()\n\t\t(\n\t\t\t\\s* \\g<id> \\s* # first argument\n\t\t\t((,) \\s* \\g<id> \\s*)* # additional arguments\n\t\t\t(?:\\.\\.\\.)? # varargs ellipsis?\n\t\t)\n\t(\\))\n)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.directive.define.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.directive.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.function.preprocessor.dm"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.definition.parameters.begin.dm"
|
||||
},
|
||||
"6": {
|
||||
"name": "variable.parameter.preprocessor.dm"
|
||||
},
|
||||
"8": {
|
||||
"name": "punctuation.separator.parameters.dm"
|
||||
},
|
||||
"9": {
|
||||
"name": "punctuation.definition.parameters.end.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
|
||||
"name": "meta.preprocessor.macro.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?<id>[a-zA-Z_][a-zA-Z0-9_]*)) # macro name",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.directive.define.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.directive.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.preprocessor.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
|
||||
"name": "meta.preprocessor.macro.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(#\\s*(error|warn))\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.import.error.dm"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "meta.preprocessor.diagnostic.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?>\\\\\\s*\\n)",
|
||||
"name": "punctuation.separator.continuation.dm"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(?:((#)\\s*(?:elif|else|if|ifdef|ifndef))|((#)\\s*(undef|include)))\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.directive.conditional.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.directive.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.control.directive.$5.dm"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.directive.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?=(?://|/\\*))|(?<!\\\\)(?=\\n)",
|
||||
"name": "meta.preprocessor.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?>\\\\\\s*\\n)",
|
||||
"name": "punctuation.separator.continuation.dm"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"begin": "(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t\t|\n\t\t\t\t\t\t (?: (?= \\s ) (?<!else|new|return) (?<=\\w) # or word + space before name\n\t\t\t\t\t\t\t | (?= \\s*[A-Za-z_] ) (?<!&&) (?<=[*&>]) # or type modifier before name\n\t\t\t\t\t\t )\n\t\t\t\t)\n\t\t\t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n\t\t\t\t(\n\t\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t\t(?: (?<=operator) (?: [-*&<>=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t\t\t\t)\n\t\t\t\t \\s*(?=\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.function.leading.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.function.dm"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.parameters.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?<=\\})|(?=#)|(;)?",
|
||||
"name": "meta.function.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"match": "\\bconst\\b",
|
||||
"name": "storage.modifier.dm"
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"access": {
|
||||
"match": "\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()",
|
||||
"name": "variable.other.dot-access.dm"
|
||||
},
|
||||
"block": {
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"name": "meta.block.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_innards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_innards": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#preprocessor-rule-enabled-block"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-rule-disabled-block"
|
||||
},
|
||||
{
|
||||
"include": "#preprocessor-rule-other-block"
|
||||
},
|
||||
{
|
||||
"include": "#access"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.function-call.leading.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.any-method.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.parameters.dm"
|
||||
}
|
||||
},
|
||||
"match": "(?x) (?: (?= \\s ) (?:(?<=else|new|return) | (?<!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()",
|
||||
"name": "meta.function-call.dm"
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.toc-list.banner.block.dm"
|
||||
}
|
||||
},
|
||||
"match": "^/\\* =(\\s*.*?)\\s*= \\*/$\\n?",
|
||||
"name": "comment.block.dm"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dm"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\*/.*\\n",
|
||||
"name": "invalid.illegal.stray-comment-end.dm"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.toc-list.banner.line.dm"
|
||||
}
|
||||
},
|
||||
"match": "^// =(\\s*.*?)\\s*=\\s*$\\n?",
|
||||
"name": "comment.line.banner.dm"
|
||||
},
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.dm"
|
||||
}
|
||||
},
|
||||
"end": "$\\n?",
|
||||
"name": "comment.line.double-slash.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?>\\\\\\s*\\n)",
|
||||
"name": "punctuation.separator.continuation.dm"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"disabled": {
|
||||
"begin": "^\\s*#\\s*if(n?def)?\\b.*$",
|
||||
"comment": "eat nested preprocessor if(def)s",
|
||||
"end": "^\\s*#\\s*endif\\b.*$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#disabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parens": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"name": "meta.parens.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-disabled": {
|
||||
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.if.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.preprocessor.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(#\\s*(endif)\\b)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^\\s*(#\\s*(else)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.else.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "",
|
||||
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
||||
"name": "comment.block.preprocessor.if-branch",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#disabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-disabled-block": {
|
||||
"begin": "^\\s*(#(if)\\s+(0)\\b).*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.if.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.preprocessor.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(#\\s*(endif)\\b)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^\\s*(#\\s*(else)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.else.dm"
|
||||
}
|
||||
},
|
||||
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_innards"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "",
|
||||
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
||||
"name": "comment.block.preprocessor.if-branch.in-block",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#disabled"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-enabled": {
|
||||
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.if.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.preprocessor.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(#\\s*(endif)\\b)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^\\s*(#\\s*(else)\\b).*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.else.dm"
|
||||
}
|
||||
},
|
||||
"contentName": "comment.block.preprocessor.else-branch",
|
||||
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#disabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "",
|
||||
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-enabled-block": {
|
||||
"begin": "^\\s*(#(if)\\s+(0*1)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.if.dm"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.numeric.preprocessor.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(#\\s*(endif)\\b)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^\\s*(#\\s*(else)\\b).*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.else.dm"
|
||||
}
|
||||
},
|
||||
"contentName": "comment.block.preprocessor.else-branch.in-block",
|
||||
"end": "(?=^\\s*#\\s*endif\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#disabled"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "",
|
||||
"end": "(?=^\\s*#\\s*(else|endif)\\b.*$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_innards"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-other": {
|
||||
"begin": "^\\s*((#\\s*(if(n?def)?))\\b.*?(?:(?=(?://|/\\*))|$))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*((#\\s*(endif))\\b).*$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$base"
|
||||
}
|
||||
]
|
||||
},
|
||||
"preprocessor-rule-other-block": {
|
||||
"begin": "^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.preprocessor.dm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.import.dm"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(#\\s*(endif)\\b).*$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_innards"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_embedded_expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<!\\\\)\\[",
|
||||
"end": "\\]",
|
||||
"name": "string.interpolated.dm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_escaped_char": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x)\n\\\\\n(\n\th(?:(?:er|im)self|ers|im)\n\t|([tTsS]?he) # Weird regex to match The, the, She, she and he at once.\n\t|He\n\t|[Hh]is\n\t|[aA]n?\n\t|(?:im)?proper\n\t|\\.\\.\\.\n\t|(?:icon|ref|[Rr]oman)(?=\\[) # Macros which need a [] after them.\n\t|[s<>\"n\\n \\[]\n)",
|
||||
"name": "constant.character.escape.dm"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unknown-escape.dm"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.dm"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,748 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["elm"],
|
||||
"name": "elm",
|
||||
"scopeName": "source.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#import"
|
||||
},
|
||||
{
|
||||
"include": "#module"
|
||||
},
|
||||
{
|
||||
"include": "#debug"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"match": "\\b(_)\\b",
|
||||
"name": "keyword.unused.elm"
|
||||
},
|
||||
{
|
||||
"include": "#type-signature"
|
||||
},
|
||||
{
|
||||
"include": "#type-declaration"
|
||||
},
|
||||
{
|
||||
"include": "#type-alias-declaration"
|
||||
},
|
||||
{
|
||||
"include": "#string-triple"
|
||||
},
|
||||
{
|
||||
"include": "#string-quote"
|
||||
},
|
||||
{
|
||||
"include": "#char"
|
||||
},
|
||||
{
|
||||
"comment": "Floats are always decimal",
|
||||
"match": "\\b([0-9]+\\.[0-9]+([eE][+-]?[0-9]+)?|[0-9]+[eE][+-]?[0-9]+)\\b",
|
||||
"name": "constant.numeric.float.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b([0-9]+)\\b",
|
||||
"name": "constant.numeric.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(0x[0-9a-fA-F]+)\\b",
|
||||
"name": "constant.numeric.elm"
|
||||
},
|
||||
{
|
||||
"include": "#glsl"
|
||||
},
|
||||
{
|
||||
"include": "#record-prefix"
|
||||
},
|
||||
{
|
||||
"include": "#module-prefix"
|
||||
},
|
||||
{
|
||||
"include": "#constructor"
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.update.elm",
|
||||
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\|)\\s+([a-z][a-zA-Z0-9_]*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.bracket.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "record.name.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.pipe.elm"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.record.field.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.update.elm",
|
||||
"match": "(\\|)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.pipe.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.record.field.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.update.elm",
|
||||
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.bracket.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "record.name.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.elm",
|
||||
"match": "(\\{)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.bracket.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.record.field.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.elm",
|
||||
"match": "(,)\\s+([a-z][a-zA-Z0-9_]*)\\s+(\\=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.comma.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.record.field.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(\\}|\\{)",
|
||||
"name": "punctuation.bracket.elm"
|
||||
},
|
||||
{
|
||||
"include": "#unit"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"match": "(->)",
|
||||
"name": "keyword.operator.arrow.elm"
|
||||
},
|
||||
{
|
||||
"include": "#infix_op"
|
||||
},
|
||||
{
|
||||
"match": "(\\=|\\:|\\||\\\\)",
|
||||
"name": "keyword.other.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(type|as|port|exposing|alias|infixl|infixr|infix)\\s+",
|
||||
"name": "keyword.other.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b(if|then|else|case|of|let|in)\\s+",
|
||||
"name": "keyword.control.elm"
|
||||
},
|
||||
{
|
||||
"include": "#record-accessor"
|
||||
},
|
||||
{
|
||||
"include": "#top_level_value"
|
||||
},
|
||||
{
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"include": "#period"
|
||||
},
|
||||
{
|
||||
"include": "#square_brackets"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comma": {
|
||||
"match": "(,)",
|
||||
"name": "punctuation.separator.comma.elm"
|
||||
},
|
||||
"parens": {
|
||||
"match": "(\\(|\\))",
|
||||
"name": "punctuation.parens.elm"
|
||||
},
|
||||
"block_comment": {
|
||||
"applyEndPatternLast": 1,
|
||||
"begin": "\\{-(?!#)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.elm"
|
||||
}
|
||||
},
|
||||
"end": "-\\}",
|
||||
"name": "comment.block.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.elm"
|
||||
}
|
||||
},
|
||||
"begin": "--",
|
||||
"end": "$",
|
||||
"name": "comment.line.double-dash.elm"
|
||||
},
|
||||
{
|
||||
"include": "#block_comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
"import": {
|
||||
"name": "meta.import.elm",
|
||||
"begin": "^\\b(import)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.import.elm"
|
||||
}
|
||||
},
|
||||
"end": "\\n(?!\\s)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(as|exposing)",
|
||||
"name": "keyword.control.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module_chunk"
|
||||
},
|
||||
{
|
||||
"include": "#period"
|
||||
},
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-exports"
|
||||
}
|
||||
]
|
||||
},
|
||||
"module": {
|
||||
"begin": "^\\b((port |effect )?module)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.elm"
|
||||
}
|
||||
},
|
||||
"end": "\\n(?!\\s)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.elm"
|
||||
}
|
||||
},
|
||||
"name": "meta.declaration.module.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#module_chunk"
|
||||
},
|
||||
{
|
||||
"include": "#period"
|
||||
},
|
||||
{
|
||||
"match": "(exposing)",
|
||||
"name": "keyword.other.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-exports"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-triple": {
|
||||
"name": "string.quoted.triple.elm",
|
||||
"begin": "\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.elm"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.elm"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
|
||||
"name": "constant.character.escape.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
||||
"name": "constant.character.escape.control.elm"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-quote": {
|
||||
"name": "string.quoted.double.elm",
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.elm"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.elm"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
|
||||
"name": "constant.character.escape.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
||||
"name": "constant.character.escape.control.elm"
|
||||
}
|
||||
]
|
||||
},
|
||||
"char": {
|
||||
"name": "string.quoted.single.elm",
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.char.begin.elm"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.char.end.elm"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(NUL|SOH|STX|ETX|EOT|ENQ|ACK|BEL|BS|HT|LF|VT|FF|CR|SO|SI|DLE|DC1|DC2|DC3|DC4|NAK|SYN|ETB|CAN|EM|SUB|ESC|FS|GS|RS|US|SP|DEL|[abfnrtv\\\\\\\"'\\&]|x[0-9a-fA-F]{1,5})",
|
||||
"name": "constant.character.escape.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\^[A-Z@\\[\\]\\\\\\^_]",
|
||||
"name": "constant.character.escape.control.elm"
|
||||
}
|
||||
]
|
||||
},
|
||||
"debug": {
|
||||
"match": "\\b(Debug)\\b",
|
||||
"name": "invalid.illegal.debug.elm"
|
||||
},
|
||||
"module-exports": {
|
||||
"begin": "(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.parens.module-export.elm"
|
||||
}
|
||||
},
|
||||
"end": "(\\))",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.parens.module-export.elm"
|
||||
}
|
||||
},
|
||||
"name": "meta.declaration.exports.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b[a-z][a-zA-Z_'0-9]*",
|
||||
"name": "entity.name.function.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b[A-Z][A-Za-z_'0-9]*",
|
||||
"name": "storage.type.elm"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.comma.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"match": "\\(\\.\\.\\)",
|
||||
"name": "punctuation.parens.ellipses.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\.\\.",
|
||||
"name": "punctuation.parens.ellipses.elm"
|
||||
},
|
||||
{
|
||||
"include": "#infix_op"
|
||||
},
|
||||
{
|
||||
"comment": "So named because I don't know what to call this.",
|
||||
"match": "\\(.*?\\)",
|
||||
"name": "meta.other.unknown.elm"
|
||||
}
|
||||
]
|
||||
},
|
||||
"module_chunk": {
|
||||
"match": "[A-Z][a-zA-Z0-9_]*",
|
||||
"name": "support.module.elm"
|
||||
},
|
||||
"period": {
|
||||
"match": "[.]",
|
||||
"name": "keyword.other.period.elm"
|
||||
},
|
||||
"square_brackets": {
|
||||
"match": "[\\[\\]]",
|
||||
"name": "punctuation.definition.list.elm"
|
||||
},
|
||||
"record-prefix": {
|
||||
"match": "([a-z][a-zA-Z0-9_]*)(\\.)([a-z][a-zA-Z0-9_]*)",
|
||||
"name": "record.accessor.elm",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "record.name.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.period.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.record.field.accessor.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
"module-prefix": {
|
||||
"match": "([A-Z][a-zA-Z0-9_]*)(\\.)",
|
||||
"name": "meta.module.name.elm",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.module.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.period.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
"constructor": {
|
||||
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
|
||||
"name": "constant.type-constructor.elm"
|
||||
},
|
||||
"value": {
|
||||
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "meta.value.elm"
|
||||
},
|
||||
"unit": {
|
||||
"match": "\\(\\)",
|
||||
"name": "constant.unit.elm"
|
||||
},
|
||||
"top_level_value": {
|
||||
"match": "^[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "entity.name.function.top_level.elm"
|
||||
},
|
||||
"record-accessor": {
|
||||
"match": "(\\.)([a-z][a-zA-Z0-9_]*)",
|
||||
"name": "meta.record.accessor",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.period.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.record.field.accessor.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
"infix_op": {
|
||||
"match": "(</>|<\\?>|<\\||<=|\\|\\||&&|>=|\\|>|\\|=|\\|\\.|\\+\\+|::|/=|==|//|>>|<<|<|>|\\^|\\+|-|/|\\*)",
|
||||
"name": "keyword.operator.elm"
|
||||
},
|
||||
"type-declaration": {
|
||||
"begin": "^(type\\s+)([A-Z][a-zA-Z0-9_']*)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.type.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.elm"
|
||||
}
|
||||
},
|
||||
"end": "^(?=\\S)",
|
||||
"name": "meta.function.type-declaration.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.record.field.elm",
|
||||
"match": "^\\s*([A-Z][a-zA-Z0-9_]*)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.type-constructor.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.elm",
|
||||
"match": "(\\=|\\|)\\s+([A-Z][a-zA-Z0-9_]*)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.type-constructor.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\=",
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\-\\>",
|
||||
"name": "keyword.operator.arrow.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-prefix"
|
||||
},
|
||||
{
|
||||
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "variable.type.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
|
||||
"name": "storage.type.elm"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#type-record"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type-alias-declaration": {
|
||||
"begin": "^(type\\s+)(alias\\s+)([A-Z][a-zA-Z0-9_']*)\\s+",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.type.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.type-alias.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "storage.type.elm"
|
||||
}
|
||||
},
|
||||
"end": "^(?=\\S)",
|
||||
"name": "meta.function.type-declaration.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\n\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\=",
|
||||
"name": "keyword.operator.assignment.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-prefix"
|
||||
},
|
||||
{
|
||||
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
|
||||
"name": "storage.type.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "variable.type.elm"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#type-record"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type-record": {
|
||||
"begin": "(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.braces.begin"
|
||||
}
|
||||
},
|
||||
"end": "(\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.braces.end"
|
||||
}
|
||||
},
|
||||
"name": "meta.function.type-record.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"match": "->",
|
||||
"name": "keyword.operator.arrow.elm"
|
||||
},
|
||||
{
|
||||
"name": "meta.record.field.elm",
|
||||
"match": "([a-z][a-zA-Z0-9_]*)\\s+(\\:)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.record.field.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.elm"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\,",
|
||||
"name": "punctuation.separator.comma.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-prefix"
|
||||
},
|
||||
{
|
||||
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "variable.type.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
|
||||
"name": "storage.type.elm"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#type-record"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type-signature": {
|
||||
"begin": "^(port\\s+)?([a-z_][a-zA-Z0-9_']*)\\s+(\\:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.port.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.other.colon.elm"
|
||||
}
|
||||
},
|
||||
"end": "((^(?=[a-z]))|^$)",
|
||||
"name": "meta.function.type-declaration.elm",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#type-signature-chunk"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type-signature-chunk": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "->",
|
||||
"name": "keyword.operator.arrow.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\s+",
|
||||
"name": "punctuation.spaces.elm"
|
||||
},
|
||||
{
|
||||
"include": "#module-prefix"
|
||||
},
|
||||
{
|
||||
"match": "\\b[a-z][a-zA-Z0-9_]*\\b",
|
||||
"name": "variable.type.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\b[A-Z][a-zA-Z0-9_]*\\b",
|
||||
"name": "storage.type.elm"
|
||||
},
|
||||
{
|
||||
"match": "\\(\\)",
|
||||
"name": "constant.unit.elm"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#type-record"
|
||||
}
|
||||
]
|
||||
},
|
||||
"glsl": {
|
||||
"begin": "(\\[)(glsl)(\\|)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.glsl.bracket.elm"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.glsl.name.elm"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.glsl.bracket.elm"
|
||||
}
|
||||
},
|
||||
"end": "(\\|\\])",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.glsl.bracket.elm"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.block.glsl",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.glsl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,153 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["erb", "rhtml", "html.erb"],
|
||||
"injections": {
|
||||
"text.html.erb - (meta.embedded.block.erb | meta.embedded.line.erb | comment)": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^\\s*)(?=<%+#(?![^%]*%>))",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.whitespace.comment.leading.erb"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)(\\s*$\\n)?",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.whitespace.comment.trailing.erb"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(^\\s*)(?=<%(?![^%]*%>))",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.whitespace.embedded.leading.erb"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)(\\s*$\\n)?",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.whitespace.embedded.trailing.erb"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tags"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#tags"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"keyEquivalent": "^~H",
|
||||
"name": "erb",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "<%+#",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.erb"
|
||||
}
|
||||
},
|
||||
"end": "%>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.erb"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.erb"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tags": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "<%+(?!>)[-=]?(?![^%]*%>)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.erb"
|
||||
}
|
||||
},
|
||||
"contentName": "source.ruby",
|
||||
"end": "(-?%)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.erb"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.ruby"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.block.erb",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.erb"
|
||||
}
|
||||
},
|
||||
"match": "(#).*?(?=-?%>)",
|
||||
"name": "comment.line.number-sign.erb"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "<%+(?!>)[-=]?",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.erb"
|
||||
}
|
||||
},
|
||||
"contentName": "source.ruby",
|
||||
"end": "(-?%)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.erb"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.ruby"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.line.erb",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.erb"
|
||||
}
|
||||
},
|
||||
"match": "(#).*?(?=-?%>)",
|
||||
"name": "comment.line.number-sign.erb"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "text.html.erb",
|
||||
"uuid": "13FF9439-15D0-4E74-9A8E-83ABF0BAA5E7"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,189 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"fileTypes": ["fish"],
|
||||
"firstLineMatch": "^#!.*\\bfish\\b",
|
||||
"foldingStartMarker": "^\\s*(function|while|if|switch|for|begin)\\s.*$",
|
||||
"foldingStopMarker": "^\\s*end\\s*$",
|
||||
"keyEquivalent": "^~F",
|
||||
"name": "fish",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.fish"
|
||||
}
|
||||
},
|
||||
"comment": "Double quoted string",
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.fish"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.fish",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"comment": "https://fishshell.com/docs/current/#quotes",
|
||||
"match": "\\\\(\\\"|\\$|$|\\\\)",
|
||||
"name": "constant.character.escape.fish"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.fish"
|
||||
}
|
||||
},
|
||||
"comment": "Single quoted string",
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.fish"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.fish",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "https://fishshell.com/docs/current/#quotes",
|
||||
"match": "\\\\('|`|\\\\)",
|
||||
"name": "constant.character.escape.fish"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.fish"
|
||||
}
|
||||
},
|
||||
"comment": "line comment",
|
||||
"match": "(?<!\\$)(#)(?!\\{).*$\\n?",
|
||||
"name": "comment.line.number-sign.fish"
|
||||
},
|
||||
{
|
||||
"comment": "name of command, either a function or a binary",
|
||||
"match": "(^\\s*|&&\\s*|\\|\\s*|\\(\\s*|[;]\\s*|\\b(if|while)\\b\\s+)(?!(?<!\\.)\\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\\b(?![?!]))([a-zA-Z_\\-0-9\\[\\].]+)",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "keyword.control.fish"
|
||||
},
|
||||
"4": {
|
||||
"name": "support.function.command.fish"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"comment": "keywords that affect control flow",
|
||||
"match": "(?<!\\.)\\b(function|while|if|else|switch|case|for|in|begin|end|continue|break|return|source|exit|wait|and|or|not)\\b(?![?!])",
|
||||
"name": "keyword.control.fish"
|
||||
},
|
||||
{
|
||||
"match": "(?<!\\.)\\bfunction\\b(?![?!])",
|
||||
"name": "storage.type.fish"
|
||||
},
|
||||
{
|
||||
"match": "\\|",
|
||||
"name": "keyword.operator.pipe.fish"
|
||||
},
|
||||
{
|
||||
"comment": "IO Redirection",
|
||||
"match": "(?x:\n<|# Standard Input\n(>|\\^|>>|\\^\\^)(&[012\\-])?| # Redirection of stderr\n[012](<|>|>>)(&[012\\-])? # Redirect input/output of file descriptors\n)",
|
||||
"name": "keyword.operator.redirect.fish"
|
||||
},
|
||||
{
|
||||
"match": "&",
|
||||
"name": "keyword.operator.background.fish"
|
||||
},
|
||||
{
|
||||
"match": "\\*\\*|\\*|\\?",
|
||||
"name": "keyword.operator.glob.fish"
|
||||
},
|
||||
{
|
||||
"comment": "command short/long options",
|
||||
"match": "\\s(-{1,2}[a-zA-Z_\\-0-9]+|-\\w)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "source.option.fish"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#escape"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"escape": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "single character character escape sequences",
|
||||
"match": "\\\\[abefnrtv $*?~#(){}\\[\\]<>^&|;\"']",
|
||||
"name": "constant.character.escape.single.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes the ascii character with the specified value (hexadecimal)",
|
||||
"match": "\\\\x[0-9a-fA-F]{1,2}",
|
||||
"name": "constant.character.escape.hex-ascii.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes a byte of data with the specified value (hexadecimal). If you are using mutibyte encoding, this can be used to enter invalid strings. Only use this if you know what are doing.",
|
||||
"match": "\\\\X[0-9a-fA-F]{1,2}",
|
||||
"name": "constant.character.escape.hex-byte.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes the ascii character with the specified value (octal)",
|
||||
"match": "\\\\[0-7]{1,3}",
|
||||
"name": "constant.character.escape.octal.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes the 16-bit unicode character with the specified value (hexadecimal)",
|
||||
"match": "\\\\u[0-9a-fA-F]{1,4}",
|
||||
"name": "constant.character.escape.unicode-16-bit.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes the 32-bit unicode character with the specified value (hexadecimal)",
|
||||
"match": "\\\\U[0-9a-fA-F]{1,8}",
|
||||
"name": "constant.character.escape.unicode-32-bit.fish"
|
||||
},
|
||||
{
|
||||
"comment": "escapes the control sequence generated by pressing the control key and the specified letter",
|
||||
"match": "\\\\c[a-zA-Z]",
|
||||
"name": "constant.character.escape.control.fish"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "Built-in variables visible by pressing $ TAB TAB in a new shell",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.fish"
|
||||
}
|
||||
},
|
||||
"match": "(\\$)(argv|CMD_DURATION|COLUMNS|fish_bind_mode|fish_color_autosuggestion|fish_color_cancel|fish_color_command|fish_color_comment|fish_color_cwd|fish_color_cwd_root|fish_color_end|fish_color_error|fish_color_escape|fish_color_hg_added|fish_color_hg_clean|fish_color_hg_copied|fish_color_hg_deleted|fish_color_hg_dirty|fish_color_hg_modified|fish_color_hg_renamed|fish_color_hg_unmerged|fish_color_hg_untracked|fish_color_history_current|fish_color_host|fish_color_host_remote|fish_color_match|fish_color_normal|fish_color_operator|fish_color_param|fish_color_quote|fish_color_redirection|fish_color_search_match|fish_color_selection|fish_color_status|fish_color_user|fish_color_valid_path|fish_complete_path|fish_function_path|fish_greeting|fish_key_bindings|fish_pager_color_completion|fish_pager_color_description|fish_pager_color_prefix|fish_pager_color_progress|fish_pid|fish_prompt_hg_status_added|fish_prompt_hg_status_copied|fish_prompt_hg_status_deleted|fish_prompt_hg_status_modified|fish_prompt_hg_status_order|fish_prompt_hg_status_unmerged|fish_prompt_hg_status_untracked|FISH_VERSION|history|hostname|IFS|LINES|pipestatus|status|umask|version)\\b",
|
||||
"name": "variable.language.fish"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.fish"
|
||||
}
|
||||
},
|
||||
"match": "(\\$)[a-zA-Z_][a-zA-Z0-9_]*",
|
||||
"name": "variable.other.normal.fish"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.fish",
|
||||
"uuid": "9CA6DB6F-A16F-4836-A058-617C7378775D"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,132 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["feature"],
|
||||
"firstLineMatch": "기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Функция|Функциональность|Свойство|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Ability|Business Need|Feature|Egenskap|Egenskab|Crikey|Característica|Arwedd(.*)",
|
||||
"foldingStartMarker": "^\\s*\\b(예|시나리오 개요|시나리오|배경|背景|場景大綱|場景|场景大纲|场景|劇本大綱|劇本|例子|例|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|シナリオ|サンプル|سيناريو مخطط|سيناريو|امثلة|الخلفية|תרחיש|תבנית תרחיש|רקע|דוגמאות|Тарих|Сценарій|Сценарији|Сценарио|Сценарий структураси|Сценарий|Структура сценарію|Структура сценарија|Структура сценария|Скица|Рамка на сценарий|Примери|Пример|Приклади|Предыстория|Предистория|Позадина|Передумова|Основа|Мисоллар|Концепт|Контекст|Значения|Örnekler|Założenia|Wharrimean is|Voorbeelden|Variantai|Tình huống|The thing of it is|Tausta|Taust|Tapausaihio|Tapaus|Tapaukset|Szenariogrundriss|Szenario|Szablon scenariusza|Stsenaarium|Struktura scenarija|Skica|Skenario konsep|Skenario|Situācija|Senaryo taslağı|Senaryo|Scénář|Scénario|Schema dello scenario|Scenārijs pēc parauga|Scenārijs|Scenár|Scenariusz|Scenariul de şablon|Scenariul de sablon|Scenariu|Scenarios|Scenario Outline|Scenario Amlinellol|Scenario|Example|Scenarijus|Scenariji|Scenarijaus šablonas|Scenarijai|Scenarij|Scenarie|Rerefons|Raamstsenaarium|Příklady|Példák|Príklady|Przykłady|Primjeri|Primeri|Primer|Pozadí|Pozadina|Pozadie|Plan du scénario|Plan du Scénario|Piemēri|Pavyzdžiai|Paraugs|Osnova scénáře|Osnova|Náčrt Scénáře|Náčrt Scenáru|Mate|MISHUN SRSLY|MISHUN|Kịch bản|Kontext|Konteksts|Kontekstas|Kontekst|Koncept|Khung tình huống|Khung kịch bản|Juhtumid|Háttér|Grundlage|Geçmiş|Forgatókönyv vázlat|Forgatókönyv|Exemplos|Exemples|Exemplele|Exempel|Examples|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esempi|Escenario|Escenari|Enghreifftiau|Eksempler|Ejemplos|EXAMPLZ|Dữ liệu|Dis is what went down|Dasar|Contoh|Contexto|Contexte|Contesto|Condiţii|Conditii|Cobber|Cenário|Cenario|Cefndir|Bối cảnh|Blokes|Beispiele|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|All y'all|Achtergrond|Abstrakt Scenario|Abstract Scenario|Rule|Regla|Règle|Regel|Regra)",
|
||||
"foldingStopMarker": "^\\s*$",
|
||||
"keyEquivalent": "^~C",
|
||||
"name": "gherkin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#feature_element_keyword"
|
||||
},
|
||||
{
|
||||
"include": "#feature_keyword"
|
||||
},
|
||||
{
|
||||
"include": "#step_keyword"
|
||||
},
|
||||
{
|
||||
"include": "#strings_triple_quote"
|
||||
},
|
||||
{
|
||||
"include": "#strings_single_quote"
|
||||
},
|
||||
{
|
||||
"include": "#strings_double_quote"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#tags"
|
||||
},
|
||||
{
|
||||
"include": "#scenario_outline_variable"
|
||||
},
|
||||
{
|
||||
"include": "#table"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "comment.line.number-sign"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(#.*)"
|
||||
},
|
||||
"table": {
|
||||
"begin": "^\\s*\\|",
|
||||
"end": "\\|\\s*$",
|
||||
"name": "keyword.control.cucumber.table",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\w",
|
||||
"name": "source"
|
||||
}
|
||||
]
|
||||
},
|
||||
"feature_keyword": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.language.gherkin.feature"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.language.gherkin.feature.title"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(기능|機能|功能|フィーチャ|خاصية|תכונה|Функціонал|Функционалност|Функционал|Особина|Функция|Функциональность|Свойство|Могућност|Özellik|Właściwość|Tính năng|Savybė|Požiadavka|Požadavek|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Fīča|Funzionalità|Funktionalität|Funkcionalnost|Funkcionalitāte|Funcționalitate|Functionaliteit|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Ability|Business Need|Feature|Ability|Egenskap|Egenskab|Crikey|Característica|Arwedd):(.*)\\b"
|
||||
},
|
||||
"step_keyword": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.language.gherkin.feature.step"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(En |و |Y |E |Եվ |Ya |Too right |Və |Həm |A |И |而且 |并且 |同时 |並且 |同時 |Ak |Epi |A také |Og |😂 |And |Kaj |Ja |Et que |Et qu' |Et |და |Und |Και |અને |וגם |और |तथा |És |Dan |Agus |かつ |Lan |ಮತ್ತು |'ej |latlh |그리고 |AN |Un |Ir |an |a |Мөн |Тэгээд |Ond |7 |ਅਤੇ |Aye |Oraz |Si |Și |Şi |К тому же |Также |An |A tiež |A taktiež |A zároveň |In |Ter |Och |மேலும் |மற்றும் |Һәм |Вә |మరియు |และ |Ve |І |А також |Та |اور |Ва |Và |Maar |لكن |Pero |Բայց |Peru |Yeah nah |Amma |Ancaq |Ali |Но |Però |但是 |Men |Ale |😔 |But |Sed |Kuid |Mutta |Mais que |Mais qu' |Mais |მაგრამ |Aber |Αλλά |પણ |אבל |पर |परन्तु |किन्तु |De |En |Tapi |Ach |Ma |しかし |但し |ただし |Nanging |Ananging |ಆದರೆ |'ach |'a |하지만 |단 |BUT |Bet |awer |mä |No |Tetapi |Гэхдээ |Харин |Ac |ਪਰ |اما |Avast! |Mas |Dar |А |Иначе |Buh |Али |Toda |Ampak |Vendar |ஆனால் |Ләкин |Әмма |కాని |แต่ |Fakat |Ama |Але |لیکن |Лекин |Бирок |Аммо |Nhưng |Ond |Dan |اذاً |ثم |Alavez |Allora |Antonces |Ապա |Entós |But at the end of the day I reckon |O halda |Zatim |То |Aleshores |Cal |那么 |那麼 |Lè sa a |Le sa a |Onda |Pak |Så |🙏 |Then |Do |Siis |Niin |Alors |Entón |Logo |მაშინ |Dann |Τότε |પછી |אז |אזי |तब |तदा |Akkor |Þá |Maka |Ansin |ならば |Njuk |Banjur |ನಂತರ |vaj |그러면 |DEN |Tad |Tada |dann |Тогаш |Togash |Kemudian |Тэгэхэд |Үүний дараа |Tha |Þa |Ða |Tha the |Þa þe |Ða ðe |ਤਦ |آنگاه |Let go and haul |Wtedy |Então |Entao |Atunci |Затем |Тогда |Dun |Den youse gotta |Онда |Tak |Potom |Nato |Potem |Takrat |Entonces |அப்பொழுது |Нәтиҗәдә |అప్పుడు |ดังนั้น |O zaman |Тоді |پھر |تب |Унда |Thì |Yna |Wanneer |متى |عندما |Cuan |Եթե |Երբ |Cuando |It's just unbelievable |Əgər |Nə vaxt ki |Kada |Когато |Quan |当 |當 |Lè |Le |Kad |Když |Når |Als |🎬 |When |Se |Kui |Kun |Quand |Lorsque |Lorsqu' |Cando |როდესაც |Wenn |Όταν |ક્યારે |כאשר |जब |कदा |Majd |Ha |Amikor |Þegar |Ketika |Nuair a |Nuair nach |Nuair ba |Nuair nár |Quando |もし |Manawa |Menawa |ಸ್ಥಿತಿಯನ್ನು |qaSDI' |만일 |만약 |WEN |Ja |Kai |wann |Кога |Koga |Apabila |Хэрэв |Tha |Þa |Ða |ਜਦੋਂ |هنگامی |Blimey! |Jeżeli |Jeśli |Gdy |Kiedy |Cand |Când |Когда |Если |Wun |Youse know like when |Када |Кад |Keď |Ak |Ko |Ce |Če |Kadar |När |எப்போது |Әгәр |ఈ పరిస్థితిలో |เมื่อ |Eğer ki |Якщо |Коли |جب |Агар |Khi |Pryd |Gegewe |بفرض |Dau |Dada |Daus |Dadas |Դիցուք |Dáu |Daos |Daes |Y'know |Tutaq ki |Verilir |Dato |Дадено |Donat |Donada |Atès |Atesa |假如 |假设 |假定 |假設 |Sipoze |Sipoze ke |Sipoze Ke |Zadan |Zadani |Zadano |Pokud |Za předpokladu |Givet |Gegeven |Stel |😐 |Given |Donitaĵo |Komence |Eeldades |Oletetaan |Soit |Etant donné que |Etant donné qu' |Etant donné |Etant donnée |Etant donnés |Etant données |Étant donné que |Étant donné qu' |Étant donné |Étant donnée |Étant donnés |Étant données |Dado |Dados |მოცემული |Angenommen |Gegeben sei |Gegeben seien |Δεδομένου |આપેલ છે |בהינתן |अगर |यदि |चूंकि |Amennyiben |Adott |Ef |Dengan |Cuir i gcás go |Cuir i gcás nach |Cuir i gcás gur |Cuir i gcás nár |Data |Dati |Date |前提 |Nalika |Nalikaning |ನೀಡಿದ |ghu' noblu' |DaH ghu' bejlu' |조건 |먼저 |I CAN HAZ |Kad |Duota |ugeholl |Дадена |Dadeno |Dadena |Diberi |Bagi |Өгөгдсөн нь |Анх |Gitt |Thurh |Þurh |Ðurh |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |با فرض |Gangway! |Zakładając |Mając |Zakładając, że |Date fiind |Dat fiind |Dată fiind |Dati fiind |Dați fiind |Daţi fiind |Допустим |Дано |Пусть |Givun |Youse know when youse got |За дато |За дате |За дати |Za dato |Za date |Za dati |Pokiaľ |Za predpokladu |Dano |Podano |Zaradi |Privzeto |கொடுக்கப்பட்ட |Әйтик |చెప్పబడినది |กำหนดให้ |Diyelim ki |Припустимо |Припустимо, що |Нехай |اگر |بالفرض |فرض کیا |Агар |Biết |Cho |Anrhegedig a |\\* )"
|
||||
},
|
||||
"feature_element_keyword": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.language.gherkin.feature.scenario"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.language.gherkin.scenario.title.title"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(예|시나리오 개요|시나리오|배경|背景|場景大綱|場景|场景大纲|场景|劇本大綱|劇本|例子|例|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|シナリオ|サンプル|سيناريو مخطط|سيناريو|امثلة|الخلفية|תרחיש|תבנית תרחיש|רקע|דוגמאות|Тарих|Сценарій|Сценарији|Сценарио|Сценарий структураси|Сценарий|Структура сценарію|Структура сценарија|Структура сценария|Скица|Рамка на сценарий|Примери|Пример|Приклади|Предыстория|Предистория|Позадина|Передумова|Основа|Мисоллар|Концепт|Контекст|Значения|Örnekler|Założenia|Wharrimean is|Voorbeelden|Variantai|Tình huống|The thing of it is|Tausta|Taust|Tapausaihio|Tapaus|Tapaukset|Szenariogrundriss|Szenario|Szablon scenariusza|Stsenaarium|Struktura scenarija|Skica|Skenario konsep|Skenario|Situācija|Senaryo taslağı|Senaryo|Scénář|Scénario|Schema dello scenario|Scenārijs pēc parauga|Scenārijs|Scenár|Scenariusz|Scenariul de şablon|Scenariul de sablon|Scenariu|Scenarios|Scenario Outline|Scenario Amlinellol|Scenario|Example|Scenarijus|Scenariji|Scenarijaus šablonas|Scenarijai|Scenarij|Scenarie|Rerefons|Raamstsenaarium|Příklady|Példák|Príklady|Przykłady|Primjeri|Primeri|Primer|Pozadí|Pozadina|Pozadie|Plan du scénario|Plan du Scénario|Piemēri|Pavyzdžiai|Paraugs|Osnova scénáře|Osnova|Náčrt Scénáře|Náčrt Scenáru|Mate|MISHUN SRSLY|MISHUN|Kịch bản|Kontext|Konteksts|Kontekstas|Kontekst|Koncept|Khung tình huống|Khung kịch bản|Juhtumid|Háttér|Grundlage|Geçmiş|Forgatókönyv vázlat|Forgatókönyv|Exemplos|Exemples|Exemplele|Exempel|Examples|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esempi|Escenario|Escenari|Enghreifftiau|Eksempler|Ejemplos|EXAMPLZ|Dữ liệu|Dis is what went down|Dasar|Contoh|Contexto|Contexte|Contesto|Condiţii|Conditii|Cobber|Cenário|Cenario|Cefndir|Bối cảnh|Blokes|Beispiele|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|All y'all|Achtergrond|Abstrakt Scenario|Abstract Scenario|Rule|Regla|Règle|Regel|Regra):(.*)"
|
||||
},
|
||||
"scenario_outline_variable": {
|
||||
"match": "<[a-zA-Z0-9 _-]*>",
|
||||
"name": "variable.other"
|
||||
},
|
||||
"strings_double_quote": {
|
||||
"begin": "(?<![a-zA-Z0-9'])\"",
|
||||
"end": "\"(?![a-zA-Z0-9'])",
|
||||
"name": "string.quoted.double",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.untitled"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings_single_quote": {
|
||||
"begin": "(?<![a-zA-Z0-9\"])'",
|
||||
"end": "'(?![a-zA-Z0-9\"])",
|
||||
"name": "string.quoted.single",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape"
|
||||
}
|
||||
]
|
||||
},
|
||||
"strings_triple_quote": {
|
||||
"begin": "\"\"\".*",
|
||||
"end": "\"\"\"",
|
||||
"name": "string.quoted.single"
|
||||
},
|
||||
"tags": {
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "entity.name.type.class.tsx"
|
||||
}
|
||||
},
|
||||
"match": "(@[^@\\r\\n\\t ]+)"
|
||||
}
|
||||
},
|
||||
"scopeName": "text.gherkin.feature",
|
||||
"uuid": "85E2C52C-9B16-4A54-81E7-6D8D3ADAEFA8"
|
||||
}
|
||||
@ -1,141 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/textmate/git.tmbundle/blob/master/Syntaxes/Git%20Commit%20Message.tmLanguage",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/textmate/git.tmbundle/commit/93897a78c6e52bef13dadc0d4091d203c5facb40",
|
||||
"name": "git-commit",
|
||||
"scopeName": "text.git-commit",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\A(?!# Please enter the commit message)",
|
||||
"end": "^(?=# Please enter the commit message)",
|
||||
"name": "meta.scope.message.git-commit",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\A(?=#)",
|
||||
"end": "^(?!#)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(?!# Please enter the commit message)",
|
||||
"end": "^(?=# Please enter the commit message)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "^(?!\\G)",
|
||||
"name": "meta.scope.subject.git-commit",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.$2.git-commit"
|
||||
}
|
||||
},
|
||||
"match": "\\G((fixup|squash)!)\\s*"
|
||||
},
|
||||
{
|
||||
"match": ".{73,}$",
|
||||
"name": "invalid.illegal.line-too-long.git-commit"
|
||||
},
|
||||
{
|
||||
"match": ".{51,}$",
|
||||
"name": "invalid.deprecated.line-too-long.git-commit"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(?!# Please enter the commit message)",
|
||||
"end": "^(?=# Please enter the commit message)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(?=# Please enter the commit message)",
|
||||
"end": "\\z",
|
||||
"name": "meta.scope.metadata.git-commit",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#metadata"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comment": {
|
||||
"begin": "^(#)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.git-commit"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.number-sign.git-commit"
|
||||
},
|
||||
"metadata": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?=^# Changes to be committed:)",
|
||||
"end": "(?!\\G)((?=^# \\w)|(?!^#))",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=#)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.git-commit"
|
||||
}
|
||||
},
|
||||
"contentName": "comment.line.number-sign.git-commit",
|
||||
"end": "(?!\\G)^",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\G#",
|
||||
"name": "punctuation.definition.comment.git-commit"
|
||||
},
|
||||
{
|
||||
"match": "((modified|renamed):.*)$\\n?",
|
||||
"name": "markup.changed.git-commit"
|
||||
},
|
||||
{
|
||||
"match": "(new file:.*)$\\n?",
|
||||
"name": "markup.inserted.git-commit"
|
||||
},
|
||||
{
|
||||
"match": "(deleted:.*)$\\n?",
|
||||
"name": "markup.deleted.git-commit"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"begin": "(?=diff\\ \\-\\-git)",
|
||||
"comment": "diff presented at the end of the commit message when using commit -v.",
|
||||
"contentName": "source.diff",
|
||||
"end": "\\z",
|
||||
"name": "meta.embedded.diff.git-commit",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.diff"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,61 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/textmate/git.tmbundle/blob/master/Syntaxes/Git%20Rebase%20Message.tmLanguage",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/textmate/git.tmbundle/commit/5870cf3f8abad3a6637bdf69250b5d2ded427dc4",
|
||||
"name": "git-rebase",
|
||||
"scopeName": "text.git-rebase",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.git-rebase"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(#).*$\\n?",
|
||||
"name": "comment.line.number-sign.git-rebase"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.git-rebase"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.sha.git-rebase"
|
||||
},
|
||||
"3": {
|
||||
"name": "meta.commit-message.git-rebase"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(pick|p|reword|r|edit|e|squash|s|fixup|f|drop|d)\\s+([0-9a-f]+)\\s+(.*)$",
|
||||
"name": "meta.commit-command.git-rebase"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.git-rebase"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.shell"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(exec|x)\\s+(.*)$",
|
||||
"name": "meta.commit-command.git-rebase"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.git-rebase"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(break|b)\\s*$",
|
||||
"name": "meta.commit-command.git-rebase"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,58 +0,0 @@
|
||||
{
|
||||
"fileTypes": [
|
||||
"vs",
|
||||
"fs",
|
||||
"gs",
|
||||
"vsh",
|
||||
"fsh",
|
||||
"gsh",
|
||||
"vshader",
|
||||
"fshader",
|
||||
"gshader",
|
||||
"vert",
|
||||
"frag",
|
||||
"geom",
|
||||
"f.glsl",
|
||||
"v.glsl",
|
||||
"g.glsl"
|
||||
],
|
||||
"foldingStartMarker": "/\\*\\*|\\{\\s*$",
|
||||
"foldingStopMarker": "\\*\\*/|^\\s*\\}",
|
||||
"keyEquivalent": "^~G",
|
||||
"name": "glsl",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b",
|
||||
"name": "keyword.control.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(void|bool|int|uint|float|vec2|vec3|vec4|bvec2|bvec3|bvec4|ivec2|ivec2|ivec3|uvec2|uvec2|uvec3|mat2|mat3|mat4|mat2x2|mat2x3|mat2x4|mat3x2|mat3x3|mat3x4|mat4x2|mat4x3|mat4x4|sampler[1|2|3]D|samplerCube|sampler2DRect|sampler[1|2]DShadow|sampler2DRectShadow|sampler[1|2]DArray|sampler[1|2]DArrayShadow|samplerBuffer|sampler2DMS|sampler2DMSArray|struct|isampler[1|2|3]D|isamplerCube|isampler2DRect|isampler[1|2]DArray|isamplerBuffer|isampler2DMS|isampler2DMSArray|usampler[1|2|3]D|usamplerCube|usampler2DRect|usampler[1|2]DArray|usamplerBuffer|usampler2DMS|usampler2DMSArray)\\b",
|
||||
"name": "storage.type.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(attribute|centroid|const|flat|in|inout|invariant|noperspective|out|smooth|uniform|varying)\\b",
|
||||
"name": "storage.modifier.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(gl_BackColor|gl_BackLightModelProduct|gl_BackLightProduct|gl_BackMaterial|gl_BackSecondaryColor|gl_ClipDistance|gl_ClipPlane|gl_ClipVertex|gl_Color|gl_DepthRange|gl_DepthRangeParameters|gl_EyePlaneQ|gl_EyePlaneR|gl_EyePlaneS|gl_EyePlaneT|gl_Fog|gl_FogCoord|gl_FogFragCoord|gl_FogParameters|gl_FragColor|gl_FragCoord|gl_FragDat|gl_FragDept|gl_FrontColor|gl_FrontFacing|gl_FrontLightModelProduct|gl_FrontLightProduct|gl_FrontMaterial|gl_FrontSecondaryColor|gl_InstanceID|gl_Layer|gl_LightModel|gl_LightModelParameters|gl_LightModelProducts|gl_LightProducts|gl_LightSource|gl_LightSourceParameters|gl_MaterialParameters|gl_ModelViewMatrix|gl_ModelViewMatrixInverse|gl_ModelViewMatrixInverseTranspose|gl_ModelViewMatrixTranspose|gl_ModelViewProjectionMatrix|gl_ModelViewProjectionMatrixInverse|gl_ModelViewProjectionMatrixInverseTranspose|gl_ModelViewProjectionMatrixTranspose|gl_MultiTexCoord[0-7]|gl_Normal|gl_NormalMatrix|gl_NormalScale|gl_ObjectPlaneQ|gl_ObjectPlaneR|gl_ObjectPlaneS|gl_ObjectPlaneT|gl_Point|gl_PointCoord|gl_PointParameters|gl_PointSize|gl_Position|gl_PrimitiveIDIn|gl_ProjectionMatrix|gl_ProjectionMatrixInverse|gl_ProjectionMatrixInverseTranspose|gl_ProjectionMatrixTranspose|gl_SecondaryColor|gl_TexCoord|gl_TextureEnvColor|gl_TextureMatrix|gl_TextureMatrixInverse|gl_TextureMatrixInverseTranspose|gl_TextureMatrixTranspose|gl_Vertex|gl_VertexIDh)\\b",
|
||||
"name": "support.variable.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(gl_MaxClipPlanes|gl_MaxCombinedTextureImageUnits|gl_MaxDrawBuffers|gl_MaxFragmentUniformComponents|gl_MaxLights|gl_MaxTextureCoords|gl_MaxTextureImageUnits|gl_MaxTextureUnits|gl_MaxVaryingFloats|gl_MaxVertexAttribs|gl_MaxVertexTextureImageUnits|gl_MaxVertexUniformComponents)\\b",
|
||||
"name": "support.constant.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(abs|acos|all|any|asin|atan|ceil|clamp|cos|cross|degrees|dFdx|dFdy|distance|dot|equal|exp|exp2|faceforward|floor|fract|ftransform|fwidth|greaterThan|greaterThanEqual|inversesqrt|length|lessThan|lessThanEqual|log|log2|matrixCompMult|max|min|mix|mod|noise[1-4]|normalize|not|notEqual|outerProduct|pow|radians|reflect|refract|shadow1D|shadow1DLod|shadow1DProj|shadow1DProjLod|shadow2D|shadow2DLod|shadow2DProj|shadow2DProjLod|sign|sin|smoothstep|sqrt|step|tan|texture1D|texture1DLod|texture1DProj|texture1DProjLod|texture2D|texture2DLod|texture2DProj|texture2DProjLod|texture3D|texture3DLod|texture3DProj|texture3DProjLod|textureCube|textureCubeLod|transpose)\\b",
|
||||
"name": "support.function.glsl"
|
||||
},
|
||||
{
|
||||
"match": "\\b(asm|double|enum|extern|goto|inline|long|short|sizeof|static|typedef|union|unsigned|volatile)\\b",
|
||||
"name": "invalid.illegal.glsl"
|
||||
},
|
||||
{
|
||||
"include": "source.c"
|
||||
}
|
||||
],
|
||||
"scopeName": "source.glsl",
|
||||
"uuid": "D0FD1B52-F137-4FBA-A148-B8A893CD948C"
|
||||
}
|
||||
@ -1,887 +0,0 @@
|
||||
{
|
||||
"name": "gnuplot",
|
||||
"scopeName": "source.gnuplot",
|
||||
"uuid": "A75AB1C2-611C-4500-9EE4-20668B5BB465",
|
||||
"fileTypes": ["gp", "plt", "plot", "gnuplot"],
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.illegal.backslash.gnuplot",
|
||||
"match": "(\\\\(?!\\n).*)"
|
||||
},
|
||||
{
|
||||
"name": "punctuation.separator.statement.gnuplot",
|
||||
"match": "(;)"
|
||||
},
|
||||
{
|
||||
"include": "#LineComment"
|
||||
},
|
||||
{
|
||||
"include": "#DataBlock"
|
||||
},
|
||||
{
|
||||
"include": "#MacroExpansion"
|
||||
},
|
||||
{
|
||||
"include": "#VariableDecl"
|
||||
},
|
||||
{
|
||||
"include": "#ArrayDecl"
|
||||
},
|
||||
{
|
||||
"include": "#FunctionDecl"
|
||||
},
|
||||
{
|
||||
"include": "#ShellCommand"
|
||||
},
|
||||
{
|
||||
"include": "#Command"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"DataBlock": {
|
||||
"name": "meta.datablock.gnuplot",
|
||||
"begin": "(?x:\n\t\t\t\t([$][A-Za-z_]\\w*)\\s* # 1: var name\n\t\t\t\t(<<)\\s* # 2: shift operator\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 3: end tag\n\t\t\t\t(?=(\\#|$)) # 4: comment or end of line\n\t\t\t)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#SpecialVariable"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.language.datablock.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "^(\\3)\\b(.*)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "constant.language.datablock.gnuplot"
|
||||
},
|
||||
"2": {
|
||||
"name": "invalid.illegal.datablock.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#LineComment"
|
||||
},
|
||||
{
|
||||
"include": "#NumberLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#DoubleQuotedStringLiteral"
|
||||
}
|
||||
]
|
||||
},
|
||||
"MacroExpansion": {
|
||||
"begin": "([@][A-Za-z_]\\w*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#SpecialVariable"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"VariableDecl": {
|
||||
"name": "meta.variable.gnuplot",
|
||||
"begin": "\\b(?x:\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 1: var name\n\t\t\t\t(?:\n\t\t\t\t\t(\\[)\\s* # 2: opening bracket\n\t\t\t\t\t(.*)\\s* # 3: expression\n\t\t\t\t\t(\\])\\s* # 4: closing bracket\n\t\t\t\t)?\n\t\t\t\t(?=(=)(?!\\s*=)) # 5: assignment\n\t\t\t)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.variable.gnuplot",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#InvalidVariableDecl"
|
||||
},
|
||||
{
|
||||
"include": "#BuiltinVariable"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ArrayDecl": {
|
||||
"name": "meta.variable.gnuplot",
|
||||
"begin": "\\b(?x:\n\t\t\t\t(array)\\s+ # 1: array keyword\n\t\t\t\t([A-Za-z_]\\w*)? # 2: var name\n\t\t\t\t# Note: Handle size decl and init expression inside.\n\t\t\t\t# TODO: Properly annotate brackets.\n\t\t\t)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.type.array.gnuplot"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.variable.gnuplot",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#InvalidVariableDecl"
|
||||
},
|
||||
{
|
||||
"include": "#BuiltinVariable"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"FunctionDecl": {
|
||||
"name": "meta.function.gnuplot",
|
||||
"begin": "\\b(?x:\n\t\t\t\t([A-Za-z_]\\w*)\\s* # 1: func name\n\t\t\t\t( # 2: parameter list\n\t\t\t\t\t(\\()\\s* # 3: opening parens\n\t\t\t\t\t([A-Za-z_]\\w*)\\s* # 4: arg name\n\t\t\t\t\t(?:\n\t\t\t\t\t\t(,)\\s* # 5: comma\n\t\t\t\t\t\t([A-Za-z_]\\w*)\\s* # 6: other args\n\t\t\t\t\t)*\n\t\t\t\t\t(\\)) # 7: closing parens\n\t\t\t\t)\n\t\t\t)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.gnuplot",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#BuiltinFunction"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.function.parameters.gnuplot"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.parameters.begin.gnuplot"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.parameter.function.language.gnuplot"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.separator.parameters.gnuplot"
|
||||
},
|
||||
"6": {
|
||||
"name": "variable.parameter.function.language.gnuplot"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.definition.parameters.end.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"InvalidVariableDecl": {
|
||||
"name": "invalid.illegal.variable.gnuplot",
|
||||
"match": "\\b(GPVAL_\\w*|MOUSE_\\w*)\\b"
|
||||
},
|
||||
"ShellCommand": {
|
||||
"begin": "(!)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.shell.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.unquoted",
|
||||
"match": "([^#]|\\\\(?=\\n))"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Command": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.command.gnuplot",
|
||||
"begin": "\\b(?x:\n\t\t\t\t\t\tupdate\n\t\t\t\t\t)\\b",
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))"
|
||||
},
|
||||
{
|
||||
"begin": "\\b(?x:\n\t\t\t\t\t\tbreak |\n\t\t\t\t\t\tclear |\n\t\t\t\t\t\tcontinue |\n\t\t\t\t\t\tpwd |\n\t\t\t\t\t\trefresh |\n\t\t\t\t\t\treplot |\n\t\t\t\t\t\treread |\n\t\t\t\t\t\tshell\n\t\t\t\t\t)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#InvalidWord"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(?x:\n\t\t\t\t\t\tcd |\n\t\t\t\t\t\tcall |\n\t\t\t\t\t\teval |\n\t\t\t\t\t\texit |\n\t\t\t\t\t\thelp |\n\t\t\t\t\t\thistory |\n\t\t\t\t\t\tload |\n\t\t\t\t\t\tlower |\n\t\t\t\t\t\tpause |\n\t\t\t\t\t\tprint |\n\t\t\t\t\t\tprinterr |\n\t\t\t\t\t\tquit |\n\t\t\t\t\t\traise |\n\t\t\t\t\t\tsave |\n\t\t\t\t\t\tstats |\n\t\t\t\t\t\tsystem |\n\t\t\t\t\t\ttest |\n\t\t\t\t\t\ttoggle\n\t\t\t\t\t)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(import)\\s(.+)\\s(from)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.import.gnuplot"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#FunctionDecl"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.control.import.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#SingleQuotedStringLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#DoubleQuotedStringLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#InvalidWord"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(reset)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "support.class.reset.gnuplot",
|
||||
"match": "\\b(bind|error(state)?|session)\\b"
|
||||
},
|
||||
{
|
||||
"include": "#InvalidWord"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(undefine)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#BuiltinVariable"
|
||||
},
|
||||
{
|
||||
"include": "#BuiltinFunction"
|
||||
},
|
||||
{
|
||||
"name": "source.gnuplot",
|
||||
"match": "(?<=\\s)([$]?[A-Za-z_]\\w*\\*?)(?=\\s)"
|
||||
},
|
||||
{
|
||||
"include": "#InvalidWord"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(if|while)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(else)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))"
|
||||
},
|
||||
{
|
||||
"begin": "\\b(do)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.flow.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(\\{|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#ForIterationExpr"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(set)(?=\\s+pm3d)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.options.gnuplot",
|
||||
"match": "\\b(hidden3d|map|transparent|solid)\\b"
|
||||
},
|
||||
{
|
||||
"include": "#SetUnsetOptions"
|
||||
},
|
||||
{
|
||||
"include": "#ForIterationExpr"
|
||||
},
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b((un)?set)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#SetUnsetOptions"
|
||||
},
|
||||
{
|
||||
"include": "#ForIterationExpr"
|
||||
},
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(show)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#ExtraShowOptions"
|
||||
},
|
||||
{
|
||||
"include": "#SetUnsetOptions"
|
||||
},
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\b(fit|(s)?plot)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.command.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(;|#|\\\\(?!\\n)|(?<!\\\\)\\n$))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#ColumnIndexLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#PlotModifiers"
|
||||
},
|
||||
{
|
||||
"include": "#ForIterationExpr"
|
||||
},
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"SetUnsetOptions": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.options.gnuplot",
|
||||
"match": "\\G\\s*\\b(?x:\n\t\t\t\t\t\tclabel |\n\t\t\t\t\t\tdata |\n\t\t\t\t\t\tfunction |\n\t\t\t\t\t\thistorysize |\n\t\t\t\t\t\tmacros |\n\t\t\t\t\t\tticslevel |\n\t\t\t\t\t\tticscale |\n\t\t\t\t\t\t(style\\s+increment\\s+\\w+)\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.class.options.gnuplot",
|
||||
"match": "\\G\\s*\\b(?x:\n\t\t\t\t\t\tangles |\n\t\t\t\t\t\tarrow |\n\t\t\t\t\t\tautoscale |\n\t\t\t\t\t\tborder |\n\t\t\t\t\t\tboxwidth |\n\t\t\t\t\t\tclip |\n\t\t\t\t\t\tcntr(label|param) |\n\t\t\t\t\t\tcolor(box|sequence)?|\n\t\t\t\t\t\tcontour |\n\t\t\t\t\t\t(dash|line)type |\n\t\t\t\t\t\tdatafile |\n\t\t\t\t\t\tdecimal(sign)? |\n\t\t\t\t\t\tdgrid3d |\n\t\t\t\t\t\tdummy |\n\t\t\t\t\t\tencoding |\n\t\t\t\t\t\t(error)?bars |\n\t\t\t\t\t\tfit |\n\t\t\t\t\t\tfontpath |\n\t\t\t\t\t\tformat |\n\t\t\t\t\t\tgrid |\n\t\t\t\t\t\thidden3d |\n\t\t\t\t\t\thistory |\n\t\t\t\t\t\t(iso)?samples |\n\t\t\t\t\t\tjitter |\n\t\t\t\t\t\tkey |\n\t\t\t\t\t\tlabel |\n\t\t\t\t\t\tlink |\n\t\t\t\t\t\tloadpath |\n\t\t\t\t\t\tlocale |\n\t\t\t\t\t\tlogscale |\n\t\t\t\t\t\tmapping |\n\t\t\t\t\t\t[lrtb]margin |\n\t\t\t\t\t\tmargins |\n\t\t\t\t\t\tmicro |\n\t\t\t\t\t\tminus(sign)? |\n\t\t\t\t\t\tmono(chrome)? |\n\t\t\t\t\t\tmouse |\n\t\t\t\t\t\tmultiplot |\n\t\t\t\t\t\tnonlinear |\n\t\t\t\t\t\tobject |\n\t\t\t\t\t\toffsets |\n\t\t\t\t\t\torigin |\n\t\t\t\t\t\toutput |\n\t\t\t\t\t\tparametric |\n\t\t\t\t\t\t(p|r)axis |\n\t\t\t\t\t\tpm3d |\n\t\t\t\t\t\tpalette |\n\t\t\t\t\t\tpointintervalbox |\n\t\t\t\t\t\tpointsize |\n\t\t\t\t\t\tpolar |\n\t\t\t\t\t\tprint |\n\t\t\t\t\t\tpsdir |\n\t\t\t\t\t\tsize |\n\t\t\t\t\t\tstyle |\n\t\t\t\t\t\tsurface |\n\t\t\t\t\t\ttable |\n\t\t\t\t\t\tterminal |\n\t\t\t\t\t\ttermoption |\n\t\t\t\t\t\ttheta |\n\t\t\t\t\t\ttics |\n\t\t\t\t\t\ttimestamp |\n\t\t\t\t\t\ttimefmt |\n\t\t\t\t\t\ttitle |\n\t\t\t\t\t\tview |\n\t\t\t\t\t\txyplane |\n\t\t\t\t\t\tzero |\n\t\t\t\t\t\t(no)?(m)?(x|x2|y|y2|z|cb|r|t)tics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)data |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb|r)label |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)dtics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb)mtics |\n\t\t\t\t\t\t(x|x2|y|y2|z|cb|[rtuv])range |\n\t\t\t\t\t\t(x|x2|y|y2|z)?zeroaxis\n\t\t\t\t\t)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ExtraShowOptions": {
|
||||
"name": "support.class.options.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\tall |\n\t\t\t\tbind |\n\t\t\t\tcolornames |\n\t\t\t\tfunctions |\n\t\t\t\tplot |\n\t\t\t\tvariables |\n\t\t\t\tversion\n\t\t\t)\\b"
|
||||
},
|
||||
"PlotModifiers": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.plot.gnuplot",
|
||||
"match": "\\b(thru)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.plot.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tin(dex)? |\n\t\t\t\t\t\tevery |\n\t\t\t\t\t\tus(ing)? |\n\t\t\t\t\t\twi(th)? |\n\t\t\t\t\t\tvia\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.plot.gnuplot",
|
||||
"match": "\\b(newhist(ogram)?)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"InvalidWord": {
|
||||
"name": "invalid.illegal.gnuplot",
|
||||
"match": "([^;#\\\\[:space:]]+)"
|
||||
},
|
||||
"Expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Literal"
|
||||
},
|
||||
{
|
||||
"include": "#SpecialVariable"
|
||||
},
|
||||
{
|
||||
"include": "#BuiltinVariable"
|
||||
},
|
||||
{
|
||||
"include": "#BuiltinOperator"
|
||||
},
|
||||
{
|
||||
"include": "#TernaryExpr"
|
||||
},
|
||||
{
|
||||
"include": "#FunctionCallExpr"
|
||||
},
|
||||
{
|
||||
"include": "#SummationExpr"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ForIterationExpr": {
|
||||
"begin": "\\b(?x:\n\t\t\t\t(for)\\s* # 1: for keyword\n\t\t\t\t(\\[)\\s* # 2: opening bracket\n\t\t\t\t(?: # optionally\n\t\t\t\t\t([A-Za-z_]\\w*)\\s+ # 3: var name\n\t\t\t\t\t(in)\\b # 4: in keyword\n\t\t\t\t)?\n\t\t\t)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.flow.gnuplot"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.iterator.gnuplot"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.control.flow.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((\\])|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
},
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SummationExpr": {
|
||||
"begin": "\\b(sum)\\s*(\\[)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.sum.gnuplot"
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"end": "((\\])|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
},
|
||||
{
|
||||
"include": "#RangeSeparators"
|
||||
}
|
||||
]
|
||||
},
|
||||
"FunctionCallExpr": {
|
||||
"name": "meta.function-call.gnuplot",
|
||||
"begin": "\\b([A-Za-z_]\\w*)\\s*(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "variable.function.gnuplot",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#BuiltinFunction"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.arguments.begin.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((\\))|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.arguments.end.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"TernaryExpr": {
|
||||
"begin": "(?<!\\?)(\\?)(?!\\?)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.ternary.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((?<!:)(:)(?!:)|(?=(#|\\\\(?!\\n)|(?<!\\\\)\\n$)))",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "keyword.operator.ternary.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"RangeSeparators": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "punctuation.section.brackets.begin.gnuplot",
|
||||
"match": "(\\[)"
|
||||
},
|
||||
{
|
||||
"name": "punctuation.separator.range.gnuplot",
|
||||
"match": "(:)"
|
||||
},
|
||||
{
|
||||
"name": "punctuation.section.brackets.end.gnuplot",
|
||||
"match": "(\\])"
|
||||
}
|
||||
]
|
||||
},
|
||||
"BuiltinOperator": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.logical.gnuplot",
|
||||
"match": "(&&|\\|\\|)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.bitwise.gnuplot",
|
||||
"match": "(<<|>>|&|\\||\\^)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.comparison.gnuplot",
|
||||
"match": "(==|!=|<=|<|>=|>)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.assignment.gnuplot",
|
||||
"match": "(=)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.gnuplot",
|
||||
"match": "(\\+|-|~|!)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.gnuplot",
|
||||
"match": "(\\*\\*|\\+|-|\\*|/|%)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.strings.gnuplot",
|
||||
"match": "(\\.|\\b(eq|ne)\\b)",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "keyword.operator.word.gnuplot"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BuiltinVariable": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.variable.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tFIT_LIMIT |\n\t\t\t\t\t\tFIT_MAXITER |\n\t\t\t\t\t\tFIT_START_LAMBDA |\n\t\t\t\t\t\tFIT_LAMBDA_FACTOR |\n\t\t\t\t\t\tFIT_SKIP |\n\t\t\t\t\t\tFIT_INDEX\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.gnuplot",
|
||||
"match": "\\b(GPVAL_\\w*|MOUSE_\\w*)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.gnuplot",
|
||||
"match": "\\b(ARG[0-9C]|GPFUN_\\w*|FIT_\\w*|STATS_\\w*|pi|NaN)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SpecialVariable": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=[\\[:=])\\s*(\\*)\\s*(?=[:\\]])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.language.wildcard.gnuplot"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "constant.language.special.gnuplot",
|
||||
"match": "(([@$])[A-Za-z_]\\w*)\\b",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.variable.gnuplot"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"BuiltinFunction": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.deprecated.function.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tdefined\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.function.math.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tabs |\n\t\t\t\t\t\tacos |\n\t\t\t\t\t\tacosh |\n\t\t\t\t\t\tairy |\n\t\t\t\t\t\targ |\n\t\t\t\t\t\tasin |\n\t\t\t\t\t\tasinh |\n\t\t\t\t\t\tatan |\n\t\t\t\t\t\tatan2 |\n\t\t\t\t\t\tatanh |\n\t\t\t\t\t\tEllipticK |\n\t\t\t\t\t\tEllipticE |\n\t\t\t\t\t\tEllipticPi |\n\t\t\t\t\t\tbesj0 |\n\t\t\t\t\t\tbesj1 |\n\t\t\t\t\t\tbesy0 |\n\t\t\t\t\t\tbesy1 |\n\t\t\t\t\t\tceil |\n\t\t\t\t\t\tcos |\n\t\t\t\t\t\tcosh |\n\t\t\t\t\t\terf |\n\t\t\t\t\t\terfc |\n\t\t\t\t\t\texp |\n\t\t\t\t\t\texpint |\n\t\t\t\t\t\tfloor |\n\t\t\t\t\t\tgamma |\n\t\t\t\t\t\tibeta |\n\t\t\t\t\t\tinverf |\n\t\t\t\t\t\tigamma |\n\t\t\t\t\t\timag |\n\t\t\t\t\t\tinvnorm |\n\t\t\t\t\t\tint |\n\t\t\t\t\t\tlambertw |\n\t\t\t\t\t\tlgamma |\n\t\t\t\t\t\tlog |\n\t\t\t\t\t\tlog10 |\n\t\t\t\t\t\tnorm |\n\t\t\t\t\t\trand |\n\t\t\t\t\t\treal |\n\t\t\t\t\t\tsgn |\n\t\t\t\t\t\tsin |\n\t\t\t\t\t\tsinh |\n\t\t\t\t\t\tsqrt |\n\t\t\t\t\t\ttan |\n\t\t\t\t\t\ttanh |\n\t\t\t\t\t\tvoigt |\n\t\t\t\t\t\tcerf |\n\t\t\t\t\t\tcdawson |\n\t\t\t\t\t\tfaddeeva |\n\t\t\t\t\t\terfi |\n\t\t\t\t\t\tVP\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.function.string.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tgprintf |\n\t\t\t\t\t\tsprintf |\n\t\t\t\t\t\tstrlen |\n\t\t\t\t\t\tstrstrt |\n\t\t\t\t\t\tsubstr |\n\t\t\t\t\t\tstrftime |\n\t\t\t\t\t\tstrptime |\n\t\t\t\t\t\tsystem |\n\t\t\t\t\t\tword |\n\t\t\t\t\t\twords\n\t\t\t\t\t)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.function.other.gnuplot",
|
||||
"match": "\\b(?x:\n\t\t\t\t\t\tcolumn |\n\t\t\t\t\t\tcolumnhead |\n\t\t\t\t\t\texists |\n\t\t\t\t\t\thsv2rgb |\n\t\t\t\t\t\tstringcolumn |\n\t\t\t\t\t\ttimecolumn |\n\t\t\t\t\t\ttm_hour |\n\t\t\t\t\t\ttm_mday |\n\t\t\t\t\t\ttm_min |\n\t\t\t\t\t\ttm_mon |\n\t\t\t\t\t\ttm_sec |\n\t\t\t\t\t\ttm_wday |\n\t\t\t\t\t\ttm_yday |\n\t\t\t\t\t\ttm_year |\n\t\t\t\t\t\ttime |\n\t\t\t\t\t\tvalid |\n\t\t\t\t\t\tvalue\n\t\t\t\t\t)\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#NumberLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#DeprecatedScriptArgsLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#SingleQuotedStringLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#DoubleQuotedStringLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#InterpolatedStringLiteral"
|
||||
}
|
||||
]
|
||||
},
|
||||
"NumberLiteral": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.float.gnuplot",
|
||||
"match": "(?x:\n\t\t\t\t\t\t# .5e2 and 0.5e2\n\t\t\t\t\t\t( ((\\b[0-9]+)|(?<!\\d)) ) # number or not a preceding digit\n\t\t\t\t\t\t( [.][0-9]+ ) # non-optional fractional\n\t\t\t\t\t\t( [Ee][+-]?[0-9]+ )? # optional exponent\n\t\t\t\t\t)(cm|in)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.float.gnuplot",
|
||||
"match": "(?x:\n\t\t\t\t\t\t# 5e2 and 5.e2\n\t\t\t\t\t\t( \\b[0-9]+ ) # non-optional number\n\t\t\t\t\t\t(\n\t\t\t\t\t\t\t( ( [Ee][+-]?[0-9]+\\b ) ) | # non-optional exponent\n\t\t\t\t\t\t\t( [.] ( [Ee][+-]?[0-9]+\\b )? ) # point and optional exponent\n\t\t\t\t\t\t)\n\t\t\t\t\t)(cm\\b|in\\b)?"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.hex.gnuplot",
|
||||
"match": "\\b(0[Xx][0-9a-fA-F]+)(cm|in)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.dec.gnuplot",
|
||||
"match": "\\b(0+)(cm|in)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.oct.gnuplot",
|
||||
"match": "\\b(0[0-7]+)(cm|in)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "invalid.illegal.oct.gnuplot",
|
||||
"match": "\\b(0[0-9]+)(cm|in)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.dec.gnuplot",
|
||||
"match": "\\b([0-9]+)(cm|in)?\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
"ColumnIndexLiteral": {
|
||||
"name": "support.constant.columnindex.gnuplot",
|
||||
"match": "([$][0-9]+)\\b"
|
||||
},
|
||||
"DeprecatedScriptArgsLiteral": {
|
||||
"name": "invalid.illegal.scriptargs.gnuplot",
|
||||
"match": "([$][0-9#])"
|
||||
},
|
||||
"SingleQuotedStringLiteral": {
|
||||
"name": "string.quoted.single.gnuplot",
|
||||
"begin": "(')",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((')(?!')|(?=(?<!\\\\)\\n$))",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#RGBColorSpec"
|
||||
},
|
||||
{
|
||||
"name": "constant.character.escape.gnuplot",
|
||||
"match": "('')"
|
||||
}
|
||||
]
|
||||
},
|
||||
"DoubleQuotedStringLiteral": {
|
||||
"name": "string.quoted.double.gnuplot",
|
||||
"begin": "(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((\")|(?=(?<!\\\\)\\n$))",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#EscapedChar"
|
||||
},
|
||||
{
|
||||
"include": "#RGBColorSpec"
|
||||
},
|
||||
{
|
||||
"include": "#DeprecatedScriptArgsLiteral"
|
||||
},
|
||||
{
|
||||
"include": "#InterpolatedStringLiteral"
|
||||
}
|
||||
]
|
||||
},
|
||||
"InterpolatedStringLiteral": {
|
||||
"name": "string.interpolated.gnuplot",
|
||||
"begin": "(`)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "((`)|(?=(?<!\\\\)\\n$))",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.gnuplot"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#EscapedChar"
|
||||
}
|
||||
]
|
||||
},
|
||||
"RGBColorSpec": {
|
||||
"name": "constant.other.placeholder.gnuplot",
|
||||
"match": "\\G(0x|#)(([0-9a-fA-F]{6})|([0-9a-fA-F]{8}))\\b"
|
||||
},
|
||||
"EscapedChar": {
|
||||
"name": "constant.character.escape.gnuplot",
|
||||
"match": "(\\\\.)"
|
||||
},
|
||||
"LineComment": {
|
||||
"name": "comment.line.number-sign.gnuplot",
|
||||
"begin": "(#)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.begin.gnuplot"
|
||||
}
|
||||
},
|
||||
"end": "(?=(?<!\\\\)\\n$)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.gnuplot"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,596 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["haml", "html.haml"],
|
||||
"foldingStartMarker": "^\\s*([-%#\\:\\.\\w\\=].*)\\s$",
|
||||
"foldingStopMarker": "^\\s*$",
|
||||
"keyEquivalent": "^~H",
|
||||
"name": "haml",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^(\\s*)==",
|
||||
"contentName": "string.quoted.double.ruby",
|
||||
"end": "$\\n*",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolated_ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):ruby",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.ruby.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.prolog.haml"
|
||||
}
|
||||
},
|
||||
"match": "^(!!!)($|\\s.*)",
|
||||
"name": "meta.prolog.haml"
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):javascript",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "js.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)%script",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "js.inline.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):ruby$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.ruby.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.comment.haml"
|
||||
}
|
||||
},
|
||||
"match": "^(\\s*)(\\/\\[[^\\]].*?$\\n?)",
|
||||
"name": "comment.line.slash.haml"
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(\\-\\#|\\/|\\-\\s*\\/\\*+)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.section.comment.haml"
|
||||
}
|
||||
},
|
||||
"end": "^(?!\\1\\s+|\\n)",
|
||||
"name": "comment.block.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.haml"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(?:((%)([-\\w:]+))|(?=\\.|#))",
|
||||
"end": "$|(?!\\.|#|\\{|\\(|\\[|&|=|-|~|!=|&=|/)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.tag.haml"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.tag.haml"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "==",
|
||||
"contentName": "string.quoted.double.ruby",
|
||||
"end": "$\\n?",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolated_ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.class"
|
||||
}
|
||||
},
|
||||
"match": "(\\.[\\w\\-\\:]+)",
|
||||
"name": "meta.selector.css"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.id"
|
||||
}
|
||||
},
|
||||
"match": "(#[\\w-]+)",
|
||||
"name": "meta.selector.css"
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\\#)\\{(?=.*(,|(do)|\\{|\\}|\\||(\\#.*)|\\R)\\s*)",
|
||||
"end": "\\s*\\}(?!\\s*\\,)(?!\\s*\\|)(?!\\#\\{.*\\})",
|
||||
"name": "meta.section.attributes.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
},
|
||||
{
|
||||
"include": "#continuation"
|
||||
},
|
||||
{
|
||||
"include": "#rubyline"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"name": "meta.section.attributes.plain.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([\\w-]+)",
|
||||
"name": "constant.other.symbol.ruby"
|
||||
},
|
||||
{
|
||||
"match": "\\=",
|
||||
"name": "punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.ruby",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
|
||||
"name": "constant.character.escape.ruby"
|
||||
},
|
||||
{
|
||||
"include": "#interpolated_ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#interpolated_ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\[(?=.+(,|\\[|\\]|\\||(\\#.*))\\s*)",
|
||||
"end": "\\s*\\](?!.*(?!\\#\\[)\\])",
|
||||
"name": "meta.section.object.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
},
|
||||
{
|
||||
"include": "#continuation"
|
||||
},
|
||||
{
|
||||
"include": "#rubyline"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#interpolated_ruby_line"
|
||||
},
|
||||
{
|
||||
"include": "#rubyline"
|
||||
},
|
||||
{
|
||||
"match": "/",
|
||||
"name": "punctuation.terminator.tag.haml"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(ruby|opal)$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.ruby.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):ruby$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.ruby.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(style|sass)$",
|
||||
"end": "^(?=\\1\\s+|$\\n*)",
|
||||
"name": "source.sass.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sass"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):coffee(script)?",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.coffee.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.coffee"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):plain$",
|
||||
"end": "^(?=\\1\\s+|$\\n*)",
|
||||
"name": "text.plain.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.plain"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:ruby)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "keyword.control.filter.haml"
|
||||
}
|
||||
},
|
||||
"end": "(?m:(?<=\\n)(?!\\1\\s+|$\\n*))",
|
||||
"name": "source.ruby.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:sass)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "keyword.control.filter.haml"
|
||||
}
|
||||
},
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "source.embedded.filter.sass",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sass"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):(styles|sass)$",
|
||||
"end": "^(?=\\1\\s+|$\\n*)",
|
||||
"name": "source.sass.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sass"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*):plain$",
|
||||
"end": "^(?=\\1\\s+|$\\n*)",
|
||||
"name": "text.plain.embedded.filter.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.plain"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.escape.haml"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(\\.)"
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(?==|-|~|!=|&=)",
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolated_ruby_line"
|
||||
},
|
||||
{
|
||||
"include": "#rubyline"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:php)",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "meta.embedded.php",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.php#language"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:markdown)",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "meta.embedded.markdown",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:(css|styles?))$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "meta.embedded.css",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:sass)$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "meta.embedded.sass",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sass"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^(\\s*)(:scss)$",
|
||||
"end": "^(?!\\1\\s+|$\\n*)",
|
||||
"name": "meta.embedded.scss",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.tag.haml"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.scss"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"continuation": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.continuation.haml"
|
||||
}
|
||||
},
|
||||
"match": "(\\|)\\s*\\n"
|
||||
},
|
||||
"interpolated_ruby": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.ruby"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.ruby.embedded.source.empty"
|
||||
}
|
||||
},
|
||||
"match": "#\\{(\\})",
|
||||
"name": "source.ruby.embedded.source"
|
||||
},
|
||||
{
|
||||
"begin": "#\\{",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.ruby"
|
||||
}
|
||||
},
|
||||
"end": "(\\})",
|
||||
"name": "source.ruby.embedded.source",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nest_curly_and_self"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
"interpolated_ruby_line": {
|
||||
"begin": "!?==",
|
||||
"contentName": "string.source.ruby.embedded.haml",
|
||||
"end": "$",
|
||||
"name": "meta.line.ruby.interpolated.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolated_ruby"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby#escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
"nest_curly_and_self": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\{",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.scope.ruby"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#nest_curly_and_self"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.ruby"
|
||||
}
|
||||
},
|
||||
"match": "(#@)[a-zA-Z_]\\w*",
|
||||
"name": "variable.other.readwrite.instance.ruby"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.ruby"
|
||||
}
|
||||
},
|
||||
"match": "(#@@)[a-zA-Z_]\\w*",
|
||||
"name": "variable.other.readwrite.class.ruby"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.ruby"
|
||||
}
|
||||
},
|
||||
"match": "(#\\$)[a-zA-Z_]\\w*",
|
||||
"name": "variable.other.readwrite.global.ruby"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rubyline": {
|
||||
"begin": "(&|!)?(=|-|~)",
|
||||
"contentName": "source.ruby.embedded.haml",
|
||||
"end": "((do|\\{)( \\|[.*]+\\|)?)$|$|^(?!.*\\|\\s*)$\\n?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "source.ruby.embedded.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.ruby.start-block"
|
||||
}
|
||||
},
|
||||
"name": "meta.line.ruby.haml",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\s+((elseif|foreach|switch|declare|default|use))(?=\\s|\\()",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\s+(require_once|include_once)(?=\\s|\\()",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.import.include.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\s+(catch|try|throw|exception|finally|die)(?=\\s|\\(|\\n*)",
|
||||
"name": "keyword.control.exception.php"
|
||||
},
|
||||
{
|
||||
"match": "\\s+(function\\s*)((?=\\())",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\s+(use\\s*)((?=\\())",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.php"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(\\||,|<|do|\\{)\\s*(\\#.*)?$\\n*",
|
||||
"name": "source.ruby",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#rubyline"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"comment": "Hack to let ruby comments work in this context properly",
|
||||
"match": "#.*$",
|
||||
"name": "comment.line.number-sign.ruby"
|
||||
},
|
||||
{
|
||||
"include": "source.ruby"
|
||||
},
|
||||
{
|
||||
"include": "#continuation"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "text.haml",
|
||||
"uuid": "3D727049-DD05-45DF-92A5-D50EA36FD035"
|
||||
}
|
||||
@ -1,852 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/daaain/Handlebars/blob/master/grammars/Handlebars.json",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/daaain/Handlebars/commit/85a153a6f759df4e8da7533e1b3651f007867c51",
|
||||
"name": "handlebars",
|
||||
"scopeName": "text.html.handlebars",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#yfm"
|
||||
},
|
||||
{
|
||||
"include": "#extends"
|
||||
},
|
||||
{
|
||||
"include": "#block_comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_helper"
|
||||
},
|
||||
{
|
||||
"include": "#end_block"
|
||||
},
|
||||
{
|
||||
"include": "#else_token"
|
||||
},
|
||||
{
|
||||
"include": "#partial_and_var"
|
||||
},
|
||||
{
|
||||
"include": "#inline_script"
|
||||
},
|
||||
{
|
||||
"include": "#html_tags"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"html_tags": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(<)([a-zA-Z0-9:-]+)(?=[^>]*></\\2>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.html"
|
||||
}
|
||||
},
|
||||
"end": "(>(<)/)(\\2)(>)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "meta.scope.between-tag-pair.html"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.tag.html"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"name": "meta.tag.any.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(<\\?)(xml)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.xml.html"
|
||||
}
|
||||
},
|
||||
"end": "(\\?>)",
|
||||
"name": "meta.tag.preprocessor.xml.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_generic_attribute"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "<!--",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.html"
|
||||
}
|
||||
},
|
||||
"end": "--\\s*>",
|
||||
"name": "comment.block.html",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "--",
|
||||
"name": "invalid.illegal.bad-comments-or-CDATA.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "<!",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"end": ">",
|
||||
"name": "meta.tag.sgml.html",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(DOCTYPE|doctype)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.doctype.html"
|
||||
}
|
||||
},
|
||||
"end": "(?=>)",
|
||||
"name": "meta.tag.sgml.doctype.html",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\"[^\">]*\"",
|
||||
"name": "string.quoted.double.doctype.identifiers-and-DTDs.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\[CDATA\\[",
|
||||
"end": "]](?=>)",
|
||||
"name": "constant.other.inline-data.html"
|
||||
},
|
||||
{
|
||||
"match": "(\\s*)(?!--|>)\\S(\\s*)",
|
||||
"name": "invalid.illegal.bad-comments-or-CDATA.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?:^\\s+)?(<)((?i:style))\\b(?![^>]*/>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.style.html"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"end": "(</)((?i:style))(>)(?:\\s*\\n)?",
|
||||
"name": "source.css.embedded.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
},
|
||||
{
|
||||
"begin": "(>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"end": "(?=</(?i:style))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?:^\\s+)?(<)((?i:script))\\b(?![^>]*/>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.script.html"
|
||||
}
|
||||
},
|
||||
"end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"name": "source.js.embedded.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
},
|
||||
{
|
||||
"begin": "(?<!</(?:script|SCRIPT))(>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.script.html"
|
||||
}
|
||||
},
|
||||
"end": "(</)((?i:script))",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.js"
|
||||
}
|
||||
},
|
||||
"match": "(//).*?((?=</script)|$\\n?)",
|
||||
"name": "comment.line.double-slash.js"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.js"
|
||||
}
|
||||
},
|
||||
"end": "\\*/|(?=</script)",
|
||||
"name": "comment.block.js"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(</?)((?i:body|head|html)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.structure.any.html"
|
||||
}
|
||||
},
|
||||
"end": "(>)",
|
||||
"name": "meta.tag.structure.any.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(</?)((?i:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.block.any.html"
|
||||
}
|
||||
},
|
||||
"end": "(>)",
|
||||
"name": "meta.tag.block.any.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.inline.any.html"
|
||||
}
|
||||
},
|
||||
"end": "((?: ?/)?>)",
|
||||
"name": "meta.tag.inline.any.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(</?)([a-zA-Z0-9:-]+)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.other.html"
|
||||
}
|
||||
},
|
||||
"end": "(>)",
|
||||
"name": "meta.tag.other.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(</?)([a-zA-Z0-9{}:-]+)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.tokenised.html"
|
||||
}
|
||||
},
|
||||
"end": "(>)",
|
||||
"name": "meta.tag.tokenised.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#entities"
|
||||
},
|
||||
{
|
||||
"match": "<>",
|
||||
"name": "invalid.illegal.incomplete.html"
|
||||
},
|
||||
{
|
||||
"match": "<",
|
||||
"name": "invalid.illegal.bad-angle-bracket.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
"entities": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.entity.html"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.entity.html"
|
||||
}
|
||||
},
|
||||
"name": "constant.character.entity.html",
|
||||
"match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)"
|
||||
},
|
||||
{
|
||||
"name": "invalid.illegal.bad-ampersand.html",
|
||||
"match": "&"
|
||||
}
|
||||
]
|
||||
},
|
||||
"end_block": {
|
||||
"begin": "(\\{\\{)(~?/)([a-zA-Z0-9/_\\.-]+)\\s*",
|
||||
"end": "(~?\\}\\})",
|
||||
"name": "meta.function.block.end.handlebars",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
}
|
||||
},
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.constant.handlebars keyword.control"
|
||||
},
|
||||
"3": {
|
||||
"name": "support.constant.handlebars keyword.control"
|
||||
}
|
||||
},
|
||||
"patterns": []
|
||||
},
|
||||
"yfm": {
|
||||
"patterns": [
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.yaml"
|
||||
}
|
||||
],
|
||||
"begin": "(?<!\\s)---\\n$",
|
||||
"end": "^---\\s",
|
||||
"name": "markup.raw.yaml.front-matter"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.annotation.handlebars",
|
||||
"match": "@\\w*"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
],
|
||||
"begin": "\\{\\{!",
|
||||
"end": "\\}\\}",
|
||||
"name": "comment.block.handlebars"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.html"
|
||||
}
|
||||
},
|
||||
"begin": "<!--",
|
||||
"end": "-{2,3}\\s*>",
|
||||
"name": "comment.block.html",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.illegal.bad-comments-or-CDATA.html",
|
||||
"match": "--"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.annotation.handlebars",
|
||||
"match": "@\\w*"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
],
|
||||
"begin": "\\{\\{!--",
|
||||
"end": "--\\}\\}",
|
||||
"name": "comment.block.handlebars"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.html"
|
||||
}
|
||||
},
|
||||
"begin": "<!--",
|
||||
"end": "-{2,3}\\s*>",
|
||||
"name": "comment.block.html",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "invalid.illegal.bad-comments-or-CDATA.html",
|
||||
"match": "--"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_helper": {
|
||||
"begin": "(\\{\\{)(~?\\#)([-a-zA-Z0-9_\\./>]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*",
|
||||
"end": "(~?\\}\\})",
|
||||
"name": "meta.function.block.start.handlebars",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
}
|
||||
},
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.constant.handlebars keyword.control"
|
||||
},
|
||||
"3": {
|
||||
"name": "support.constant.handlebars keyword.control"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
},
|
||||
"5": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"6": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
},
|
||||
"7": {
|
||||
"name": "support.constant.handlebars"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#handlebars_attribute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-single-quoted": {
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.handlebars",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.html"
|
||||
}
|
||||
},
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.html"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped-single-quote"
|
||||
},
|
||||
{
|
||||
"include": "#block_comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_helper"
|
||||
},
|
||||
{
|
||||
"include": "#else_token"
|
||||
},
|
||||
{
|
||||
"include": "#end_block"
|
||||
},
|
||||
{
|
||||
"include": "#partial_and_var"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-single-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#string-double-quoted"
|
||||
}
|
||||
]
|
||||
},
|
||||
"escaped-single-quote": {
|
||||
"name": "constant.character.escape.js",
|
||||
"match": "\\\\'"
|
||||
},
|
||||
"escaped-double-quote": {
|
||||
"name": "constant.character.escape.js",
|
||||
"match": "\\\\\""
|
||||
},
|
||||
"partial_and_var": {
|
||||
"begin": "(\\{\\{~?\\{*(>|!<)*)\\s*(@?[-a-zA-Z0-9$_\\./]+)*",
|
||||
"end": "(~?\\}\\}\\}*)",
|
||||
"name": "meta.function.inline.other.handlebars",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#handlebars_attribute"
|
||||
}
|
||||
]
|
||||
},
|
||||
"handlebars_attribute_name": {
|
||||
"begin": "\\b([-a-zA-Z0-9_\\.]+)\\b=",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
}
|
||||
},
|
||||
"end": "(?='|\"|)",
|
||||
"name": "entity.other.attribute-name.handlebars"
|
||||
},
|
||||
"handlebars_attribute_value": {
|
||||
"begin": "([-a-zA-Z0-9_\\./]+)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
}
|
||||
},
|
||||
"end": "('|\"|)",
|
||||
"name": "entity.other.attribute-value.handlebars",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"handlebars_attribute": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#handlebars_attribute_name"
|
||||
},
|
||||
{
|
||||
"include": "#handlebars_attribute_value"
|
||||
}
|
||||
]
|
||||
},
|
||||
"extends": {
|
||||
"patterns": [
|
||||
{
|
||||
"end": "(\\}\\})",
|
||||
"begin": "(\\{\\{!<)\\s([-a-zA-Z0-9_\\./]+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.handlebars"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.class.handlebars"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.handlebars"
|
||||
}
|
||||
},
|
||||
"name": "meta.preprocessor.handlebars"
|
||||
}
|
||||
]
|
||||
},
|
||||
"else_token": {
|
||||
"begin": "(\\{\\{)(~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\.\\(\\s\\)/]+))?",
|
||||
"end": "(~?\\}\\}\\}*)",
|
||||
"name": "meta.function.inline.else.handlebars",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.constant.handlebars keyword.control"
|
||||
},
|
||||
"3": {
|
||||
"name": "support.constant.handlebars"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.parameter.handlebars"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "support.constant.handlebars"
|
||||
}
|
||||
}
|
||||
},
|
||||
"string-double-quoted": {
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.handlebars",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.html"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.html"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped-double-quote"
|
||||
},
|
||||
{
|
||||
"include": "#block_comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_helper"
|
||||
},
|
||||
{
|
||||
"include": "#else_token"
|
||||
},
|
||||
{
|
||||
"include": "#end_block"
|
||||
},
|
||||
{
|
||||
"include": "#partial_and_var"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inline_script": {
|
||||
"begin": "(?:^\\s+)?(<)((?i:script))\\b(?:.*(type)=([\"'](?:text/x-handlebars-template|text/x-handlebars|text/template|x-tmpl-handlebars)[\"']))(?![^>]*/>)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.script.html"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.other.attribute-name.html"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.quoted.double.html"
|
||||
}
|
||||
},
|
||||
"end": "(?<=</(script|SCRIPT))(>)(?:\\s*\\n)?",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
}
|
||||
},
|
||||
"name": "source.handlebars.embedded.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag-stuff"
|
||||
},
|
||||
{
|
||||
"begin": "(?<!</(?:script|SCRIPT))(>)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.script.html"
|
||||
}
|
||||
},
|
||||
"end": "(</)((?i:script))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#block_comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_helper"
|
||||
},
|
||||
{
|
||||
"include": "#end_block"
|
||||
},
|
||||
{
|
||||
"include": "#else_token"
|
||||
},
|
||||
{
|
||||
"include": "#partial_and_var"
|
||||
},
|
||||
{
|
||||
"include": "#html_tags"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_generic_attribute": {
|
||||
"begin": "\\b([a-zA-Z0-9_-]+)\\b\\s*(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.generic.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.html"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
],
|
||||
"name": "entity.other.attribute-name.html",
|
||||
"end": "(?<='|\"|)"
|
||||
},
|
||||
"tag_id_attribute": {
|
||||
"begin": "\\b(id)\\b\\s*(=)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.id.html"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.html"
|
||||
}
|
||||
},
|
||||
"end": "(?<='|\"|)",
|
||||
"name": "meta.attribute-with-value.id.html",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag-stuff": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_id_attribute"
|
||||
},
|
||||
{
|
||||
"include": "#tag_generic_attribute"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#block_comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_helper"
|
||||
},
|
||||
{
|
||||
"include": "#end_block"
|
||||
},
|
||||
{
|
||||
"include": "#else_token"
|
||||
},
|
||||
{
|
||||
"include": "#partial_and_var"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,780 +0,0 @@
|
||||
{
|
||||
"scopeName": "source.hcl",
|
||||
"name": "hcl",
|
||||
"uuid": "a14187be-98d8-42c1-ac89-bb5eaccf911e",
|
||||
"fileTypes": ["hcl"],
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_definition"
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"attribute_access": {
|
||||
"begin": "\\.(?!\\*)",
|
||||
"end": "[[:alpha:]][\\w-]*|\\d*",
|
||||
"comment": "Matches traversal attribute access such as .attr",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.accessor.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?!null|false|true)[[:alpha:]][\\w-]*",
|
||||
"comment": "Attribute name",
|
||||
"name": "variable.other.member.hcl"
|
||||
},
|
||||
{
|
||||
"match": "\\d+",
|
||||
"comment": "Optional attribute index",
|
||||
"name": "constant.numeric.integer.hcl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"attribute_definition": {
|
||||
"name": "variable.declaration.hcl",
|
||||
"match": "(\\()?(\\b(?!null\\b|false\\b|true\\b)[[:alpha:]][[:alnum:]_-]*)(\\))?\\s*(\\=(?!\\=|\\>))\\s*",
|
||||
"comment": "Identifier \"=\" with optional parens",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.parens.begin.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.readwrite.hcl"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.parens.end.hcl"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.assignment.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"attribute_splat": {
|
||||
"begin": "\\.",
|
||||
"end": "\\*",
|
||||
"comment": "Legacy attribute-only splat",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.accessor.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.splat.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"block": {
|
||||
"name": "meta.block.hcl",
|
||||
"begin": "([\\w][\\-\\w]*)([\\s\\\"\\-\\w]*)(\\{)",
|
||||
"end": "\\}",
|
||||
"comment": "This will match HCL blocks like `thing1 \"one\" \"two\" {` or `thing2 {`",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
|
||||
"comment": "Block type",
|
||||
"name": "entity.name.type.hcl"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[\\\"\\-\\w]+",
|
||||
"comment": "Block label",
|
||||
"name": "variable.other.enummember.hcl"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.block.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.block.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_definition"
|
||||
},
|
||||
{
|
||||
"include": "#block"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"block_inline_comments": {
|
||||
"name": "comment.block.hcl",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"comment": "Inline comments start with the /* sequence and end with the */ sequence, and may have any characters within except the ending sequence. An inline comment is considered equivalent to a whitespace sequence",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"brackets": {
|
||||
"begin": "\\[",
|
||||
"end": "\\]",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.splat.hcl",
|
||||
"match": "\\*",
|
||||
"comment": "Splat operator"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#inline_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#inline_if_expression"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#local_identifiers"
|
||||
}
|
||||
]
|
||||
},
|
||||
"char_escapes": {
|
||||
"name": "constant.character.escape.hcl",
|
||||
"match": "\\\\[nrt\"\\\\]|\\\\u(\\h{8}|\\h{4})",
|
||||
"comment": "Character Escapes"
|
||||
},
|
||||
"comma": {
|
||||
"name": "punctuation.separator.hcl",
|
||||
"match": "\\,",
|
||||
"comment": "Commas - used in certain expressions"
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#hash_line_comments"
|
||||
},
|
||||
{
|
||||
"include": "#double_slash_line_comments"
|
||||
},
|
||||
{
|
||||
"include": "#block_inline_comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"double_slash_line_comments": {
|
||||
"name": "comment.line.double-slash.hcl",
|
||||
"begin": "//",
|
||||
"end": "$\\n?",
|
||||
"comment": "Line comments start with // sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"expressions": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#literal_values"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#tuple_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#object_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#brackets"
|
||||
},
|
||||
{
|
||||
"include": "#objects"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_access"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_splat"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
}
|
||||
]
|
||||
},
|
||||
"for_expression_body": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.word.hcl",
|
||||
"match": "\\bin\\b",
|
||||
"comment": "in keyword"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.conditional.hcl",
|
||||
"match": "\\bif\\b",
|
||||
"comment": "if keyword"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\:"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#local_identifiers"
|
||||
}
|
||||
]
|
||||
},
|
||||
"functions": {
|
||||
"name": "meta.function-call.hcl",
|
||||
"begin": "(\\w+)(\\()",
|
||||
"end": "\\)",
|
||||
"comment": "Built-in function calls",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
|
||||
"name": "support.function.builtin.hcl"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.parens.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
}
|
||||
]
|
||||
},
|
||||
"hash_line_comments": {
|
||||
"name": "comment.line.number-sign.hcl",
|
||||
"begin": "#",
|
||||
"end": "$\\n?",
|
||||
"comment": "Line comments start with # sequence and end with the next newline sequence. A line comment is considered equivalent to a newline sequence",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
"hcl_type_keywords": {
|
||||
"name": "storage.type.hcl",
|
||||
"match": "\\b(any|string|number|bool|list|set|map|tuple|object)\\b",
|
||||
"comment": "Type keywords known to HCL."
|
||||
},
|
||||
"heredoc": {
|
||||
"name": "string.unquoted.heredoc.hcl",
|
||||
"begin": "(\\<\\<\\-?)\\s*(\\w+)\\s*$",
|
||||
"end": "^\\s*\\2\\s*$",
|
||||
"comment": "String Heredoc",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.heredoc.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.heredoc.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.heredoc.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inline_for_expression": {
|
||||
"begin": "(for)\\b",
|
||||
"end": "\\n",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "storage.type.function.hcl",
|
||||
"match": "\\=\\>"
|
||||
},
|
||||
{
|
||||
"include": "#for_expression_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"inline_if_expression": {
|
||||
"begin": "(if)\\b",
|
||||
"end": "\\n",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#local_identifiers"
|
||||
}
|
||||
]
|
||||
},
|
||||
"language_constants": {
|
||||
"name": "constant.language.hcl",
|
||||
"match": "\\b(true|false|null)\\b",
|
||||
"comment": "Language Constants"
|
||||
},
|
||||
"literal_values": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#numeric_literals"
|
||||
},
|
||||
{
|
||||
"include": "#language_constants"
|
||||
},
|
||||
{
|
||||
"include": "#string_literals"
|
||||
},
|
||||
{
|
||||
"include": "#heredoc"
|
||||
},
|
||||
{
|
||||
"include": "#hcl_type_keywords"
|
||||
}
|
||||
]
|
||||
},
|
||||
"local_identifiers": {
|
||||
"name": "variable.other.readwrite.hcl",
|
||||
"match": "\\b(?!null|false|true)[[:alpha:]][[:alnum:]_-]*\\b",
|
||||
"comment": "Local Identifiers"
|
||||
},
|
||||
"numeric_literals": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.numeric.float.hcl",
|
||||
"match": "\\b\\d+([Ee][+-]?)\\d+\\b",
|
||||
"comment": "Integer, no fraction, optional exponent",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.exponent.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.float.hcl",
|
||||
"match": "\\b\\d+(\\.)\\d+(?:([Ee][+-]?)\\d+)?\\b",
|
||||
"comment": "Integer, fraction, optional exponent",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.decimal.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.exponent.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.integer.hcl",
|
||||
"match": "\\b\\d+\\b",
|
||||
"comment": "Integers"
|
||||
}
|
||||
]
|
||||
},
|
||||
"object_for_expression": {
|
||||
"begin": "(\\{)\\s?(for)\\b",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.braces.begin.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.braces.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "storage.type.function.hcl",
|
||||
"match": "\\=\\>"
|
||||
},
|
||||
{
|
||||
"include": "#for_expression_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"object_key_values": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#literal_values"
|
||||
},
|
||||
{
|
||||
"include": "#operators"
|
||||
},
|
||||
{
|
||||
"include": "#tuple_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#object_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#heredoc"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"objects": {
|
||||
"name": "meta.braces.hcl",
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.braces.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.braces.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#objects"
|
||||
},
|
||||
{
|
||||
"include": "#inline_for_expression"
|
||||
},
|
||||
{
|
||||
"include": "#inline_if_expression"
|
||||
},
|
||||
{
|
||||
"match": "\\b((?!null|false|true)[[:alpha:]][[:alnum:]_-]*)\\s*(\\=\\>?)\\s*",
|
||||
"comment": "Literal, named object key",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.mapping.key.hcl variable.other.readwrite.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.hcl",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\=\\>",
|
||||
"name": "storage.type.function.hcl"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\b((\").*(\"))\\s*(\\=)\\s*",
|
||||
"comment": "String object key",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "meta.mapping.key.hcl string.quoted.double.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.hcl"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.string.end.hcl"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.hcl"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.mapping.key.hcl",
|
||||
"begin": "^\\s*\\(",
|
||||
"end": "(\\))\\s*(=|:)\\s*",
|
||||
"comment": "Computed object key (any expression between parens)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.parens.end.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#attribute_access"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_splat"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#object_key_values"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operators": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\>\\="
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\<\\="
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\=\\="
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\!\\="
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.hcl",
|
||||
"match": "\\+"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.hcl",
|
||||
"match": "\\-"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.hcl",
|
||||
"match": "\\*"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.hcl",
|
||||
"match": "\\/"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.arithmetic.hcl",
|
||||
"match": "\\%"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.logical.hcl",
|
||||
"match": "\\&\\&"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.logical.hcl",
|
||||
"match": "\\|\\|"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.logical.hcl",
|
||||
"match": "\\!"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\>"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\<"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\?"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.hcl",
|
||||
"match": "\\.\\.\\."
|
||||
},
|
||||
{
|
||||
"match": "\\:"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parens": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"comment": "Parens - matched *after* function syntax",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_interpolation": {
|
||||
"name": "meta.interpolation.hcl",
|
||||
"begin": "(?<![%$])([%$]{)",
|
||||
"end": "\\}",
|
||||
"comment": "String interpolation",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.interpolation.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.interpolation.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "keyword.operator.template.left.trim.hcl",
|
||||
"match": "\\~\\s",
|
||||
"comment": "Trim left whitespace"
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.template.right.trim.hcl",
|
||||
"match": "\\s\\~",
|
||||
"comment": "Trim right whitespace"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.hcl",
|
||||
"match": "\\b(if|else|endif|for|in|endfor)\\b",
|
||||
"comment": "if/else/endif and for/in/endfor directives"
|
||||
},
|
||||
{
|
||||
"include": "#expressions"
|
||||
},
|
||||
{
|
||||
"include": "#local_identifiers"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_literals": {
|
||||
"name": "string.quoted.double.hcl",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"comment": "Strings",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#char_escapes"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tuple_for_expression": {
|
||||
"begin": "(\\[)\\s?(for)\\b",
|
||||
"end": "\\]",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.brackets.begin.hcl"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.hcl"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.end.hcl"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#for_expression_body"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,217 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/tgjones/shaders-tmLanguage/blob/master/grammars/hlsl.json",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/tgjones/shaders-tmLanguage/commit/87c0dca3a39170dbd7ee7e277db4f915fb2de14a",
|
||||
"name": "hlsl",
|
||||
"scopeName": "source.hlsl",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.block.hlsl",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/"
|
||||
},
|
||||
{
|
||||
"name": "comment.line.double-slash.hlsl",
|
||||
"begin": "//",
|
||||
"end": "$"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "\\b[0-9]+\\.[0-9]*(F|f)?\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "(\\.([0-9]+)(F|f)?)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.decimal.hlsl",
|
||||
"match": "\\b([0-9]+(F|f)?)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.hex.hlsl",
|
||||
"match": "\\b(0(x|X)[0-9a-fA-F]+)\\b"
|
||||
},
|
||||
{
|
||||
"name": "constant.language.hlsl",
|
||||
"match": "\\b(false|true)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.preprocessor.hlsl",
|
||||
"match": "^\\s*#\\s*(define|elif|else|endif|ifdef|ifndef|if|undef|include|line|error|pragma)"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.hlsl",
|
||||
"match": "\\b(break|case|continue|default|discard|do|else|for|if|return|switch|while)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.control.fx.hlsl",
|
||||
"match": "\\b(compile)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.typealias.hlsl",
|
||||
"match": "\\b(typedef)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.basic.hlsl",
|
||||
"match": "\\b(bool([1-4](x[1-4])?)?|double([1-4](x[1-4])?)?|dword|float([1-4](x[1-4])?)?|half([1-4](x[1-4])?)?|int([1-4](x[1-4])?)?|matrix|min10float([1-4](x[1-4])?)?|min12int([1-4](x[1-4])?)?|min16float([1-4](x[1-4])?)?|min16int([1-4](x[1-4])?)?|min16uint([1-4](x[1-4])?)?|unsigned|uint([1-4](x[1-4])?)?|vector|void)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.function.hlsl",
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=[\\s]*\\()"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:BINORMAL[0-9]*|BLENDINDICES[0-9]*|BLENDWEIGHT[0-9]*|COLOR[0-9]*|NORMAL[0-9]*|POSITIONT|POSITION|PSIZE[0-9]*|TANGENT[0-9]*|TEXCOORD[0-9]*|FOG|TESSFACTOR[0-9]*|VFACE|VPOS|DEPTH[0-9]*)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm4.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_ClipDistance[0-9]*|SV_CullDistance[0-9]*|SV_Coverage|SV_Depth|SV_DepthGreaterEqual[0-9]*|SV_DepthLessEqual[0-9]*|SV_InstanceID|SV_IsFrontFace|SV_Position|SV_RenderTargetArrayIndex|SV_SampleIndex|SV_StencilRef|SV_Target[0-7]?|SV_VertexID|SV_ViewportArrayIndex)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm5.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_DispatchThreadID|SV_DomainLocation|SV_GroupID|SV_GroupIndex|SV_GroupThreadID|SV_GSInstanceID|SV_InsideTessFactor|SV_OutputControlPointID|SV_TessFactor)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.semantic.sm5_1.hlsl",
|
||||
"match": "(?<=\\:\\s|\\:)(?i:SV_InnerCoverage|SV_StencilRef)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.hlsl",
|
||||
"match": "\\b(column_major|const|export|extern|globallycoherent|groupshared|inline|inout|in|out|precise|row_major|shared|static|uniform|volatile)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.float.hlsl",
|
||||
"match": "\\b(snorm|unorm)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.postfix.hlsl",
|
||||
"match": "\\b(packoffset|register)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.interpolation.hlsl",
|
||||
"match": "\\b(centroid|linear|nointerpolation|noperspective|sample)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.modifier.geometryshader.hlsl",
|
||||
"match": "\\b(lineadj|line|point|triangle|triangleadj)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.other.hlsl",
|
||||
"match": "\\b(string)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.hlsl",
|
||||
"match": "\\b(AppendStructuredBuffer|Buffer|ByteAddressBuffer|ConstantBuffer|ConsumeStructuredBuffer|InputPatch|OutputPatch)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.rasterizerordered.hlsl",
|
||||
"match": "\\b(RasterizerOrderedBuffer|RasterizerOrderedByteAddressBuffer|RasterizerOrderedStructuredBuffer|RasterizerOrderedTexture1D|RasterizerOrderedTexture1DArray|RasterizerOrderedTexture2D|RasterizerOrderedTexture2DArray|RasterizerOrderedTexture3D)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.rw.hlsl",
|
||||
"match": "\\b(RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture1D|RWTexture1DArray|RWTexture2D|RWTexture2DArray|RWTexture3D)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.object.geometryshader.hlsl",
|
||||
"match": "\\b(LineStream|PointStream|TriangleStream)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.sampler.legacy.hlsl",
|
||||
"match": "\\b(sampler|sampler1D|sampler2D|sampler3D|samplerCUBE|sampler_state)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.sampler.hlsl",
|
||||
"match": "\\b(SamplerState|SamplerComparisonState)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.texture.legacy.hlsl",
|
||||
"match": "\\b(texture2D|textureCUBE)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.texture.hlsl",
|
||||
"match": "\\b(Texture1D|Texture1DArray|Texture2D|Texture2DArray|Texture2DMS|Texture2DMSArray|Texture3D|TextureCube|TextureCubeArray)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.structured.hlsl",
|
||||
"match": "\\b(cbuffer|class|interface|namespace|struct|tbuffer)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.hlsl",
|
||||
"match": "\\b(FALSE|TRUE|NULL)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.type.fx.hlsl",
|
||||
"match": "\\b(BlendState|DepthStencilState|RasterizerState)\\b"
|
||||
},
|
||||
{
|
||||
"name": "storage.type.fx.technique.hlsl",
|
||||
"match": "\\b(technique|Technique|technique10|technique11|pass)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.blendstate.hlsl",
|
||||
"match": "\\b(AlphaToCoverageEnable|BlendEnable|SrcBlend|DestBlend|BlendOp|SrcBlendAlpha|DestBlendAlpha|BlendOpAlpha|RenderTargetWriteMask)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.depthstencilstate.hlsl",
|
||||
"match": "\\b(DepthEnable|DepthWriteMask|DepthFunc|StencilEnable|StencilReadMask|StencilWriteMask|FrontFaceStencilFail|FrontFaceStencilZFail|FrontFaceStencilPass|FrontFaceStencilFunc|BackFaceStencilFail|BackFaceStencilZFail|BackFaceStencilPass|BackFaceStencilFunc)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.rasterizerstate.hlsl",
|
||||
"match": "\\b(FillMode|CullMode|FrontCounterClockwise|DepthBias|DepthBiasClamp|SlopeScaleDepthBias|ZClipEnable|ScissorEnable|MultiSampleEnable|AntiAliasedLineEnable)\\b"
|
||||
},
|
||||
{
|
||||
"name": "meta.object-literal.key.fx.samplerstate.hlsl",
|
||||
"match": "\\b(Filter|AddressU|AddressV|AddressW|MipLODBias|MaxAnisotropy|ComparisonFunc|BorderColor|MinLOD|MaxLOD)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.blend.hlsl",
|
||||
"match": "\\b(?i:ZERO|ONE|SRC_COLOR|INV_SRC_COLOR|SRC_ALPHA|INV_SRC_ALPHA|DEST_ALPHA|INV_DEST_ALPHA|DEST_COLOR|INV_DEST_COLOR|SRC_ALPHA_SAT|BLEND_FACTOR|INV_BLEND_FACTOR|SRC1_COLOR|INV_SRC1_COLOR|SRC1_ALPHA|INV_SRC1_ALPHA)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.blendop.hlsl",
|
||||
"match": "\\b(?i:ADD|SUBTRACT|REV_SUBTRACT|MIN|MAX)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.depthwritemask.hlsl",
|
||||
"match": "\\b(?i:ALL)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.comparisonfunc.hlsl",
|
||||
"match": "\\b(?i:NEVER|LESS|EQUAL|LESS_EQUAL|GREATER|NOT_EQUAL|GREATER_EQUAL|ALWAYS)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.stencilop.hlsl",
|
||||
"match": "\\b(?i:KEEP|REPLACE|INCR_SAT|DECR_SAT|INVERT|INCR|DECR)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.fillmode.hlsl",
|
||||
"match": "\\b(?i:WIREFRAME|SOLID)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.cullmode.hlsl",
|
||||
"match": "\\b(?i:NONE|FRONT|BACK)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.filter.hlsl",
|
||||
"match": "\\b(?i:MIN_MAG_MIP_POINT|MIN_MAG_POINT_MIP_LINEAR|MIN_POINT_MAG_LINEAR_MIP_POINT|MIN_POINT_MAG_MIP_LINEAR|MIN_LINEAR_MAG_MIP_POINT|MIN_LINEAR_MAG_POINT_MIP_LINEAR|MIN_MAG_LINEAR_MIP_POINT|MIN_MAG_MIP_LINEAR|ANISOTROPIC|COMPARISON_MIN_MAG_MIP_POINT|COMPARISON_MIN_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_POINT_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_POINT_MAG_MIP_LINEAR|COMPARISON_MIN_LINEAR_MAG_MIP_POINT|COMPARISON_MIN_LINEAR_MAG_POINT_MIP_LINEAR|COMPARISON_MIN_MAG_LINEAR_MIP_POINT|COMPARISON_MIN_MAG_MIP_LINEAR|COMPARISON_ANISOTROPIC|TEXT_1BIT)\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.constant.property-value.fx.textureaddressmode.hlsl",
|
||||
"match": "\\b(?i:WRAP|MIRROR|CLAMP|BORDER|MIRROR_ONCE)\\b"
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.hlsl",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.hlsl",
|
||||
"match": "\\\\."
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,297 +0,0 @@
|
||||
{
|
||||
"scopeName": "source.http",
|
||||
"fileTypes": ["http", "rest"],
|
||||
"keyEquivalent": "^~H",
|
||||
"name": "http",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^\\s*(?=curl)",
|
||||
"name": "http.request.curl",
|
||||
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "comment.line.sharp.http"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.shell"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\s*(?=(\\[|{[^{]))",
|
||||
"name": "http.request.body.json",
|
||||
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "comment.line.sharp.http"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(?=<\\S)",
|
||||
"name": "http.request.body.xml",
|
||||
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "comment.line.sharp.http"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.xml"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\s*(?=(query|mutation))",
|
||||
"name": "http.request.body.graphql",
|
||||
"end": "^\\s*(\\#{3,}.*?)?\\s*$",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "comment.line.sharp.http"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.graphql"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\s*(?=(query|mutation))",
|
||||
"name": "http.request.body.graphql",
|
||||
"end": "^\\{\\s*$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.graphql"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#metadata"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.http"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.http"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(@)([^\\s=]+)\\s*=\\s*(.*?)\\s*$",
|
||||
"name": "http.filevariable"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.http"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.http"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(\\?|&)([^=\\s]+)=(.*)$",
|
||||
"name": "http.query"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.http"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.http"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"match": "^([\\w\\-]+)\\s*(\\:)\\s*([^/].*?)\\s*$",
|
||||
"name": "http.headers"
|
||||
},
|
||||
{
|
||||
"include": "#request-line"
|
||||
},
|
||||
{
|
||||
"include": "#response-line"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"metadata": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^\\s*\\#{1,}\\s+(?:((@)name)\\s+([^\\s\\.]+))$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.type.http"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.sharp.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\/{2,}\\s+(?:((@)name)\\s+([^\\s\\.]+))$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.type.http"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.double-slash.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\#{1,}\\s+((@)note)\\s*$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.sharp.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\/{2,}\\s+((@)note)\\s*$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.double-slash.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\#{1,}\\s+(?:((@)prompt)\\s+([^\\s]+)(?:\\s+(.*))?\\s*)$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.http"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.sharp.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\/{2,}\\s+(?:((@)prompt)\\s+([^\\s]+)(?:\\s+(.*))?\\s*)$",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.block.tag.metadata"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.http"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"name": "comment.line.double-slash.http"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^\\s*\\#{1,}.*$",
|
||||
"name": "comment.line.sharp.http"
|
||||
},
|
||||
{
|
||||
"match": "^\\s*\\/{2,}.*$",
|
||||
"name": "comment.line.double-slash.http"
|
||||
}
|
||||
]
|
||||
},
|
||||
"request-line": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.http"
|
||||
},
|
||||
"2": {
|
||||
"name": "const.language.http"
|
||||
},
|
||||
"3": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#protocol"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"match": "(?i)^(?:(get|post|put|delete|patch|head|options|connect|trace)\\s+)?\\s*(.+?)(?:\\s+(HTTP\\/\\S+))?$",
|
||||
"name": "http.requestline"
|
||||
},
|
||||
"response-line": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#protocol"
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.numeric.http"
|
||||
},
|
||||
"3": {
|
||||
"name": "string.other.http"
|
||||
}
|
||||
},
|
||||
"match": "(?i)^\\s*(HTTP\\/\\S+)\\s([1-5][0-9][0-9])\\s(.*)$",
|
||||
"name": "http.responseLine"
|
||||
},
|
||||
"protocol": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.http"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.numeric.http"
|
||||
}
|
||||
},
|
||||
"name": "http.version",
|
||||
"match": "(HTTP)/(\\d+.\\d+)"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,113 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/textmate/ini.tmbundle/blob/master/Syntaxes/Ini.plist",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/textmate/ini.tmbundle/commit/2af0cbb0704940f967152616f2f1ff0aae6287a6",
|
||||
"name": "ini",
|
||||
"scopeName": "source.ini",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=#)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.ini"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "#",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ini"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.number-sign.ini"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=;)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.ini"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": ";",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.ini"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.semicolon.ini"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.definition.ini"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.ini"
|
||||
}
|
||||
},
|
||||
"match": "\\b([a-zA-Z0-9_.-]+)\\b\\s*(=)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.entity.ini"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.entity.ini"
|
||||
}
|
||||
},
|
||||
"match": "^(\\[)(.*?)(\\])",
|
||||
"name": "entity.name.section.group-title.ini"
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.ini"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.ini"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.ini",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.ini"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.ini"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.ini"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.ini"
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@ -1,16 +0,0 @@
|
||||
{
|
||||
"name": "jinja-html",
|
||||
"scopeName": "text.html.jinja",
|
||||
"comment": "Jinja HTML Templates",
|
||||
"firstLineMatch": "^{% extends [\"'][^\"']+[\"'] %}",
|
||||
"foldingStartMarker": "(<(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%\\s*(block|filter|for|if|macro|raw))",
|
||||
"foldingStopMarker": "(</(?i:(head|table|tr|div|style|script|ul|ol|form|dl))\\b.*?>|{%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.jinja"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
}
|
||||
@ -1,345 +0,0 @@
|
||||
{
|
||||
"name": "jinja",
|
||||
"scopeName": "source.jinja",
|
||||
"comment": "Jinja Templates",
|
||||
"foldingStartMarker": "({%\\s*(block|filter|for|if|macro|raw))",
|
||||
"foldingStopMarker": "({%\\s*(endblock|endfilter|endfor|endif|endmacro|endraw)\\s*%})",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "({%)\\s*(raw)\\s*(%})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
}
|
||||
},
|
||||
"end": "({%)\\s*(endraw)\\s*(%})",
|
||||
"name": "comment.block.jinja.raw"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": "{{-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "variable.entity.other.jinja.delimiter"
|
||||
}
|
||||
],
|
||||
"end": "-?}}",
|
||||
"name": "variable.meta.scope.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "{%-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "entity.other.jinja.delimiter.tag"
|
||||
}
|
||||
],
|
||||
"end": "-?%}",
|
||||
"name": "meta.scope.jinja.tag",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comments": {
|
||||
"begin": "{#-?",
|
||||
"captures": [
|
||||
{
|
||||
"name": "entity.other.jinja.delimiter.comment"
|
||||
}
|
||||
],
|
||||
"end": "-?#}",
|
||||
"name": "comment.block.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"escaped_char": {
|
||||
"match": "\\\\x[0-9A-F]{2}",
|
||||
"name": "constant.character.escape.hex.jinja"
|
||||
},
|
||||
"escaped_unicode_char": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.unicode.16-bit-hex.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.character.escape.unicode.32-bit-hex.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.character.escape.unicode.name.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\U[0-9A-Fa-f]{8})|(\\\\u[0-9A-Fa-f]{4})|(\\\\N\\{[a-zA-Z ]+\\})"
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.block"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(block)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.filter"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(filter)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.test"
|
||||
}
|
||||
},
|
||||
"match": "\\s*\\b(is)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\b"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(?<=\\{\\%-|\\{\\%)\\s*\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*[,=])"
|
||||
},
|
||||
{
|
||||
"match": "\\b(and|else|if|in|import|not|or|recursive|with(out)?\\s+context)\\b",
|
||||
"name": "keyword.control.jinja"
|
||||
},
|
||||
{
|
||||
"match": "\\b(true|false|none)\\b",
|
||||
"name": "constant.language.jinja"
|
||||
},
|
||||
{
|
||||
"match": "\\b(loop|super|self|varargs|kwargs)\\b",
|
||||
"name": "variable.language.jinja"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
|
||||
"name": "variable.other.jinja"
|
||||
},
|
||||
{
|
||||
"match": "(\\+|\\-|\\*\\*|\\*|//|/|%)",
|
||||
"name": "keyword.operator.arithmetic.jinja"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.filter"
|
||||
}
|
||||
},
|
||||
"match": "(\\|)([a-zA-Z_][a-zA-Z0-9_]*)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "variable.other.jinja.attribute"
|
||||
}
|
||||
},
|
||||
"match": "(\\.)([a-zA-Z_][a-zA-Z0-9_]*)"
|
||||
},
|
||||
{
|
||||
"begin": "\\[",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\]",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\{",
|
||||
"captures": [
|
||||
{
|
||||
"name": "punctuation.other.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\\}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(\\.|:|\\||,)",
|
||||
"name": "punctuation.other.jinja"
|
||||
},
|
||||
{
|
||||
"match": "(==|<=|=>|<|>|!=)",
|
||||
"name": "keyword.operator.comparison.jinja"
|
||||
},
|
||||
{
|
||||
"match": "=",
|
||||
"name": "keyword.operator.assignment.jinja"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "\"",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.quoted.double.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "'",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.string.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.quoted.single.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "@/",
|
||||
"beginCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.regexp.begin.jinja"
|
||||
}
|
||||
],
|
||||
"end": "/",
|
||||
"endCaptures": [
|
||||
{
|
||||
"name": "punctuation.definition.regexp.end.jinja"
|
||||
}
|
||||
],
|
||||
"name": "string.regexp.jinja",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#simple_escapes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"simple_escapes": {
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.character.escape.newline.jinja"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.character.escape.backlash.jinja"
|
||||
},
|
||||
"3": {
|
||||
"name": "constant.character.escape.double-quote.jinja"
|
||||
},
|
||||
"4": {
|
||||
"name": "constant.character.escape.single-quote.jinja"
|
||||
},
|
||||
"5": {
|
||||
"name": "constant.character.escape.bell.jinja"
|
||||
},
|
||||
"6": {
|
||||
"name": "constant.character.escape.backspace.jinja"
|
||||
},
|
||||
"7": {
|
||||
"name": "constant.character.escape.formfeed.jinja"
|
||||
},
|
||||
"8": {
|
||||
"name": "constant.character.escape.linefeed.jinja"
|
||||
},
|
||||
"9": {
|
||||
"name": "constant.character.escape.return.jinja"
|
||||
},
|
||||
"10": {
|
||||
"name": "constant.character.escape.tab.jinja"
|
||||
},
|
||||
"11": {
|
||||
"name": "constant.character.escape.vertical-tab.jinja"
|
||||
}
|
||||
},
|
||||
"match": "(\\\\\\n)|(\\\\\\\\)|(\\\\\\\")|(\\\\')|(\\\\a)|(\\\\b)|(\\\\f)|(\\\\n)|(\\\\r)|(\\\\t)|(\\\\v)"
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#simple_escapes"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#escaped_unicode_char"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,712 +0,0 @@
|
||||
{
|
||||
"name": "jison",
|
||||
"scopeName": "source.jison",
|
||||
"fileTypes": ["jison"],
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "%%",
|
||||
"end": "\\z",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.separator.section.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "%%",
|
||||
"end": "\\z",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.separator.section.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.section.epilogue.jison",
|
||||
"begin": "\\G",
|
||||
"end": "\\z",
|
||||
"contentName": "source.js.embedded.jison",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#epilogue_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.section.rules.jison",
|
||||
"begin": "\\G",
|
||||
"end": "(?=%%)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#rules_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.section.declarations.jison",
|
||||
"begin": "^",
|
||||
"end": "(?=%%)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#declarations_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"declarations_section": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(%lex)\\s*$",
|
||||
"end": "^\\s*(/lex)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.lexer.begin.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.lexer.end.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "%%",
|
||||
"end": "(?=/lex)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.separator.section.jisonlex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^%%",
|
||||
"end": "(?=/lex)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.separator.section.jisonlex"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.section.user-code.jisonlex",
|
||||
"begin": "\\G",
|
||||
"end": "(?=/lex)",
|
||||
"contentName": "source.js.embedded.jisonlex",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.jisonlex#user_code_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.section.rules.jisonlex",
|
||||
"begin": "\\G",
|
||||
"end": "^(?=%%|/lex)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.jisonlex#rules_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.section.definitions.jisonlex",
|
||||
"begin": "^",
|
||||
"end": "(?=%%|/lex)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.jisonlex#definitions_section"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.section.prologue.jison",
|
||||
"begin": "(?=%\\{)",
|
||||
"end": "(?<=%\\})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#user_code_blocks"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#options_declarations"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.declaration.$1.jison",
|
||||
"match": "%(ebnf|left|nonassoc|parse-param|right|start)\\b"
|
||||
},
|
||||
{
|
||||
"include": "#include_declarations"
|
||||
},
|
||||
{
|
||||
"name": "meta.code.jison",
|
||||
"begin": "%(code)\\b",
|
||||
"end": "$",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.declaration.$1.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#rule_actions"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.code-qualifier.$1.jison",
|
||||
"match": "(init|required)"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "string.unquoted.jison",
|
||||
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.parser-type.jison",
|
||||
"begin": "%(parser-type)\\b",
|
||||
"end": "$",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.declaration.$1.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "string.unquoted.jison",
|
||||
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.token.jison",
|
||||
"begin": "%(token)\\b",
|
||||
"end": "$|(%%|;)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.declaration.$1.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.terminator.declaration.token.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "invalid.unimplemented.jison",
|
||||
"match": "<[[:alpha:]_](?:[\\w-]*\\w)?>"
|
||||
},
|
||||
{
|
||||
"name": "entity.other.token.jison",
|
||||
"match": "\\S+"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.declaration.$1.jison",
|
||||
"match": "%(debug|import)\\b"
|
||||
},
|
||||
{
|
||||
"name": "invalid.illegal.jison",
|
||||
"match": "%prec\\b"
|
||||
},
|
||||
{
|
||||
"name": "invalid.unimplemented.jison",
|
||||
"match": "%[[:alpha:]_](?:[\\w-]*\\w)?\\b"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
}
|
||||
]
|
||||
},
|
||||
"rules_section": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#actions"
|
||||
},
|
||||
{
|
||||
"include": "#include_declarations"
|
||||
},
|
||||
{
|
||||
"name": "meta.rule.jison",
|
||||
"begin": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b",
|
||||
"end": ";",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "entity.name.constant.rule-result.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.terminator.rule.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"name": "meta.rule-components.jison",
|
||||
"begin": ":",
|
||||
"end": "(?=;)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.rule-components.assignment.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"match": "(\\[)([[:alpha:]_](?:[\\w-]*\\w)?)(\\])",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.named-reference.begin.jison"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.other.reference.jison"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.named-reference.end.jison"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "meta.prec.jison",
|
||||
"begin": "(%(prec))\\s*",
|
||||
"end": "(?<=['\"])|(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.$2.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "constant.other.token.jison",
|
||||
"begin": "(?=\\S)",
|
||||
"end": "(?=\\s)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "keyword.operator.rule-components.separator.jison",
|
||||
"match": "\\|"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.$0.jison",
|
||||
"match": "\\b(?:EOF|error)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.empty.jison",
|
||||
"match": "(?:%(?:e(?:mpty|psilon))|\\b[Ɛɛεϵ])\\b"
|
||||
},
|
||||
{
|
||||
"include": "#rule_actions"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"epilogue_section": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#user_code_include_declarations"
|
||||
},
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"actions": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.action.jison",
|
||||
"begin": "\\{\\{",
|
||||
"end": "\\}\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.action.begin.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.action.end.jison"
|
||||
}
|
||||
},
|
||||
"contentName": "source.js.embedded.jison",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "meta.action.jison",
|
||||
"begin": "(?=%\\{)",
|
||||
"end": "(?<=%\\})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#user_code_blocks"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"rule_actions": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#actions"
|
||||
},
|
||||
{
|
||||
"name": "meta.action.jison",
|
||||
"begin": "\\{",
|
||||
"end": "\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.action.begin.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.action.end.jison"
|
||||
}
|
||||
},
|
||||
"contentName": "source.js.embedded.jison",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#include_declarations"
|
||||
},
|
||||
{
|
||||
"name": "meta.action.jison",
|
||||
"begin": "->|→",
|
||||
"end": "$",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.action.arrow.jison"
|
||||
}
|
||||
},
|
||||
"contentName": "source.js.embedded.jison",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.line.double-slash.jison",
|
||||
"begin": "//",
|
||||
"end": "$",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.jison"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "comment.block.jison",
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.jison"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"include_declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.include.jison",
|
||||
"begin": "(%(include))\\s*",
|
||||
"end": "(?<=['\"])|(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.declaration.$2.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#include_paths"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"user_code_include_declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.include.jison",
|
||||
"begin": "^(%(include))\\s*",
|
||||
"end": "(?<=['\"])|(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.declaration.$2.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#include_paths"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"include_paths": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "string.unquoted.jison",
|
||||
"begin": "(?=\\S)",
|
||||
"end": "(?=\\s)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js#string_escapes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"numbers": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(0[Xx])([0-9A-Fa-f]+)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.number.jison"
|
||||
},
|
||||
"2": {
|
||||
"name": "constant.numeric.integer.hexadecimal.jison"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "constant.numeric.integer.decimal.jison",
|
||||
"match": "\\d+"
|
||||
}
|
||||
]
|
||||
},
|
||||
"options_declarations": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.options.jison",
|
||||
"begin": "%options\\b",
|
||||
"end": "^(?=\\S|\\s*$)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.other.options.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"name": "entity.name.constant.jison",
|
||||
"match": "\\b[[:alpha:]_](?:[\\w-]*\\w)?\\b"
|
||||
},
|
||||
{
|
||||
"begin": "(=)\\s*",
|
||||
"end": "(?<=['\"])|(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.option.assignment.jison"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"name": "constant.language.boolean.$1.jison",
|
||||
"match": "\\b(true|false)\\b"
|
||||
},
|
||||
{
|
||||
"include": "#numbers"
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
},
|
||||
{
|
||||
"name": "string.unquoted.jison",
|
||||
"match": "\\S+"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#quoted_strings"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"quoted_strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "string.quoted.double.jison",
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js#string_escapes"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.single.jison",
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js#string_escapes"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"user_code_blocks": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "meta.user-code-block.jison",
|
||||
"begin": "%\\{",
|
||||
"end": "%\\}",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.user-code-block.begin.jison"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.user-code-block.end.jison"
|
||||
}
|
||||
},
|
||||
"contentName": "source.js.embedded.jison",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"injections": {
|
||||
"L:(meta.action.jison - (comment | string)), source.js.embedded.jison - (comment | string), source.js.embedded.source - (comment | string.quoted.double | string.quoted.single)": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "variable.language.semantic-value.jison",
|
||||
"match": "\\${2}"
|
||||
},
|
||||
{
|
||||
"name": "variable.language.result-location.jison",
|
||||
"match": "@\\$"
|
||||
},
|
||||
{
|
||||
"name": "variable.language.stack-index-0.jison",
|
||||
"match": "##\\$|\\byysp\\b"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.token-reference.jison",
|
||||
"match": "#\\S+#"
|
||||
},
|
||||
{
|
||||
"name": "variable.language.result-id.jison",
|
||||
"match": "#\\$"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.token-value.jison",
|
||||
"match": "\\$(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.token-location.jison",
|
||||
"match": "@(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.stack-index.jison",
|
||||
"match": "##(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
|
||||
},
|
||||
{
|
||||
"name": "support.variable.token-id.jison",
|
||||
"match": "#(?:-?\\d+|[[:alpha:]_](?:[\\w-]*\\w)?)"
|
||||
},
|
||||
{
|
||||
"name": "variable.language.jison",
|
||||
"match": "\\byy(?:l(?:eng|ineno|oc|stack)|rulelength|s(?:tate|s?tack)|text|vstack)\\b"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.jison",
|
||||
"match": "\\byy(?:clearin|erro[kr])\\b"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,213 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
|
||||
"name": "json",
|
||||
"scopeName": "source.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"array": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.begin.json"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.end.json"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.array.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.array.json"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\]]",
|
||||
"name": "invalid.illegal.expected-array-separator.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*\\*(?!/)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.documentation.json"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.json"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.json"
|
||||
}
|
||||
},
|
||||
"match": "(//).*$\\n?",
|
||||
"name": "comment.line.double-slash.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"constant": {
|
||||
"match": "\\b(?:true|false|null)\\b",
|
||||
"name": "constant.language.json"
|
||||
},
|
||||
"number": {
|
||||
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
|
||||
"name": "constant.numeric.json"
|
||||
},
|
||||
"object": {
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.begin.json"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.end.json"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.json",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "the JSON object key",
|
||||
"include": "#objectkey"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.dictionary.key-value.json"
|
||||
}
|
||||
},
|
||||
"end": "(,)|(?=\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.dictionary.pair.json"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.value.json",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "the JSON object value",
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s,]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\}]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.json"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.json"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#stringcontent"
|
||||
}
|
||||
]
|
||||
},
|
||||
"objectkey": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.support.type.property-name.begin.json"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.support.type.property-name.end.json"
|
||||
}
|
||||
},
|
||||
"name": "string.json support.type.property-name.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#stringcontent"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stringcontent": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
|
||||
"name": "constant.character.escape.json"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unrecognized-string-escape.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#constant"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#array"
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,241 +0,0 @@
|
||||
{
|
||||
"scopeName": "source.json5",
|
||||
"fileTypes": ["json5"],
|
||||
"name": "json5",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#value"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"array": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.begin.json5"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.end.json5"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.array.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.array.json5"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\]]",
|
||||
"name": "invalid.illegal.expected-array-separator.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"constant": {
|
||||
"match": "\\b(?:true|false|null|Infinity|NaN)\\b",
|
||||
"name": "constant.language.json5"
|
||||
},
|
||||
"infinity": {
|
||||
"match": "(-)*\\b(?:Infinity|NaN)\\b",
|
||||
"name": "constant.language.json5"
|
||||
},
|
||||
"number": {
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "handles hexadecimal numbers",
|
||||
"match": "(0x)[0-9a-fA-f]*",
|
||||
"name": "constant.hex.numeric.json5"
|
||||
},
|
||||
{
|
||||
"comment": "handles integer and decimal numbers",
|
||||
"match": "[+-.]?(?=[1-9]|0(?!\\d))\\d+(\\.\\d+)?([eE][+-]?\\d+)?",
|
||||
"name": "constant.dec.numeric.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"object": {
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.begin.json5"
|
||||
}
|
||||
},
|
||||
"comment": "a json5 object",
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.end.json5"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"comment": "the json5 object key",
|
||||
"include": "#key"
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.dictionary.key-value.json5"
|
||||
}
|
||||
},
|
||||
"end": "(,)|(?=\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.dictionary.pair.json5"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.value.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "the json5 object value",
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s,]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\}]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stringSingle": {
|
||||
"begin": "[']",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.json5"
|
||||
}
|
||||
},
|
||||
"end": "[']",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.json5"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )",
|
||||
"name": "constant.character.escape.json5"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unrecognized-string-escape.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stringDouble": {
|
||||
"begin": "[\"]",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.json5"
|
||||
}
|
||||
},
|
||||
"end": "[\"]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.json5"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )",
|
||||
"name": "constant.character.escape.json5"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unrecognized-string-escape.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"key": {
|
||||
"name": "string.key.json5",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#stringSingle"
|
||||
},
|
||||
{
|
||||
"include": "#stringDouble"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z0-9_-]",
|
||||
"name": "string.key.json5"
|
||||
}
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"comment": "the 'value' diagram at http://json.org",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#constant"
|
||||
},
|
||||
{
|
||||
"include": "#infinity"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#stringSingle"
|
||||
},
|
||||
{
|
||||
"include": "#stringDouble"
|
||||
},
|
||||
{
|
||||
"include": "#array"
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "/{2}.*",
|
||||
"name": "comment.single.json5"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*\\*(?!/)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json5"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.documentation.json5"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json5"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.json5"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,213 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/microsoft/vscode-JSON.tmLanguage/blob/master/JSON.tmLanguage",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/microsoft/vscode-JSON.tmLanguage/commit/9bd83f1c252b375e957203f21793316203f61f70",
|
||||
"name": "jsonc",
|
||||
"scopeName": "source.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"array": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.begin.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.array.end.json.comments"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.array.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.array.json.comments"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\]]",
|
||||
"name": "invalid.illegal.expected-array-separator.json.comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*\\*(?!/)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.documentation.json.comments"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.json.comments"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.json.comments"
|
||||
}
|
||||
},
|
||||
"match": "(//).*$\\n?",
|
||||
"name": "comment.line.double-slash.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"constant": {
|
||||
"match": "\\b(?:true|false|null)\\b",
|
||||
"name": "constant.language.json.comments"
|
||||
},
|
||||
"number": {
|
||||
"match": "(?x) # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional",
|
||||
"name": "constant.numeric.json.comments"
|
||||
},
|
||||
"object": {
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.begin.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.dictionary.end.json.comments"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "the JSON object key",
|
||||
"include": "#objectkey"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.dictionary.key-value.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "(,)|(?=\\})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.dictionary.pair.json.comments"
|
||||
}
|
||||
},
|
||||
"name": "meta.structure.dictionary.value.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"comment": "the JSON object value",
|
||||
"include": "#value"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s,]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "[^\\s\\}]",
|
||||
"name": "invalid.illegal.expected-dictionary-separator.json.comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.json.comments"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#stringcontent"
|
||||
}
|
||||
]
|
||||
},
|
||||
"objectkey": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.support.type.property-name.begin.json.comments"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.support.type.property-name.end.json.comments"
|
||||
}
|
||||
},
|
||||
"name": "string.json.comments support.type.property-name.json.comments",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#stringcontent"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stringcontent": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?x) # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4}) # and four hex digits",
|
||||
"name": "constant.character.escape.json.comments"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.unrecognized-string-escape.json.comments"
|
||||
}
|
||||
]
|
||||
},
|
||||
"value": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#constant"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#array"
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
},
|
||||
{
|
||||
"include": "#comments"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,211 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
|
||||
"name": "jsonnet",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
},
|
||||
{
|
||||
"include": "#keywords"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"builtin-functions": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\bstd[.](acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](filter|floor|force|length|log|makeArray|mantissa)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](objectFields|objectHas|pow|sin|sqrt|tan|type|thisFile)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](acos|asin|atan|ceil|char|codepoint|cos|exp|exponent)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](abs|assertEqual|escapeString(Bash|Dollars|Json|Python))\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](filterMap|flattenArrays|foldl|foldr|format|join)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](lines|manifest(Ini|Python(Vars)?)|map|max|min|mod)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](set|set(Diff|Inter|Member|Union)|sort)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\bstd[.](range|split|stringChars|substr|toString|uniq)\\b",
|
||||
"name": "support.function.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "//.*$",
|
||||
"name": "comment.line.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "#.*$",
|
||||
"name": "comment.block.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"double-quoted-strings": {
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.jsonnet",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\([\"\\\\/bfnrt]|(u[0-9a-fA-F]{4}))",
|
||||
"name": "constant.character.escape.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\\\[^\"\\\\/bfnrtu]",
|
||||
"name": "invalid.illegal.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#literals"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#single-quoted-strings"
|
||||
},
|
||||
{
|
||||
"include": "#double-quoted-strings"
|
||||
},
|
||||
{
|
||||
"include": "#triple-quoted-strings"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-functions"
|
||||
},
|
||||
{
|
||||
"include": "#functions"
|
||||
}
|
||||
]
|
||||
},
|
||||
"functions": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_][a-z0-9A-Z_]*)\\s*\\(",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.jsonnet"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"name": "meta.function",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"keywords": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[!:~\\+\\-&\\|\\^=<>\\*\\/%]",
|
||||
"name": "keyword.operator.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\$",
|
||||
"name": "keyword.other.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b(self|super|import|importstr|local|tailstrict)\\b",
|
||||
"name": "keyword.other.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b(if|then|else|for|in|error|assert)\\b",
|
||||
"name": "keyword.control.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b(function)\\b",
|
||||
"name": "storage.type.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(:::|\\+:::)",
|
||||
"name": "variable.parameter.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(::|\\+::)",
|
||||
"name": "entity.name.type"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-z0-9A-Z_]*\\s*(:|\\+:)",
|
||||
"name": "variable.parameter.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"literals": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(true|false|null)\\b",
|
||||
"name": "constant.language.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b(\\d+([Ee][+-]?\\d+)?)\\b",
|
||||
"name": "constant.numeric.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b\\d+[.]\\d*([Ee][+-]?\\d+)?\\b",
|
||||
"name": "constant.numeric.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\b[.]\\d+([Ee][+-]?\\d+)?\\b",
|
||||
"name": "constant.numeric.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"single-quoted-strings": {
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.double.jsonnet",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(['\\\\/bfnrt]|(u[0-9a-fA-F]{4}))",
|
||||
"name": "constant.character.escape.jsonnet"
|
||||
},
|
||||
{
|
||||
"match": "\\\\[^'\\\\/bfnrtu]",
|
||||
"name": "invalid.illegal.jsonnet"
|
||||
}
|
||||
]
|
||||
},
|
||||
"triple-quoted-strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\|\\|\\|",
|
||||
"end": "\\|\\|\\|",
|
||||
"name": "string.quoted.triple.jsonnet"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.jsonnet"
|
||||
}
|
||||
@ -1,156 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["jssm", "jssm_state"],
|
||||
"name": "jssm",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.mn"
|
||||
}
|
||||
},
|
||||
"comment": "block comment",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.jssm"
|
||||
},
|
||||
{
|
||||
"begin": "//",
|
||||
"comment": "block comment",
|
||||
"end": "$",
|
||||
"name": "comment.line.jssm"
|
||||
},
|
||||
{
|
||||
"begin": "\\${",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "entity.name.function"
|
||||
}
|
||||
},
|
||||
"comment": "js outcalls",
|
||||
"end": "}",
|
||||
"name": "keyword.other"
|
||||
},
|
||||
{
|
||||
"comment": "semver",
|
||||
"match": "([0-9]*)(\\.)([0-9]*)(\\.)([0-9]*)",
|
||||
"name": "constant.numeric"
|
||||
},
|
||||
{
|
||||
"comment": "jssm language tokens",
|
||||
"match": "graph_layout(\\s*)(:)",
|
||||
"name": "constant.language.jssmLanguage"
|
||||
},
|
||||
{
|
||||
"comment": "jssm language tokens",
|
||||
"match": "machine_name(\\s*)(:)",
|
||||
"name": "constant.language.jssmLanguage"
|
||||
},
|
||||
{
|
||||
"comment": "jssm language tokens",
|
||||
"match": "machine_version(\\s*)(:)",
|
||||
"name": "constant.language.jssmLanguage"
|
||||
},
|
||||
{
|
||||
"comment": "jssm language tokens",
|
||||
"match": "jssm_version(\\s*)(:)",
|
||||
"name": "constant.language.jssmLanguage"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<->",
|
||||
"name": "keyword.control.transition.jssmArrow.legal_legal"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<-",
|
||||
"name": "keyword.control.transition.jssmArrow.legal_none"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "->",
|
||||
"name": "keyword.control.transition.jssmArrow.none_legal"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<=>",
|
||||
"name": "keyword.control.transition.jssmArrow.main_main"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "=>",
|
||||
"name": "keyword.control.transition.jssmArrow.none_main"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<=",
|
||||
"name": "keyword.control.transition.jssmArrow.main_none"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<~>",
|
||||
"name": "keyword.control.transition.jssmArrow.forced_forced"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "~>",
|
||||
"name": "keyword.control.transition.jssmArrow.none_forced"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<~",
|
||||
"name": "keyword.control.transition.jssmArrow.forced_none"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<-=>",
|
||||
"name": "keyword.control.transition.jssmArrow.legal_main"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<=->",
|
||||
"name": "keyword.control.transition.jssmArrow.main_legal"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<-~>",
|
||||
"name": "keyword.control.transition.jssmArrow.legal_forced"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<~->",
|
||||
"name": "keyword.control.transition.jssmArrow.forced_legal"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<=~>",
|
||||
"name": "keyword.control.transition.jssmArrow.main_forced"
|
||||
},
|
||||
{
|
||||
"comment": "transitions",
|
||||
"match": "<~=>",
|
||||
"name": "keyword.control.transition.jssmArrow.forced_main"
|
||||
},
|
||||
{
|
||||
"comment": "edge probability annotation",
|
||||
"match": "([0-9]+)%",
|
||||
"name": "constant.numeric.jssmProbability"
|
||||
},
|
||||
{
|
||||
"comment": "action annotation",
|
||||
"match": "\\'[^']*\\'",
|
||||
"name": "constant.character.jssmAction"
|
||||
},
|
||||
{
|
||||
"comment": "jssm label annotation",
|
||||
"match": "\\\"[^\"]*\\\"",
|
||||
"name": "entity.name.tag.jssmLabel.doublequoted"
|
||||
},
|
||||
{
|
||||
"comment": "jssm label annotation",
|
||||
"match": "([a-zA-Z0-9_.+&()#@!?,])",
|
||||
"name": "entity.name.tag.jssmLabel.atom"
|
||||
}
|
||||
],
|
||||
"scopeName": "source.jssm",
|
||||
"uuid": "2bb22b55-e811-4383-9929-ae6d0ab92aca"
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,945 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/JuliaEditorSupport/atom-language-julia/blob/master/grammars/julia_vscode.json",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/JuliaEditorSupport/atom-language-julia/commit/7b7801f41ce4ac1303bd17e057dbe677e24f597f",
|
||||
"name": "julia",
|
||||
"scopeName": "source.julia",
|
||||
"comment": "This grammar is used by Atom (Oniguruma), GitHub (PCRE), and VSCode (Oniguruma),\nso all regexps must be compatible with both engines.\n\nSpecs:\n- https://github.com/kkos/oniguruma/blob/master/doc/RE\n- https://www.pcre.org/current/doc/html/",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#array"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#parentheses"
|
||||
},
|
||||
{
|
||||
"include": "#bracket"
|
||||
},
|
||||
{
|
||||
"include": "#function_decl"
|
||||
},
|
||||
{
|
||||
"include": "#function_call"
|
||||
},
|
||||
{
|
||||
"include": "#keyword"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#type_decl"
|
||||
},
|
||||
{
|
||||
"include": "#symbol"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"array": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.bracket.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\\])((?:\\.)?'*)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "meta.bracket.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.transpose.julia"
|
||||
}
|
||||
},
|
||||
"name": "meta.array.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\bbegin\\b",
|
||||
"name": "constant.numeric.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\bend\\b",
|
||||
"name": "constant.numeric.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\bfor\\b",
|
||||
"name": "keyword.control.julia"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.bracket.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\\))((?:\\.)?'*)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "meta.bracket.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.transpose.julia"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"bracket": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:\\(|\\)|\\[|\\]|\\{|\\}|,|;)(?!('|(?:\\.'))*\\.?')",
|
||||
"name": "meta.bracket.julia"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment_block"
|
||||
},
|
||||
{
|
||||
"begin": "#",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.julia"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.number-sign.julia"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment_block": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "#=",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "=#",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.number-sign-equals.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment_block"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"function_call": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?\\.?(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.type.julia"
|
||||
},
|
||||
"3": {
|
||||
"name": "meta.bracket.julia"
|
||||
}
|
||||
},
|
||||
"end": "\\)(('|(\\.'))*\\.?')?",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.bracket.julia"
|
||||
},
|
||||
"1": {
|
||||
"name": "keyword.operator.transposed-func.julia"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\bfor\\b",
|
||||
"name": "keyword.control.julia"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"function_decl": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.function.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.type.julia"
|
||||
}
|
||||
},
|
||||
"match": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?(?=\\([^#]*\\)(::[^\\s]+)?(\\s*\\bwhere\\b\\s+.+?)?\\s*?=(?![=>]))",
|
||||
"comment": "first group is function name\nSecond group is type parameters (e.g. {T<:Number, S})\nThen open parens\nThen a lookahead ensures that we are followed by:\n - anything (function argumnets)\n - 0 or more spaces\n - Finally an equal sign\nNegative lookahead ensures we don't have another equal sign (not `==`)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.dots.julia"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.function.julia"
|
||||
},
|
||||
"4": {
|
||||
"name": "support.type.julia"
|
||||
}
|
||||
},
|
||||
"match": "\\b(function|macro)(?:\\s+(?:(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*(\\.))?((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)({(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})?|\\s*)(?=\\()",
|
||||
"comment": "similar regex to previous, but with keyword not 1-line syntax"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?<![:_\\.])(?:function|mutable\\s+struct|struct|macro|quote|abstract\\s+type|primitive\\s+type|module|baremodule|where)\\b",
|
||||
"name": "keyword.other.julia"
|
||||
},
|
||||
{
|
||||
"comment": "special case for blocks to support tokenizing outer properly",
|
||||
"begin": "\\b(for)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.julia"
|
||||
}
|
||||
},
|
||||
"end": "(?<!,|\\s)(\\s*\\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\bouter\\b",
|
||||
"name": "keyword.other.julia"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])(?:if|else|elseif|while|begin|let|do|try|catch|finally|return|break|continue)\\b",
|
||||
"name": "keyword.control.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])end\\b",
|
||||
"name": "keyword.control.end.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])(?:global|local|const)\\b",
|
||||
"name": "keyword.storage.modifier.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])(?:export)\\b",
|
||||
"name": "keyword.control.export.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])(?:import)\\b",
|
||||
"name": "keyword.control.import.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?<![:_])(?:using)\\b",
|
||||
"name": "keyword.control.using.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\w\\s)\\b(as)\\b(?=\\s\\w)",
|
||||
"name": "keyword.control.as.julia"
|
||||
},
|
||||
{
|
||||
"match": "(@(\\.|(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*))",
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
]
|
||||
},
|
||||
"number": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "((?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿]))(?:(?:\\b0(?:x|X)[0-9a-fA-F](?:_?[0-9a-fA-F])*)|(?:\\b0o[0-7](?:_?[0-7])*)|(?:\\b0b[0-1](?:_?[0-1])*)|(?:(?:\\b[0-9](?:_?[0-9])*\\.?(?!\\.)(?:[_0-9]*))|(?:\\b\\.[0-9](?:_?[0-9])*))(?:[efE][+-]?[0-9](?:_?[0-9])*)?(?:im\\b|Inf(?:16|32|64)?\\b|NaN(?:16|32|64)?\\b|π\\b|pi\\b|ℯ\\b)?|\\b[0-9]+|\\bInf(?:16|32|64)?\\b|\\bNaN(?:16|32|64)?\\b|\\bπ\\b|\\bpi\\b|\\bℯ\\b))('*)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.numeric.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.conjugate-number.julia"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\bARGS\\b|\\bC_NULL\\b|\\bDEPOT_PATH\\b|\\bENDIAN_BOM\\b|\\bENV\\b|\\bLOAD_PATH\\b|\\bPROGRAM_FILE\\b|\\bstdin\\b|\\bstdout\\b|\\bstderr\\b|\\bVERSION\\b|\\bdevnull\\b",
|
||||
"name": "constant.global.julia"
|
||||
},
|
||||
{
|
||||
"match": "\\btrue\\b|\\bfalse\\b|\\bnothing\\b|\\bmissing\\b",
|
||||
"name": "constant.language.julia"
|
||||
}
|
||||
]
|
||||
},
|
||||
"operator": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:->|<-|-->|=>)",
|
||||
"name": "keyword.operator.arrow.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?::=|\\+=|-=|\\*=|//=|/=|\\.//=|\\./=|\\.\\*=|\\\\=|\\.\\\\=|\\^=|\\.\\^=|%=|\\.%=|÷=|\\.÷=|\\|=|&=|\\.&=|⊻=|\\.⊻=|\\$=|<<=|>>=|>>>=|=(?!=))",
|
||||
"name": "keyword.operator.update.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:<<|>>>|>>|\\.>>>|\\.>>|\\.<<)",
|
||||
"name": "keyword.operator.shift.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\s*(::|>:|<:)\\s*((?:(?:Union)?\\([^)]*\\)|[[:alpha:]_$∇][[:word:]⁺-ₜ!′\\.]*(?:(?:{(?:[^{}]|{(?:[^{}]|{[^{}]*})*})*})|(?:\".+?(?<!\\\\)\"))?)))(?:\\.\\.\\.)?",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.relation.types.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.type.julia"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:===|∈|\\.∈|∉|\\.∉|∋|\\.∋|∌|\\.∌|≈|\\.≈|≉|\\.≉|≠|\\.≠|≡|\\.≡|≢|\\.≢|⊆|\\.⊆|⊇|\\.⊇|⊈|\\.⊈|⊉|\\.⊉|⊊|\\.⊊|⊋|\\.⊋|\\.==|!==|!=|\\.>=|\\.>|\\.<=|\\.<|\\.≤|\\.≥|==|\\.!=|\\.=|\\.!|<:|>:|:>|(?<!>)>=|(?<!<)<=|>|<|≥|≤)",
|
||||
"name": "keyword.operator.relation.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\s)(?:\\?)(?=\\s)",
|
||||
"name": "keyword.operator.ternary.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\s)(?:\\:)(?=\\s)",
|
||||
"name": "keyword.operator.ternary.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\|\\||&&|(?<!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿]))!)",
|
||||
"name": "keyword.operator.boolean.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?<=[[:word:]⁺-ₜ!′∇\\)\\]\\}])(?::)",
|
||||
"name": "keyword.operator.range.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\|>)",
|
||||
"name": "keyword.operator.applies.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\||\\.\\||\\&|\\.\\&|~|\\.~|⊻|\\.⊻)",
|
||||
"name": "keyword.operator.bitwise.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\+\\+|--|\\+|\\.\\+|-|\\.\\-|\\*|\\.\\*|//(?!=)|\\.//(?!=)|/|\\./|%|\\.%|\\\\|\\.\\\\|\\^|\\.\\^|÷|\\.÷|⋅|\\.⋅|∩|\\.∩|∪|\\.∪|×|√|∛)",
|
||||
"name": "keyword.operator.arithmetic.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:∘)",
|
||||
"name": "keyword.operator.compose.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:::|(?<=\\s)isa(?=\\s))",
|
||||
"name": "keyword.operator.isa.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:(?<=\\s)in(?=\\s))",
|
||||
"name": "keyword.operator.relation.in.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\.(?=(?:@|_|\\p{L}))|\\.\\.+)",
|
||||
"name": "keyword.operator.dots.julia"
|
||||
},
|
||||
{
|
||||
"match": "(?:\\$)(?=.+)",
|
||||
"name": "keyword.operator.interpolation.julia"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "keyword.operator.transposed-variable.julia"
|
||||
}
|
||||
},
|
||||
"match": "((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)(('|(\\.'))*\\.?')"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "bracket.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.transposed-matrix.julia"
|
||||
}
|
||||
},
|
||||
"match": "(\\])((?:'|(?:\\.'))*\\.?')"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "bracket.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.transposed-parens.julia"
|
||||
}
|
||||
},
|
||||
"match": "(\\))((?:'|(?:\\.'))*\\.?')"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?:(@doc)\\s((?:doc)?\"\"\")|(doc\"\"\"))",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\"\"\") ?(->)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.arrow.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.docstring.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(i?cxx)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "embed.cxx.julia",
|
||||
"contentName": "meta.embedded.inline.cpp",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.cpp#root_context"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(py)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "([\\s\\w]*)(\"\"\")",
|
||||
"endCaptures": {
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "embed.python.julia",
|
||||
"contentName": "meta.embedded.inline.python",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.python"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(js)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "embed.js.julia",
|
||||
"contentName": "meta.embedded.inline.javascript",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(R)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "embed.R.julia",
|
||||
"contentName": "meta.embedded.inline.r",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.r"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(raw)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"name": "string.quoted.other.julia",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"begin": "(raw)(\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"name": "string.quoted.other.julia",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"begin": "(sql)(\"\"\")",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "embed.sql.julia",
|
||||
"contentName": "meta.embedded.inline.sql",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.sql"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "var\"\"\"",
|
||||
"end": "\"\"\"",
|
||||
"name": "constant.other.symbol.julia"
|
||||
},
|
||||
{
|
||||
"begin": "var\"",
|
||||
"end": "\"",
|
||||
"name": "constant.other.symbol.julia"
|
||||
},
|
||||
{
|
||||
"begin": "^\\s?(doc)?(\"\"\")\\s?$",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\"\"\")",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.docstring.julia",
|
||||
"comment": "This only matches docstrings that start and end with triple quotes on\ntheir own line in the void",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "'(?!')",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.multiline.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.multiline.end.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.triple.double.julia",
|
||||
"comment": "multi-line string with triple double quotes",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.julia",
|
||||
"begin": "\"(?!\"\")",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
}
|
||||
},
|
||||
"comment": "String with single pair of double quotes. Regex matches isolated double quote",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
},
|
||||
{
|
||||
"include": "#string_dollar_sign_interpolate"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "r\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.regexp.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\"\"\")([imsx]{0,4})?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.regexp.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"comment": "I took this scope name from python regex grammar",
|
||||
"name": "keyword.other.option-toggle.regexp.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.regexp.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "r\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.regexp.begin.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\")([imsx]{0,4})?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.regexp.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"comment": "I took this scope name from python regex grammar",
|
||||
"name": "keyword.other.option-toggle.regexp.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.regexp.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
},
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"end": "(\"\"\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.other.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
},
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"end": "(?<![^\\\\]\\\\)(\")((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.other.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?```",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
},
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"end": "(```)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.interpolated.backtick.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?`",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.julia"
|
||||
},
|
||||
"1": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"end": "(?<![^\\\\]\\\\)(`)((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.macro.julia"
|
||||
}
|
||||
},
|
||||
"name": "string.interpolated.backtick.julia",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_escaped_char"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_escaped_char": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(\\\\|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8}|.)",
|
||||
"name": "constant.character.escape.julia"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_dollar_sign_interpolate": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\$(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*",
|
||||
"name": "variable.interpolation.julia"
|
||||
},
|
||||
{
|
||||
"begin": "\\$\\(",
|
||||
"end": "\\)",
|
||||
"name": "variable.interpolation.julia",
|
||||
"comment": "`punctuation.section.embedded`, `constant.escape`,\n& `meta.embedded.line` were considered but appear to have even spottier\nsupport among popular syntaxes.",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#parentheses"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"symbol": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<![[:word:]⁺-ₜ!′∇\\)\\]\\}]):(?:(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)(?!(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿]))(?![\"`])",
|
||||
"name": "constant.other.symbol.julia",
|
||||
"comment": "This is string.quoted.symbol.julia in tpoisot's package"
|
||||
}
|
||||
]
|
||||
},
|
||||
"type_decl": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.name.type.julia"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.other.inherited-class.julia"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.inheritance.julia"
|
||||
}
|
||||
},
|
||||
"match": "(?>!:_)(?:struct|mutable\\s+struct|abstract\\s+type|primitive\\s+type)\\s+((?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*)(\\s*(<:)\\s*(?:[[:alpha:]_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{So}←-⇿])(?:[[:word:]_!\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Sc}⅀-⅄∿⊾⊿⊤⊥∂∅-∇∎∏∐∑∞∟∫-∳⋀-⋃◸-◿♯⟘⟙⟀⟁⦰-⦴⨀-⨆⨉-⨖⨛⨜𝛁𝛛𝛻𝜕𝜵𝝏𝝯𝞉𝞩𝟃ⁱ-⁾₁-₎∠-∢⦛-⦯℘℮゛-゜𝟎-𝟡]|[^\\P{Mn}\u0001-¡]|[^\\P{Mc}\u0001-¡]|[^\\P{Nd}\u0001-¡]|[^\\P{Pc}\u0001-¡]|[^\\P{Sk}\u0001-¡]|[^\\P{Me}\u0001-¡]|[^\\P{No}\u0001-¡]|[′-‷⁗]|[^\\P{So}←-⇿])*(?:{.*})?)?",
|
||||
"name": "meta.type.julia"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,705 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["kt", "kts"],
|
||||
"foldingStartMarker": "(\\{\\s*(//.*)?$|^\\s*// \\{\\{\\{)",
|
||||
"foldingStopMarker": "^\\s*(\\}|// \\}\\}\\}$)",
|
||||
"name": "kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.package.kotlin"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(package)\\b(?:\\s*([^ ;$]+)\\s*)?"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.import.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.modifier.import.java"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.other.kotlin"
|
||||
},
|
||||
"4": {
|
||||
"name": "entity.name.type"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(import)\\s+([^ $.]+(?:\\.(?:[`][^$`]+[`]|[^` $.]+))+)(?:\\s+(as)\\s+([`][^$`]+[`]|[^` $.]+))?",
|
||||
"name": "meta.import.kotlin"
|
||||
},
|
||||
{
|
||||
"include": "#code"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"annotations": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(@[^ (]+)(\\()?",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.annotation.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.annotation-arguments.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(\\)|\\s|$)",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.annotation-arguments.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "meta.declaration.annotation.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.other.key.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment.kotlin"
|
||||
}
|
||||
},
|
||||
"match": "(\\w*)\\s*(=)"
|
||||
},
|
||||
{
|
||||
"include": "#code"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.seperator.property.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "@\\w*",
|
||||
"name": "storage.type.annotation.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"builtin-functions": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(apply|also|let|takeIf|run|takeUnless|with|print|println)\\b\\s*(?={|\\()",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.kotlin"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\b(mutableListOf|listOf|mutableMapOf|mapOf|mutableSetOf|setOf)\\b\\s*(?={|\\()",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.kotlin"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.kotlin"
|
||||
}
|
||||
},
|
||||
"match": "/\\*\\*/",
|
||||
"name": "comment.block.empty.kotlin"
|
||||
},
|
||||
{
|
||||
"include": "#comments-inline"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comments-inline": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.kotlin"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "comment.line.double-slash.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.comment.kotlin"
|
||||
}
|
||||
},
|
||||
"match": "\\s*((//).*$\\n?)"
|
||||
}
|
||||
]
|
||||
},
|
||||
"class-literal": {
|
||||
"begin": "(?=\\b(?:class|interface|object)\\s+\\w+)\\b",
|
||||
"end": "(?=\\}|$)",
|
||||
"name": "meta.class.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keyword-literal"
|
||||
},
|
||||
{
|
||||
"begin": "\\b(class|object|interface)\\b\\s+(\\w+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.class.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\{|\\(|:|$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keyword-literal"
|
||||
},
|
||||
{
|
||||
"include": "#annotations"
|
||||
},
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(:)\\s*(\\w+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.declaration.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.other.inherited-class.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(?={|=|$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#braces"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
}
|
||||
]
|
||||
},
|
||||
"literal-functions": {
|
||||
"begin": "(?=\\b(?:fun)\\b)",
|
||||
"end": "(?=$|=|\\})",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b(fun)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\()",
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "entity.name.function.kotlin"
|
||||
}
|
||||
},
|
||||
"match": "([\\.<\\?>\\w]+\\.)?(\\w+|(`[^`]*`))"
|
||||
},
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.declaration.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(?={|=|$)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#braces"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parameters": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(:)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.declaration.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "(?=,|=|\\))",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\w+(?=:)",
|
||||
"name": "variable.parameter.function.kotlin"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-literal"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword-literal": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\!in|\\!is|as\\?)",
|
||||
"name": "keyword.operator.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(in|is|as|assert)\\b",
|
||||
"name": "keyword.operator.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(const)\\b",
|
||||
"name": "storage.modifier.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(val|var)\\b",
|
||||
"name": "storage.type.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(\\_)\\b",
|
||||
"name": "punctuation.definition.variable.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(data|inline|tailrec|operator|infix|typealias|reified)\\b",
|
||||
"name": "storage.type.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(external|public|private|protected|internal|abstract|final|sealed|enum|open|annotation|override|vararg|typealias|expect|actual|suspend|yield|out|in)\\b",
|
||||
"name": "storage.modifier.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(try|catch|finally|throw)\\b",
|
||||
"name": "keyword.control.catch-exception.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(if|else|when)\\b",
|
||||
"name": "keyword.control.conditional.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(while|for|do|return|break|continue)\\b",
|
||||
"name": "keyword.control.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(constructor|init)\\b",
|
||||
"name": "entity.name.function.constructor"
|
||||
},
|
||||
{
|
||||
"match": "\\b(companion|object)\\b",
|
||||
"name": "storage.type.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword-operator": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(and|or|not|inv)\\b",
|
||||
"name": "keyword.operator.bitwise.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(==|!=|===|!==|<=|>=|<|>)",
|
||||
"name": "keyword.operator.comparison.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(=)",
|
||||
"name": "keyword.operator.assignment.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(:(?!:))",
|
||||
"name": "keyword.operator.declaration.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\?:)",
|
||||
"name": "keyword.operator.elvis.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\-\\-|\\+\\+)",
|
||||
"name": "keyword.operator.increment-decrement.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\-|\\+|\\*|\\/|%)",
|
||||
"name": "keyword.operator.arithmetic.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\+\\=|\\-\\=|\\*\\=|\\/\\=)",
|
||||
"name": "keyword.operator.arithmetic.assign.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\!|\\&\\&|\\|\\|)",
|
||||
"name": "keyword.operator.logical.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\.\\.)",
|
||||
"name": "keyword.operator.range.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword-punctuation": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(::)",
|
||||
"name": "punctuation.accessor.reference.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\?\\.)",
|
||||
"name": "punctuation.accessor.dot.safe.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\.)",
|
||||
"name": "punctuation.accessor.dot.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\,)",
|
||||
"name": "punctuation.seperator.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "(\\;)",
|
||||
"name": "punctuation.terminator.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"keyword-constant": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(true|false|null|class)\\b",
|
||||
"name": "constant.language.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(this|super)\\b",
|
||||
"name": "variable.language.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(0(x|X)[0-9A-Fa-f_]*)[L]?\\b",
|
||||
"name": "constant.numeric.hex.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(0(b|B)[0-1_]*)[L]?\\b",
|
||||
"name": "constant.numeric.binary.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b([0-9][0-9_]*\\.[0-9][0-9_]*[fFL]?)\\b",
|
||||
"name": "constant.numeric.float.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b([0-9][0-9_]*[fFL]?)\\b",
|
||||
"name": "constant.numeric.integer.kotlin"
|
||||
}
|
||||
]
|
||||
},
|
||||
"literal-string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-content"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"literal-raw-string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"\"\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\"\"\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.triple.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string-content"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"string-content": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "constant.character.escape.newline.kotlin",
|
||||
"match": "\\\\\\s*\\n"
|
||||
},
|
||||
{
|
||||
"name": "constant.character.escape.kotlin",
|
||||
"match": "\\\\(x[\\da-fA-F]{2}|u[\\da-fA-F]{4}|.)"
|
||||
},
|
||||
{
|
||||
"begin": "(\\$)(\\{)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.keyword.kotlin"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.block.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.block.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "entity.string.template.element.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#code"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"types": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(Nothing|Any|Unit|String|CharSequence|Int|Boolean|Char|Long|Double|Float|Short|Byte|Array|List|Map|Set|dynamic)\\b(\\?)?",
|
||||
"name": "support.class.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "\\b(IntArray|BooleanArray|CharArray|LongArray|DoubleArray|FloatArray|ShortArray|ByteArray)\\b(\\?)?",
|
||||
"name": "support.class.kotlin"
|
||||
},
|
||||
{
|
||||
"match": "((?:[a-zA-Z]\\w*\\.)*[A-Z]+\\w*[a-z]+\\w*)(\\?)",
|
||||
"name": "entity.name.type.class.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keyword-punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\b(?:[a-z]\\w*(\\.))*[A-Z]+\\w*\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.dereference.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "entity.name.type.class.kotlin"
|
||||
},
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.end.kotlin"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#types"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#keyword-punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-operator"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parens": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "meta.group.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#keyword-punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#parameters"
|
||||
},
|
||||
{
|
||||
"include": "#code"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.group.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#code"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"brackets": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.begin.kotlin"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.end.kotlin"
|
||||
}
|
||||
},
|
||||
"name": "meta.brackets.kotlin",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#code"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"code": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comments"
|
||||
},
|
||||
{
|
||||
"include": "#comments-inline"
|
||||
},
|
||||
{
|
||||
"include": "#annotations"
|
||||
},
|
||||
{
|
||||
"include": "#class-literal"
|
||||
},
|
||||
{
|
||||
"include": "#parens"
|
||||
},
|
||||
{
|
||||
"include": "#braces"
|
||||
},
|
||||
{
|
||||
"include": "#brackets"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-literal"
|
||||
},
|
||||
{
|
||||
"include": "#types"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-operator"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-constant"
|
||||
},
|
||||
{
|
||||
"include": "#keyword-punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-functions"
|
||||
},
|
||||
{
|
||||
"include": "#literal-functions"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-classes"
|
||||
},
|
||||
{
|
||||
"include": "#literal-raw-string"
|
||||
},
|
||||
{
|
||||
"include": "#literal-string"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "source.kotlin",
|
||||
"uuid": "d9380650-5edc-447d-8dbd-98838c7d0adf"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,542 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/atom/language-less/blob/master/grammars/less.cson",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/atom/language-less/commit/87d4d59e8de6796b506b81a16e1dc1fafc99d30f",
|
||||
"name": "less",
|
||||
"scopeName": "source.css.less",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.class.mixin.css"
|
||||
}
|
||||
},
|
||||
"match": "(\\.[_a-zA-Z][a-zA-Z0-9_-]*(?=\\())"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.class.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.entity.css"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.interpolation.less"
|
||||
}
|
||||
},
|
||||
"match": "((\\.)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "entity.other.attribute-name.parent-selector.css"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.entity.css"
|
||||
}
|
||||
},
|
||||
"match": "(&)[a-zA-Z0-9_-]*"
|
||||
},
|
||||
{
|
||||
"begin": "(format|local|url|attr|counter|counters)\\s*(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.misc.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.function.css"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.function.css"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.css"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.css"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.css",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "constant.character.escape.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.css"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.css"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.css",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\(\\d{1,6}|.)",
|
||||
"name": "constant.character.escape.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "[^'\") \\t]+",
|
||||
"name": "variable.parameter.misc.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b(?!.*?(?<!@){)",
|
||||
"name": "constant.other.rgb-value.css"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "entity.other.attribute-name.id"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.entity.css"
|
||||
},
|
||||
"4": {
|
||||
"name": "variable.other.interpolation.less"
|
||||
}
|
||||
},
|
||||
"match": "((#)([_a-zA-Z]|(@{[a-zA-Z0-9_-]+}))[a-zA-Z0-9_-]*)",
|
||||
"name": "meta.selector.css"
|
||||
},
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.css"
|
||||
}
|
||||
},
|
||||
"end": "\\*/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.css"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.css"
|
||||
},
|
||||
{
|
||||
"include": "source.css#numeric-values"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.begin.entity.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.other.attribute-name.attribute.css"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.operator.css"
|
||||
},
|
||||
"4": {
|
||||
"name": "string.unquoted.attribute-value.css"
|
||||
},
|
||||
"5": {
|
||||
"name": "string.quoted.double.attribute-value.css"
|
||||
},
|
||||
"6": {
|
||||
"name": "punctuation.definition.string.begin.css"
|
||||
},
|
||||
"7": {
|
||||
"name": "punctuation.definition.string.end.css"
|
||||
},
|
||||
"8": {
|
||||
"name": "punctuation.definition.end.entity.css"
|
||||
}
|
||||
},
|
||||
"match": "(?i)(\\[)\\s*(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)(?:\\s*([~|^$*]?=)\\s*(?:(-?[_a-z\\\\[[:^ascii:]]][_a-z0-9\\-\\\\[[:^ascii:]]]*)|((?>(['\"])(?:[^\\\\]|\\\\.)*?(\\6)))))?\\s*(\\])",
|
||||
"name": "meta.attribute-selector.css"
|
||||
},
|
||||
{
|
||||
"begin": "((@)import\\b)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.at-rule.import.less"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.less"
|
||||
}
|
||||
},
|
||||
"end": ";",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.terminator.rule.css"
|
||||
}
|
||||
},
|
||||
"name": "meta.at-rule.import.css",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=\\(|,|\\s)\\b(reference|optional|once|multiple|less|inline)\\b(?=\\)|,)",
|
||||
"name": "keyword.control.import.option.less"
|
||||
},
|
||||
{
|
||||
"include": "#brace_round"
|
||||
},
|
||||
{
|
||||
"include": "source.css#commas"
|
||||
},
|
||||
{
|
||||
"include": "#strings"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.at-rule.fontface.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.css"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*((@)font-face\\b)",
|
||||
"name": "meta.at-rule.fontface.css"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.at-rule.media.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.definition.keyword.css"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*((@)media\\b)",
|
||||
"name": "meta.at-rule.media.css"
|
||||
},
|
||||
{
|
||||
"include": "source.css#media-features"
|
||||
},
|
||||
{
|
||||
"match": "\\b(tv|tty|screen|projection|print|handheld|embossed|braille|aural|all)\\b",
|
||||
"name": "support.constant.media-type.media.css"
|
||||
},
|
||||
{
|
||||
"match": "\\b(portrait|landscape)\\b",
|
||||
"name": "support.constant.property-value.media-property.media.css"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.less"
|
||||
}
|
||||
},
|
||||
"match": "(\\.[a-zA-Z0-9_-]+)\\s*(;|\\()"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.less"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.less"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-slash.less"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(@|\\-\\-)[\\w-]+(?=\\s*)",
|
||||
"name": "variable.other.less",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.less"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"include": "#variable_interpolation"
|
||||
},
|
||||
{
|
||||
"begin": "{",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.property-list.begin.bracket.curly.css"
|
||||
}
|
||||
},
|
||||
"end": "}",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.property-list.end.bracket.curly.css"
|
||||
}
|
||||
},
|
||||
"name": "meta.property-list.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css#pseudo-elements"
|
||||
},
|
||||
{
|
||||
"include": "source.css#pseudo-classes"
|
||||
},
|
||||
{
|
||||
"include": "source.css#tag-names"
|
||||
},
|
||||
{
|
||||
"include": "source.css#commas"
|
||||
},
|
||||
{
|
||||
"include": "#variable_interpolation"
|
||||
},
|
||||
{
|
||||
"include": "source.css#property-names"
|
||||
},
|
||||
{
|
||||
"include": "#property_values"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\!\\s*important",
|
||||
"name": "keyword.other.important.css"
|
||||
},
|
||||
{
|
||||
"match": "\\*|\\/|\\-|\\+|~|=|<=|>=|<|>",
|
||||
"name": "keyword.operator.less"
|
||||
},
|
||||
{
|
||||
"match": "\\b(not|and|when)\\b",
|
||||
"name": "keyword.control.logical.operator.less"
|
||||
},
|
||||
{
|
||||
"include": "source.css#tag-names"
|
||||
},
|
||||
{
|
||||
"match": "(?<![\\w-])[a-z][\\w&&[^A-Z]]*+-[\\w-&&[^A-Z]]+",
|
||||
"name": "entity.name.tag.custom.css"
|
||||
},
|
||||
{
|
||||
"include": "source.css#pseudo-elements"
|
||||
},
|
||||
{
|
||||
"include": "source.css#pseudo-classes"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.property-list.begin.css"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.property-list.end.css"
|
||||
}
|
||||
},
|
||||
"match": "(\\{)(\\})",
|
||||
"name": "meta.brace.curly.css"
|
||||
},
|
||||
{
|
||||
"match": "\\{|\\}",
|
||||
"name": "meta.brace.curly.css"
|
||||
},
|
||||
{
|
||||
"include": "#brace_round"
|
||||
},
|
||||
{
|
||||
"match": "\\[|\\]",
|
||||
"name": "meta.brace.square.less"
|
||||
},
|
||||
{
|
||||
"match": ";",
|
||||
"name": "punctuation.terminator.rule.css"
|
||||
},
|
||||
{
|
||||
"match": ":",
|
||||
"name": "punctuation.separator.key-value.css"
|
||||
},
|
||||
{
|
||||
"match": "\\btrue\\b",
|
||||
"name": "constant.language.boolean.less"
|
||||
},
|
||||
{
|
||||
"match": "\\bdefault\\b",
|
||||
"name": "support.function.default.less"
|
||||
},
|
||||
{
|
||||
"match": "\\b(isurl|isstring|isnumber|iskeyword|iscolor)\\b",
|
||||
"name": "support.function.type-checking.less"
|
||||
},
|
||||
{
|
||||
"match": "\\b(isunit|ispixel|ispercentage|isem)\\b",
|
||||
"name": "support.function.unit-checking.less"
|
||||
},
|
||||
{
|
||||
"include": "source.css#property-keywords"
|
||||
},
|
||||
{
|
||||
"include": "source.css#color-keywords"
|
||||
},
|
||||
{
|
||||
"include": "source.css#commas"
|
||||
},
|
||||
{
|
||||
"include": "#less_builtin_functions"
|
||||
},
|
||||
{
|
||||
"include": "source.css#functions"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"variable_interpolation": {
|
||||
"match": "@{[a-zA-Z0-9_-]+}",
|
||||
"name": "variable.other.interpolation.less"
|
||||
},
|
||||
"strings": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.css"
|
||||
}
|
||||
},
|
||||
"end": "\"",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.css"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.css",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\([0-9A-Fa-f]{1,6}|.)",
|
||||
"name": "constant.character.escape.css"
|
||||
},
|
||||
{
|
||||
"include": "#variable_interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.css"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.css"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.css",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\([0-9A-Fa-f]{1,6}|.)",
|
||||
"name": "constant.character.escape.css"
|
||||
},
|
||||
{
|
||||
"include": "#variable_interpolation"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"brace_round": {
|
||||
"match": "\\(|\\)",
|
||||
"name": "meta.brace.round.css"
|
||||
},
|
||||
"property_values": {
|
||||
"begin": "(?<!&)(:)\\s*(?!(\\s*{))(?!.*(?<!@){)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.key-value.css"
|
||||
}
|
||||
},
|
||||
"end": "\\s*(;)|\\s*(?=})",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.terminator.rule.css"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.property-value.css",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "url(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "meta.brace.round.css"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.brace.round.css"
|
||||
}
|
||||
},
|
||||
"name": "support.function.any-method.builtin.url.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#strings"
|
||||
},
|
||||
{
|
||||
"match": "(\\b|\\.{0,2}/)[^)]*\\b",
|
||||
"name": "string.url.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "source.css#property-keywords"
|
||||
},
|
||||
{
|
||||
"include": "source.css#color-keywords"
|
||||
},
|
||||
{
|
||||
"include": "source.css#commas"
|
||||
},
|
||||
{
|
||||
"include": "#less_builtin_functions"
|
||||
},
|
||||
{
|
||||
"include": "source.css#functions"
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
},
|
||||
"less_builtin_functions": {
|
||||
"match": "\\b(abs|acos|alpha|argb|asin|atan|average|blue|calc|ceil|color|contrast|convert|convert|cos|darken|data-uri|desaturate|difference|e|escape|exclusion|extract|fade|fadein|fadeout|floor|format|green|greyscale|hardlight|hsl|hsla|hsv|hsva|hsvhue|hsvsaturation|hsvvalue|hue|length|lighten|lightness|luma|max|min|mix|mod|multiply|negation|overlay|percentage|pi|pow|red|replace|round|saturate|saturation|screen|sin|softlight|spin|sqrt|tan|unit)\\b",
|
||||
"name": "support.function.any-method.builtin.less"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,987 +0,0 @@
|
||||
{
|
||||
"name": "liquid",
|
||||
"scopeName": "text.html.liquid",
|
||||
"fileTypes": ["liquid"],
|
||||
"foldingStartMarker": "(?x)\n{%\n -?\n \\s*\n (capture|case|comment|for|form|if|javascript|paginate|schema|style)\n [^(%})]+\n%}\n",
|
||||
"foldingStopMarker": "(?x)\n{%\n \\s*\n (endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\n [^(%})]+\n%}\n",
|
||||
"injections": {
|
||||
"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#injection"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#core"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"core": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw_tag"
|
||||
},
|
||||
{
|
||||
"include": "#comment_block"
|
||||
},
|
||||
{
|
||||
"include": "#style_codefence"
|
||||
},
|
||||
{
|
||||
"include": "#stylesheet_codefence"
|
||||
},
|
||||
{
|
||||
"include": "#json_codefence"
|
||||
},
|
||||
{
|
||||
"include": "#javascript_codefence"
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
},
|
||||
{
|
||||
"include": "#tag"
|
||||
},
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
}
|
||||
]
|
||||
},
|
||||
"injection": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#raw_tag"
|
||||
},
|
||||
{
|
||||
"include": "#comment_block"
|
||||
},
|
||||
{
|
||||
"include": "#object"
|
||||
},
|
||||
{
|
||||
"include": "#tag_injection"
|
||||
}
|
||||
]
|
||||
},
|
||||
"raw_tag": {
|
||||
"begin": "{%-?\\s*(raw)\\s*-?%}",
|
||||
"end": "{%-?\\s*(endraw)\\s*-?%}",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.entity.tag.raw.liquid",
|
||||
"contentName": "string.unquoted.liquid",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(.(?!{%-?\\s*endraw\\s*-?%}))*."
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment_block": {
|
||||
"begin": "{%-?\\s*comment\\s*-?%}",
|
||||
"end": "{%-?\\s*endcomment\\s*-?%}",
|
||||
"name": "comment.block.liquid",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment_block"
|
||||
},
|
||||
{
|
||||
"match": "(.(?!{%-?\\s*(comment|endcomment)\\s*-?%}))*."
|
||||
}
|
||||
]
|
||||
},
|
||||
"style_codefence": {
|
||||
"begin": "({%-?)\\s*(style)\\s*(-?%})",
|
||||
"end": "({%-?)\\s*(endstyle)\\s*(-?%})",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.style.start.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.style.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.style.end.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.style.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.style.liquid",
|
||||
"contentName": "meta.embedded.block.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
"stylesheet_codefence": {
|
||||
"begin": "({%-?)\\s*(stylesheet)\\s*(-?%})",
|
||||
"end": "({%-?)\\s*(endstylesheet)\\s*(-?%})",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.style.start.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.style.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.style.end.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.style.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.style.liquid",
|
||||
"contentName": "meta.embedded.block.css",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.css"
|
||||
}
|
||||
]
|
||||
},
|
||||
"json_codefence": {
|
||||
"begin": "({%-?)\\s*(schema)\\s*(-?%})",
|
||||
"end": "({%-?)\\s*(endschema)\\s*(-?%})",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.schema.start.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.schema.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.schema.end.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.schema.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.schema.liquid",
|
||||
"contentName": "meta.embedded.block.json",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.json"
|
||||
}
|
||||
]
|
||||
},
|
||||
"javascript_codefence": {
|
||||
"begin": "({%-?)\\s*(javascript)\\s*(-?%})",
|
||||
"end": "({%-?)\\s*(endjavascript)\\s*(-?%})",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.javascript.start.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.javascript.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "meta.tag.metadata.javascript.end.liquid"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.tag.javascript.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.block.javascript.liquid",
|
||||
"contentName": "meta.embedded.block.js",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag": {
|
||||
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?",
|
||||
"end": "-?%}",
|
||||
"name": "meta.tag.liquid",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_injection": {
|
||||
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))",
|
||||
"end": "-?%}",
|
||||
"name": "meta.tag.liquid",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_body": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_assign"
|
||||
},
|
||||
{
|
||||
"include": "#tag_comment_inline"
|
||||
},
|
||||
{
|
||||
"include": "#tag_case"
|
||||
},
|
||||
{
|
||||
"include": "#tag_conditional"
|
||||
},
|
||||
{
|
||||
"include": "#tag_for"
|
||||
},
|
||||
{
|
||||
"include": "#tag_paginate"
|
||||
},
|
||||
{
|
||||
"include": "#tag_render"
|
||||
},
|
||||
{
|
||||
"include": "#tag_tablerow"
|
||||
},
|
||||
{
|
||||
"include": "#tag_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_liquid": {
|
||||
"name": "meta.entity.tag.liquid.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(liquid)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.liquid.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_comment_block_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_comment_inline_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_assign_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_case_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_conditional_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_for_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_paginate_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_render_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_tablerow_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#tag_expression_liquid"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_comment_block_liquid": {
|
||||
"name": "comment.block.liquid",
|
||||
"begin": "(?:^\\s*)(comment)\\b",
|
||||
"end": "(?:^\\s*)(endcomment)\\b",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_comment_block_liquid"
|
||||
},
|
||||
{
|
||||
"match": "(?:^\\s*)(?!(comment|endcomment)).*"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_comment_inline": {
|
||||
"name": "comment.line.number-sign.liquid",
|
||||
"begin": "#",
|
||||
"end": "(?=%})"
|
||||
},
|
||||
"tag_comment_inline_liquid": {
|
||||
"name": "comment.line.number-sign.liquid",
|
||||
"begin": "(?:^\\s*)#.*",
|
||||
"end": "$"
|
||||
},
|
||||
"tag_tablerow": {
|
||||
"name": "meta.entity.tag.tablerow.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.tablerow.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_tablerow_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_tablerow_liquid": {
|
||||
"name": "meta.entity.tag.tablerow.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(tablerow)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.tablerow.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_tablerow_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_tablerow_body": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(in)\\b",
|
||||
"name": "keyword.control.liquid"
|
||||
},
|
||||
{
|
||||
"match": "\\b(cols|offset|limit):",
|
||||
"name": "keyword.control.liquid"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_for": {
|
||||
"name": "meta.entity.tag.for.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.for.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_for_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_for_liquid": {
|
||||
"name": "meta.entity.tag.for.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(for)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.for.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_for_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_for_body": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(in|reversed)\\b",
|
||||
"name": "keyword.control.liquid"
|
||||
},
|
||||
{
|
||||
"match": "\\b(offset|limit):",
|
||||
"name": "keyword.control.liquid"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_assign": {
|
||||
"name": "meta.entity.tag.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#filter"
|
||||
},
|
||||
{
|
||||
"include": "#attribute"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_assign_liquid": {
|
||||
"name": "meta.entity.tag.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(assign|echo)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#filter"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_render": {
|
||||
"name": "meta.entity.tag.render.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.render.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_render_special_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#attribute"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_render_liquid": {
|
||||
"name": "meta.entity.tag.render.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(render)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.render.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_render_special_keywords"
|
||||
},
|
||||
{
|
||||
"include": "#attribute_liquid"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_render_special_keywords": {
|
||||
"match": "\\b(with|as|for)\\b",
|
||||
"name": "keyword.control.other.liquid"
|
||||
},
|
||||
"tag_paginate": {
|
||||
"name": "meta.entity.tag.paginate.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.paginate.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_paginate_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_paginate_liquid": {
|
||||
"name": "meta.entity.tag.paginate.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(paginate)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.paginate.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_paginate_body"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_paginate_body": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(by)\\b",
|
||||
"name": "keyword.control.liquid"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_conditional": {
|
||||
"name": "meta.entity.tag.conditional.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_conditional_liquid": {
|
||||
"name": "meta.entity.tag.conditional.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(if|elsif|unless)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_case": {
|
||||
"name": "meta.entity.tag.case.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.case.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_case_liquid": {
|
||||
"name": "meta.entity.tag.case.liquid",
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(case|when)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.case.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_expression_without_arguments": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endunless|endif)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.conditional.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.loop.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcase)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.case.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.other.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.other.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(else|break|continue)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.other.liquid"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_expression_without_arguments"
|
||||
},
|
||||
{
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"end": "(?=%})",
|
||||
"name": "meta.entity.tag.liquid",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"tag_expression_liquid": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#tag_expression_without_arguments"
|
||||
},
|
||||
{
|
||||
"begin": "(?:(?:(?<={%)|(?<={%-)|^)\\s*)(\\w+)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.tag.liquid"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "meta.entity.tag.liquid",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"object": {
|
||||
"begin": "(?<!comment %})(?<!comment -%})(?<!comment%})(?<!comment-%})(?<!raw %})(?<!raw -%})(?<!raw%})(?<!raw-%}){{-?",
|
||||
"end": "-?}}",
|
||||
"name": "meta.object.liquid",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.tag.end.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#filter"
|
||||
},
|
||||
{
|
||||
"include": "#attribute"
|
||||
},
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"invalid_range": {
|
||||
"match": "\\((.(?!\\.\\.))+\\)",
|
||||
"name": "invalid.illegal.range.liquid"
|
||||
},
|
||||
"range": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"name": "meta.range.liquid",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.begin.liquid"
|
||||
}
|
||||
},
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.parens.end.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\.\\.",
|
||||
"name": "punctuation.range.liquid"
|
||||
},
|
||||
{
|
||||
"include": "#variable_lookup"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
}
|
||||
]
|
||||
},
|
||||
"number": {
|
||||
"match": "((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?",
|
||||
"name": "constant.numeric.liquid"
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string_single"
|
||||
},
|
||||
{
|
||||
"include": "#string_double"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string_double": {
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.liquid"
|
||||
},
|
||||
"string_single": {
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.liquid"
|
||||
},
|
||||
"operator": {
|
||||
"match": "(?:(?<=\\s)|\\b)(\\=\\=|!\\=|\\>|\\<|\\>\\=|\\<\\=|or|and|contains)(?:(?=\\s)|\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.expression.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
"language_constant": {
|
||||
"match": "\\b(false|true|nil|blank)\\b|empty(?!\\?)",
|
||||
"name": "constant.language.liquid"
|
||||
},
|
||||
"attribute": {
|
||||
"begin": "\\w+:",
|
||||
"end": "(?=,|%}|}}|\\|)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "entity.other.attribute-name.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"attribute_liquid": {
|
||||
"begin": "\\w+:",
|
||||
"end": "(?=,|\\|)|$",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "entity.other.attribute-name.liquid"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#value_expression"
|
||||
}
|
||||
]
|
||||
},
|
||||
"filter": {
|
||||
"match": "\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
"value_expression": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(\\[)(\\|)(?=[^\\]]*)(?=\\])",
|
||||
"captures": {
|
||||
"2": {
|
||||
"name": "invalid.illegal.filter.liquid"
|
||||
},
|
||||
"3": {
|
||||
"name": "invalid.illegal.filter.liquid"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\s)(\\+|\\-|\\/|\\*)(?=\\s)",
|
||||
"name": "invalid.illegal.filter.liquid"
|
||||
},
|
||||
{
|
||||
"include": "#language_constant"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#invalid_range"
|
||||
},
|
||||
{
|
||||
"include": "#range"
|
||||
},
|
||||
{
|
||||
"include": "#number"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#variable_lookup"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable_lookup": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b",
|
||||
"name": "variable.language.liquid"
|
||||
},
|
||||
{
|
||||
"match": "((?<=\\w\\:\\s)\\w+)",
|
||||
"name": "variable.parameter.liquid"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\w)\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.begin.liquid"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.end.liquid"
|
||||
}
|
||||
},
|
||||
"name": "meta.brackets.liquid",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?<=(\\w|\\])\\.)([-\\w]+\\??)",
|
||||
"name": "variable.other.member.liquid"
|
||||
},
|
||||
{
|
||||
"match": "(?<=\\w)\\.(?=\\w)",
|
||||
"name": "punctuation.accessor.liquid"
|
||||
},
|
||||
{
|
||||
"match": "(?i)[a-z_](\\w|(?:-(?!\\}\\})))*",
|
||||
"name": "variable.other.liquid"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,56 +0,0 @@
|
||||
{
|
||||
"comment": "Roughed out by Paul Bissex <http://e-scribe.com/news/>",
|
||||
"fileTypes": [],
|
||||
"keyEquivalent": "^~L",
|
||||
"name": "logo",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "^to [\\w.]+",
|
||||
"name": "entity.name.function.logo"
|
||||
},
|
||||
{
|
||||
"match": "continue|do\\.until|do\\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until",
|
||||
"name": "keyword.control.logo"
|
||||
},
|
||||
{
|
||||
"match": "\\b(\\.defmacro|\\.eq|\\.macro|\\.maybeoutput|\\.setbf|\\.setfirst|\\.setitem|\\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\\b",
|
||||
"name": "keyword.other.logo"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.variable.logo"
|
||||
}
|
||||
},
|
||||
"match": "(\\:)(?:\\|[^|]*\\||[-\\w.]*)+",
|
||||
"name": "variable.parameter.logo"
|
||||
},
|
||||
{
|
||||
"match": "\"(?:\\|[^|]*\\||[-\\w.]*)+",
|
||||
"name": "string.other.word.logo"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=;)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.logo"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": ";",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.logo"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.semicolon.logo"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"scopeName": "source.logo",
|
||||
"uuid": "7613EC24-B0F9-4D01-8706-1D54098BFFD8"
|
||||
}
|
||||
@ -1,898 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/sumneko/lua.tmbundle/blob/master/Syntaxes/Lua.plist",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/sumneko/lua.tmbundle/commit/57be7c5cf8fa173f5f39806822725e503932ab45",
|
||||
"name": "lua",
|
||||
"scopeName": "source.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b(?:(local)\\s+)?(function)\\b(?![,:])",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.local.lua"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?<=[\\)\\-{}\\[\\]\"'])",
|
||||
"name": "meta.function.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"begin": "(\\()",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.parameters.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "(\\))|(?=[\\-\\.{}\\[\\]\"'])",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.parameters.finish.lua"
|
||||
}
|
||||
},
|
||||
"name": "meta.parameter.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"match": "[a-zA-Z_][a-zA-Z0-9_]*",
|
||||
"name": "variable.parameter.function.lua"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.arguments.lua"
|
||||
},
|
||||
{
|
||||
"begin": ":",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.separator.arguments.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\),])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b\\s*(?=:)",
|
||||
"name": "entity.name.class.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
||||
"name": "entity.name.function.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(\\.[0-9A-Fa-f]+)?([eE]-?\\d*)?([pP][-+]\\d+)?",
|
||||
"name": "constant.numeric.float.hexadecimal.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![\\w\\d.])0[xX][0-9A-Fa-f]+(?![pPeE.0-9])",
|
||||
"name": "constant.numeric.integer.hexadecimal.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![\\w\\d.])\\d+(\\.\\d+)?([eE]-?\\d*)?",
|
||||
"name": "constant.numeric.float.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![\\w\\d.])\\d+(?![pPeE.0-9])",
|
||||
"name": "constant.numeric.integer.lua"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.definition.comment.lua"
|
||||
}
|
||||
},
|
||||
"match": "\\A(#!).*$\\n?",
|
||||
"name": "comment.line.shebang.lua"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.goto.lua"
|
||||
},
|
||||
"2": {
|
||||
"name": "string.tag.lua"
|
||||
}
|
||||
},
|
||||
"match": "\\b(goto)\\s+([a-zA-Z_][a-zA-Z0-9_]*)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.section.embedded.begin.lua"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.embedded.end.lua"
|
||||
}
|
||||
},
|
||||
"match": "(::)\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*(::)",
|
||||
"name": "string.tag.lua"
|
||||
},
|
||||
{
|
||||
"match": "<\\s*(const|close)\\s*>",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "string.tag.lua"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
|
||||
"name": "storage.type.generic.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b(break|do|else|for|if|elseif|goto|return|then|repeat|while|until|end|in)\\b",
|
||||
"name": "keyword.control.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b(local|global)\\b",
|
||||
"name": "keyword.local.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b(function)\\b(?![,:])",
|
||||
"name": "keyword.control.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^.]\\.|:)\\b(false|nil(?!:)|true|_ENV|_G|_VERSION|math\\.(pi|huge|maxinteger|mininteger)|utf8\\.charpattern|io\\.(stdin|stdout|stderr)|package\\.(config|cpath|loaded|loaders|path|preload|searchers))\\b|(?<![.])\\.{3}(?!\\.)",
|
||||
"name": "constant.language.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^.]\\.|:)\\b(self)\\b",
|
||||
"name": "variable.language.self.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^.]\\.|:)\\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|load|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawlen|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\\b(?!\\s*=(?!=))",
|
||||
"name": "support.function.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^.]\\.|:)\\b(async)\\b(?!\\s*=(?!=))",
|
||||
"name": "entity.name.tag.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<![^.]\\.|:)\\b(coroutine\\.(create|isyieldable|close|resume|running|status|wrap|yield)|string\\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|pack|packsize|rep|reverse|sub|unpack|upper)|table\\.(concat|insert|maxn|move|pack|remove|sort|unpack)|math\\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?|tointeger|type)|io\\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\\.(loadlib|seeall|searchpath)|debug\\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|[gs]etuservalue|set[Cc]stacklimit|traceback|upvalueid|upvaluejoin)|bit32\\.(arshift|band|bnot|bor|btest|bxor|extract|replace|lrotate|lshift|rrotate|rshift)|utf8\\.(char|codes|codepoint|len|offset))\\b(?!\\s*=(?!=))",
|
||||
"name": "support.function.library.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b(and|or|not|\\|\\||\\&\\&|\\!)\\b",
|
||||
"name": "keyword.operator.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*(?:[({\"']|\\[\\[))",
|
||||
"name": "support.function.any-method.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*\\??:)",
|
||||
"name": "entity.name.class.lua"
|
||||
},
|
||||
{
|
||||
"match": "(?<=[^.]\\.|:)\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)",
|
||||
"name": "entity.other.attribute.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?!\\s*=\\s*\\b(function)\\b)",
|
||||
"name": "variable.other.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(?=\\s*=\\s*\\b(function)\\b)",
|
||||
"name": "entity.name.function.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\+|-|%|#|\\*|\\/|\\^|==?|~=|!=|<=?|>=?|(?<!\\.)\\.{2}(?!\\.)",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"escaped_char": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\[abfnrtv\\\\\"'\\n]",
|
||||
"name": "constant.character.escape.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\\\z[\\n\\t ]*",
|
||||
"name": "constant.character.escape.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\d{1,3}",
|
||||
"name": "constant.character.escape.byte.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\\\x[0-9A-Fa-f][0-9A-Fa-f]",
|
||||
"name": "constant.character.escape.byte.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\\\u\\{[0-9A-Fa-f]+\\}",
|
||||
"name": "constant.character.escape.unicode.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\\\.",
|
||||
"name": "invalid.illegal.character.escape.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
"string": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "'[ \\t]*|(?=\\n)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "\"[ \\t]*|(?=\\n)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#escaped_char"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "`",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "`[ \\t]*|(?=\\n)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.double.lua"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=\\.cdef)\\s*(\\[(=*)\\[)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "string.quoted.other.multiline.lua"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.begin.lua"
|
||||
}
|
||||
},
|
||||
"contentName": "meta.embedded.lua",
|
||||
"end": "(\\]\\2\\])[ \\t]*",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "string.quoted.other.multiline.lua"
|
||||
},
|
||||
"1": {
|
||||
"name": "punctuation.definition.string.end.lua"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.c"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<!--)\\[(=*)\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\]\\1\\][ \\t]*",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.other.multiline.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
"comment": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=--)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)((?!^)[ \\t]+\\n)?",
|
||||
"endCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.trailing.lua"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "--\\[(=*)\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\]\\1\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.lua"
|
||||
},
|
||||
{
|
||||
"begin": "----",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-dash.lua"
|
||||
},
|
||||
{
|
||||
"begin": "---",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-dash.doc.lua",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "--",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-dash.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\/\\*",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.begin.lua"
|
||||
}
|
||||
},
|
||||
"end": "\\*\\/",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.end.lua"
|
||||
}
|
||||
},
|
||||
"name": "comment.block.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
"luadoc": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=---\\s*)@class",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
|
||||
"name": "support.class.lua"
|
||||
},
|
||||
{
|
||||
"match": ":|,",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@enum",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "variable.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\n)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@type",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@alias",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "variable.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)(@operator)\\s*(\\b[a-z]+)?",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
},
|
||||
"2": {
|
||||
"name": "support.function.library.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@cast",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "variable.other.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
},
|
||||
{
|
||||
"match": "([+-|])",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@param",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b(\\??)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "entity.name.variable.lua"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@return",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\?",
|
||||
"name": "keyword.operator.lua"
|
||||
},
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@field",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b|(\\[))(\\??)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "entity.name.variable.lua"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
},
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
},
|
||||
{
|
||||
"match": "\\]",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@generic",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.generic.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\n)|(,)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": ":",
|
||||
"name": "keyword.operator.lua"
|
||||
},
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@vararg",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@overload",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@deprecated",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@meta",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@private",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@protected",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@package",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@version",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(5\\.1|5\\.2|5\\.3|5\\.4|JIT)\\b",
|
||||
"name": "support.class.lua"
|
||||
},
|
||||
{
|
||||
"match": ",|\\>|\\<",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@see",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*)",
|
||||
"name": "support.class.lua"
|
||||
},
|
||||
{
|
||||
"match": "#",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@diagnostic",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "([a-zA-Z_\\-0-9]+)[ \\t]*(:)?",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.other.unit"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.unit"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\n)",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b([a-zA-Z_\\*][a-zA-Z0-9_\\-]*)",
|
||||
"name": "support.class.lua"
|
||||
},
|
||||
{
|
||||
"match": ",",
|
||||
"name": "keyword.operator.lua"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---\\s*)@module",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "(?<=---\\s*)@(async|nodiscard)",
|
||||
"name": "storage.type.annotation.lua"
|
||||
},
|
||||
{
|
||||
"begin": "(?<=---)\\|\\s*[\\>\\+]?",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "storage.type.annotation.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\n@#])",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"luadoc.type": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\bfun\\b",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.lua"
|
||||
}
|
||||
},
|
||||
"end": "(?=[\\s#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "[\\(\\),:\\?][ \\t]*",
|
||||
"name": "keyword.operator.lua"
|
||||
},
|
||||
{
|
||||
"match": "([a-zA-Z_][a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]*)(?<!,)[ \\t]*(?=\\??:)",
|
||||
"name": "entity.name.variable.lua"
|
||||
},
|
||||
{
|
||||
"include": "#luadoc.type"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\<[a-zA-Z_\\*][a-zA-Z0-9_\\.\\*\\-]*\\>",
|
||||
"name": "storage.type.generic.lua"
|
||||
},
|
||||
{
|
||||
"match": "\\basync\\b",
|
||||
"name": "entity.name.tag.lua"
|
||||
},
|
||||
{
|
||||
"match": "[\\{\\}\\:\\,\\?\\|\\`][ \\t]*",
|
||||
"name": "keyword.operator.lua"
|
||||
},
|
||||
{
|
||||
"begin": "(?=[a-zA-Z_\\.\\*\"'\\[])",
|
||||
"end": "(?=[\\s\\)\\,\\?\\:\\}\\|#])",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "([a-zA-Z0-9_\\.\\*\\[\\]\\<\\>\\,\\-]+)(?<!,)[ \\t]*",
|
||||
"name": "support.type.lua"
|
||||
},
|
||||
{
|
||||
"match": "(\\.\\.\\.)[ \\t]*",
|
||||
"name": "constant.language.lua"
|
||||
},
|
||||
{
|
||||
"include": "#string"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,634 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/fadeevab/make.tmbundle/blob/master/Syntaxes/Makefile.plist",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/fadeevab/make.tmbundle/commit/1d4c0b541959995db098df751ffc129da39a294b",
|
||||
"name": "make",
|
||||
"scopeName": "source.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#variable-assignment"
|
||||
},
|
||||
{
|
||||
"include": "#directives"
|
||||
},
|
||||
{
|
||||
"include": "#recipe"
|
||||
},
|
||||
{
|
||||
"include": "#target"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"comma": {
|
||||
"match": ",",
|
||||
"name": "punctuation.separator.delimeter.comma.makefile"
|
||||
},
|
||||
"comment": {
|
||||
"begin": "(^[ ]+)?((?<!\\\\)(\\\\\\\\)*)(?=#)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "#",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?=[^\\\\])$",
|
||||
"name": "comment.line.number-sign.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"directives": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^[ ]*([s\\-]?include)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.include.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"match": "%",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^[ ]*(vpath)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.vpath.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"match": "%",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(?:(override)\\s*)?(define)\\s*([^\\s]+)\\s*(=|\\?=|:=|\\+=)?(?=\\s)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.override.makefile"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.define.makefile"
|
||||
},
|
||||
"3": {
|
||||
"name": "variable.other.makefile"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.separator.key-value.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(endef)\\b",
|
||||
"name": "meta.scope.conditional.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G(?!\\n)",
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#directives"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^[ ]*(export)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variable-assignment"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s]+",
|
||||
"name": "variable.other.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^[ ]*(override|private)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variable-assignment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^[ ]*(unexport|undefine)\\b",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"match": "[^\\s]+",
|
||||
"name": "variable.other.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*(ifeq|ifneq|ifdef|ifndef)(?=\\s)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.control.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^\\s*(endif)\\b",
|
||||
"name": "meta.scope.conditional.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "^",
|
||||
"name": "meta.scope.condition.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "^\\s*else(?=\\s)\\s*(ifeq|ifneq|ifdef|ifndef)*(?=\\s)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "keyword.control.else.makefile"
|
||||
}
|
||||
},
|
||||
"end": "^",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"target": {
|
||||
"begin": "^(?!\\t)([^:]*)(:)(?!\\=)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"patterns": [
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "support.function.target.$1.makefile"
|
||||
}
|
||||
},
|
||||
"match": "^\\s*(\\.(PHONY|SUFFIXES|DEFAULT|PRECIOUS|INTERMEDIATE|SECONDARY|SECONDEXPANSION|DELETE_ON_ERROR|IGNORE|LOW_RESOLUTION_TIME|SILENT|EXPORT_ALL_VARIABLES|NOTPARALLEL|ONESHELL|POSIX))\\s*$"
|
||||
},
|
||||
{
|
||||
"begin": "(?=\\S)",
|
||||
"end": "(?=\\s|$)",
|
||||
"name": "entity.name.function.target.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"match": "%",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.separator.key-value.makefile"
|
||||
}
|
||||
},
|
||||
"end": "[^\\\\]$",
|
||||
"name": "meta.scope.target.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\G",
|
||||
"end": "(?=[^\\\\])$",
|
||||
"name": "meta.scope.prerequisites.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
},
|
||||
{
|
||||
"match": "%|\\*",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"recipe": {
|
||||
"begin": "^\\t([+\\-@]*)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "keyword.control.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "[^\\\\]$",
|
||||
"name": "meta.scope.recipe.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable-assignment": {
|
||||
"begin": "(^[ ]*|\\G\\s*)([^\\s:#=]+)\\s*((?<![?:+!])=|\\?=|:=|\\+=|!=)",
|
||||
"beginCaptures": {
|
||||
"2": {
|
||||
"name": "variable.other.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.separator.key-value.makefile"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
},
|
||||
{
|
||||
"include": "#comment"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
},
|
||||
"interpolation": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#parentheses-interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#braces-interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"parentheses-interpolation": {
|
||||
"begin": "\\(",
|
||||
"end": "\\)",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"braces-interpolation": {
|
||||
"begin": "{",
|
||||
"end": "}",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variables": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#simple-variable"
|
||||
},
|
||||
{
|
||||
"include": "#variable-parentheses"
|
||||
},
|
||||
{
|
||||
"include": "#variable-braces"
|
||||
}
|
||||
]
|
||||
},
|
||||
"simple-variable": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\$[^(){}]",
|
||||
"name": "variable.language.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable-parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\$\\(",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.variable.makefile"
|
||||
}
|
||||
},
|
||||
"end": "\\)|((?<!\\\\)\\n)",
|
||||
"name": "string.interpolated.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-variable-parentheses"
|
||||
},
|
||||
{
|
||||
"include": "#function-variable-parentheses"
|
||||
},
|
||||
{
|
||||
"include": "#flavor-variable-parentheses"
|
||||
},
|
||||
{
|
||||
"include": "#another-variable-parentheses"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"variable-braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\${",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.variable.makefile"
|
||||
}
|
||||
},
|
||||
"end": "}|((?<!\\\\)\\n)",
|
||||
"name": "string.interpolated.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#builtin-variable-braces"
|
||||
},
|
||||
{
|
||||
"include": "#function-variable-braces"
|
||||
},
|
||||
{
|
||||
"include": "#flavor-variable-braces"
|
||||
},
|
||||
{
|
||||
"include": "#another-variable-braces"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"builtin-variable-parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<=\\()(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*\\))",
|
||||
"name": "variable.language.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"builtin-variable-braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(?<={)(MAKEFILES|VPATH|SHELL|MAKESHELL|MAKE|MAKELEVEL|MAKEFLAGS|MAKECMDGOALS|CURDIR|SUFFIXES|\\.LIBPATTERNS)(?=\\s*})",
|
||||
"name": "variable.language.makefile"
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-variable-parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=\\()(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\)|((?<!\\\\)\\n))",
|
||||
"name": "meta.scope.function-call.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"match": "%|\\*",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"function-variable-braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<={)(subst|patsubst|strip|findstring|filter(-out)?|sort|word(list)?|firstword|lastword|dir|notdir|suffix|basename|addsuffix|addprefix|join|wildcard|realpath|abspath|info|error|warning|shell|foreach|if|or|and|call|eval|value|file|guile)\\s",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?=}|((?<!\\\\)\\n))",
|
||||
"name": "meta.scope.function-call.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comma"
|
||||
},
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"match": "%|\\*",
|
||||
"name": "constant.other.placeholder.makefile"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"flavor-variable-parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=\\()(origin|flavor)\\s(?=[^\\s)]+\\s*\\))",
|
||||
"contentName": "variable.other.makefile",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?=\\))",
|
||||
"name": "meta.scope.function-call.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"flavor-variable-braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<={)(origin|flavor)\\s(?=[^\\s}]+\\s*})",
|
||||
"contentName": "variable.other.makefile",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "support.function.$1.makefile"
|
||||
}
|
||||
},
|
||||
"end": "(?=})",
|
||||
"name": "meta.scope.function-call.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"another-variable-parentheses": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<=\\()(?!\\))",
|
||||
"end": "(?=\\)|((?<!\\\\)\\n))",
|
||||
"name": "variable.other.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"another-variable-braces": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?<={)(?!})",
|
||||
"end": "(?=}|((?<!\\\\)\\n))",
|
||||
"name": "variable.other.makefile",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variables"
|
||||
},
|
||||
{
|
||||
"match": "\\\\\\n",
|
||||
"name": "constant.character.escape.continuation.makefile"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,83 +0,0 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/Septh/tmlanguage/master/tmlanguage.json",
|
||||
"name": "mdx",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#jsx"
|
||||
},
|
||||
{
|
||||
"include": "#markdown"
|
||||
},
|
||||
{
|
||||
"include": "#jsx-evaluated-code"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"jsx": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#jsx-module"
|
||||
},
|
||||
{
|
||||
"include": "#jsx-tag"
|
||||
},
|
||||
{
|
||||
"include": "#jsx-evaluated-code"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"jsx-module": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^(?=(import|export)\\b)",
|
||||
"while": "^(?!\\s*$)",
|
||||
"contentName": "source.js.jsx",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js.jsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"jsx-tag": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "^(?=< *([a-zA-Z]\\w*))",
|
||||
"end": "(?<=>)",
|
||||
"contentName": "source.js.jsx",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js.jsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
"jsx-evaluated-code": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "(?!```$){",
|
||||
"end": "}",
|
||||
"contentName": "source.js.jsx",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.js.jsx"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"markdown": {
|
||||
"contentName": "text.html.markdown",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.markdown"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"scopeName": "text.html.markdown.jsx"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@ -1,145 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["pas", "p", "pp", "dfm", "fmx", "dpr", "dpk", "lfm", "lpr"],
|
||||
"keyEquivalent": "^~P",
|
||||
"name": "pascal",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\\b(?i:(absolute|abstract|all|and_then|array|as|asm|attribute|begin|bindable|case|class|const|contains|default|div|else|end|except|export|exports|external|far|file|finalization|finally|forward|generic|goto|if|implements|import|in|index|inherited|initialization|interrupt|is|label|library|mod|module|name|near|not|object|of|on|only|operator|or_else|otherwise|out|override|package|packed|pow|private|program|protected|public|published|interface|implementation|qualified|read|record|resident|requires|resourcestring|restricted|segment|set|shl|shr|specialize|stored|strict|then|threadvar|to|try|type|unit|uses|var|view|virtual|dynamic|overload|reintroduce|with|write|xor))\\b",
|
||||
"name": "keyword.pascal"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.prototype.pascal"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.prototype.pascal"
|
||||
}
|
||||
},
|
||||
"match": "\\b(?i:(function|procedure|constructor|destructor))\\b\\s+(\\w+(\\.\\w+)?)(\\(.*?\\))?;\\s*(?=(?i:attribute|forward|external))",
|
||||
"name": "meta.function.prototype.pascal"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.type.function.pascal"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.pascal"
|
||||
}
|
||||
},
|
||||
"match": "\\b(?i:(function|procedure|constructor|destructor|property|read|write))\\b\\s+(\\w+(\\.\\w+)?)",
|
||||
"name": "meta.function.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(self|result))\\b",
|
||||
"name": "token.variable"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(and|or))\\b",
|
||||
"name": "keyword.operator.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(break|continue|exit|abort|while|do|downto|for|raise|repeat|until))\\b",
|
||||
"name": "keyword.control.pascal"
|
||||
},
|
||||
{
|
||||
"begin": "\\{\\$",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "string.regexp"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"name": "string.regexp"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(ansichar|ansistring|boolean|byte|cardinal|char|comp|currency|double|dword|extended|file|integer|int64|longint|longword|nativeint|nativeuint|olevariant|pansichar|pchar|pwidechar|pointer|real|shortint|shortstring|single|smallint|string|uint64|variant|widechar|widestring|word|wordbool))\\b",
|
||||
"name": "storage.support.type.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\b(\\d+)|(\\d*\\.\\d+([eE][\\-+]?\\d+)?)\\b",
|
||||
"name": "constant.numeric.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\$[0-9a-fA-F]{1,16}\\b",
|
||||
"name": "constant.numeric.hex.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(true|false|nil))\\b",
|
||||
"name": "constant.language.pascal"
|
||||
},
|
||||
{
|
||||
"match": "\\b(?i:(Assert))\\b",
|
||||
"name": "keyword.control"
|
||||
},
|
||||
{
|
||||
"begin": "(^[ \\t]+)?(?=//)",
|
||||
"beginCaptures": {
|
||||
"1": {
|
||||
"name": "punctuation.whitespace.comment.leading.pascal"
|
||||
}
|
||||
},
|
||||
"end": "(?!\\G)",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "//",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.pascal"
|
||||
}
|
||||
},
|
||||
"end": "\\n",
|
||||
"name": "comment.line.double-slash.pascal.two"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "\\(\\*",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.pascal"
|
||||
}
|
||||
},
|
||||
"end": "\\*\\)",
|
||||
"name": "comment.block.pascal.one"
|
||||
},
|
||||
{
|
||||
"begin": "\\{(?!\\$)",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.pascal"
|
||||
}
|
||||
},
|
||||
"end": "\\}",
|
||||
"name": "comment.block.pascal.two"
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.pascal"
|
||||
}
|
||||
},
|
||||
"end": "'",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.pascal"
|
||||
}
|
||||
},
|
||||
"name": "string.quoted.single.pascal",
|
||||
"patterns": [
|
||||
{
|
||||
"match": "''",
|
||||
"name": "constant.character.escape.apostrophe.pascal"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"match": "\\#\\d+",
|
||||
"name": "string.other.pascal"
|
||||
}
|
||||
],
|
||||
"scopeName": "source.pascal",
|
||||
"uuid": "F42FA544-6B1C-11D9-9517-000D93589AF6"
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,98 +0,0 @@
|
||||
{
|
||||
"information_for_contributors": [
|
||||
"This file has been converted from https://github.com/atom/language-php/blob/master/grammars/html.cson",
|
||||
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
|
||||
"Once accepted there, we are happy to receive an update request."
|
||||
],
|
||||
"version": "https://github.com/atom/language-php/commit/ff64523c94c014d68f5dec189b05557649c5872a",
|
||||
"name": "php-html",
|
||||
"scopeName": "text.html.php",
|
||||
"injections": {
|
||||
"L:meta.embedded.php.blade": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "text.html.basic"
|
||||
},
|
||||
{
|
||||
"include": "text.html.php.blade#blade"
|
||||
}
|
||||
]
|
||||
},
|
||||
"text.html.php - (meta.embedded | meta.tag), L:((text.html.php meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#php-tag"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "\\A#!",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.comment.php"
|
||||
}
|
||||
},
|
||||
"end": "$",
|
||||
"name": "comment.line.shebang.php"
|
||||
},
|
||||
{
|
||||
"include": "text.html.derivative"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"php-tag": {
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "<\\?(?i:php|=)?(?![^?]*\\?>)",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.php"
|
||||
}
|
||||
},
|
||||
"end": "(\\?)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.php"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.php"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.block.php",
|
||||
"contentName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"begin": "<\\?(?i:php|=)?",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.begin.php"
|
||||
}
|
||||
},
|
||||
"end": "(\\?)>",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.embedded.end.php"
|
||||
},
|
||||
"1": {
|
||||
"name": "source.php"
|
||||
}
|
||||
},
|
||||
"name": "meta.embedded.line.php",
|
||||
"contentName": "source.php",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "source.php"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@ -1,232 +0,0 @@
|
||||
{
|
||||
"fileTypes": ["sql", "ddl", "dml", "pkh", "pks", "pkb", "pck", "pls", "plb"],
|
||||
"foldingStartMarker": "(?i)^\\s*(begin|if|loop)\\b",
|
||||
"foldingStopMarker": "(?i)^\\s*(end)\\b",
|
||||
"keyEquivalent": "^~S",
|
||||
"name": "plsql",
|
||||
"patterns": [
|
||||
{
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.oracle"
|
||||
},
|
||||
{
|
||||
"match": "--.*$",
|
||||
"name": "comment.line.double-dash.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)(?:^\\s*)rem(?:\\s+.*$)",
|
||||
"name": "comment.line.sqlplus.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)(?:^\\s*)prompt(?:\\s+.*$)",
|
||||
"name": "comment.line.sqlplus-prompt.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)^\\s*(create)(\\s+or\\s+replace)?\\s+",
|
||||
"name": "meta.create.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
"3": {
|
||||
"name": "entity.name.type.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)\\b(package)(\\s+body)?\\s+(\\S+)",
|
||||
"name": "meta.package.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.type.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)\\b(type)\\s+\"([^\"]+)\"",
|
||||
"name": "meta.type.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.function.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)^\\s*(function|procedure)\\s+\"?([-a-z0-9_]+)\"?",
|
||||
"name": "meta.procedure.oracle"
|
||||
},
|
||||
{
|
||||
"match": "[!<>:]?=|<>|<|>|\\+|(?<!\\.)\\*|-|(?<!^)/|\\|\\|",
|
||||
"name": "keyword.operator.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(true|false|null|is\\s+(not\\s+)?null)\\b",
|
||||
"name": "constant.language.oracle"
|
||||
},
|
||||
{
|
||||
"match": "\\b\\d+(\\.\\d+)?\\b",
|
||||
"name": "constant.numeric.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(if|elsif|else|end\\s+if|loop|end\\s+loop|for|while|case|end\\s+case|continue|return|goto)\\b",
|
||||
"name": "keyword.control.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(or|and|not|like)\\b",
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(%(isopen|found|notfound|rowcount)|commit|rollback|sqlerrm)\\b",
|
||||
"name": "support.function.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(sql|sqlcode)\\b",
|
||||
"name": "variable.language.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(ascii|asciistr|chr|compose|concat|convert|decompose|dump|initcap|instr|instrb|instrc|instr2|instr4|unistr|length|lengthb|lengthc|length2|length4|lower|lpad|ltrim|nchr|replace|rpad|rtrim|soundex|substr|translate|trim|upper|vsize)\\b",
|
||||
"name": "support.function.builtin.char.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(add_months|current_date|current_timestamp|dbtimezone|last_day|localtimestamp|months_between|new_time|next_day|round|sessiontimezone|sysdate|tz_offset|systimestamp)\\b",
|
||||
"name": "support.function.builtin.date.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(avg|count|sum|max|min|median|corr|corr_\\w+|covar_(pop|samp)|cume_dist|dense_rank|first|group_id|grouping|grouping_id|last|percentile_cont|percentile_disc|percent_rank|rank|regr_\\w+|row_number|stats_binomial_test|stats_crosstab|stats_f_test|stats_ks_test|stats_mode|stats_mw_test|stats_one_way_anova|stats_t_test_\\w+|stats_wsr_test|stddev|stddev_pop|stddev_samp|var_pop|var_samp|variance)\\b",
|
||||
"name": "support.function.builtin.aggregate.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(bfilename|cardinality|coalesce|decode|empty_(blob|clob)|lag|lead|listagg|lnnvl|nanvl|nullif|nvl|nvl2|sys_(context|guid|typeid|connect_by_path|extract_utc)|uid|(current\\s+)?user|userenv|cardinality|(bulk\\s+)?collect|powermultiset(_by_cardinality)?|ora_hash|standard_hash|execute\\s+immediate|alter\\s+session)\\b",
|
||||
"name": "support.function.builtin.advanced.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(bin_to_num|cast|chartorowid|from_tz|hextoraw|numtodsinterval|numtoyminterval|rawtohex|rawtonhex|to_char|to_clob|to_date|to_dsinterval|to_lob|to_multi_byte|to_nclob|to_number|to_single_byte|to_timestamp|to_timestamp_tz|to_yminterval|scn_to_timestamp|timestamp_to_scn|rowidtochar|rowidtonchar|to_binary_double|to_binary_float|to_blob|to_nchar|con_dbid_to_id|con_guid_to_id|con_name_to_id|con_uid_to_id)\\b",
|
||||
"name": "support.function.builtin.convert.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(abs|acos|asin|atan|atan2|bit_(and|or|xor)|ceil|cos|cosh|exp|extract|floor|greatest|least|ln|log|mod|power|remainder|round|sign|sin|sinh|sqrt|tan|tanh|trunc)\\b",
|
||||
"name": "support.function.builtin.math.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(\\.(count|delete|exists|extend|first|last|limit|next|prior|trim|reverse))\\b",
|
||||
"name": "support.function.builtin.collection.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(cluster_details|cluster_distance|cluster_id|cluster_probability|cluster_set|feature_details|feature_id|feature_set|feature_value|prediction|prediction_bounds|prediction_cost|prediction_details|prediction_probability|prediction_set)\\b",
|
||||
"name": "support.function.builtin.data_mining.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(appendchildxml|deletexml|depth|extract|existsnode|extractvalue|insertchildxml|insertxmlbefore|xmlcast|xmldiff|xmlelement|xmlexists|xmlisvalid|insertchildxmlafter|insertchildxmlbefore|path|sys_dburigen|sys_xmlagg|sys_xmlgen|updatexml|xmlagg|xmlcdata|xmlcolattval|xmlcomment|xmlconcat|xmlforest|xmlparse|xmlpi|xmlquery|xmlroot|xmlsequence|xmlserialize|xmltable|xmltransform)\\b",
|
||||
"name": "support.function.builtin.xml.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(pragma\\s+(autonomous_transaction|serially_reusable|restrict_references|exception_init|inline))\\b",
|
||||
"name": "keyword.other.pragma.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(p(i|o|io)_[-a-z0-9_]+)\\b",
|
||||
"name": "variable.parameter.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(l_[-a-z0-9_]+)\\b",
|
||||
"name": "variable.other.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i):\\b(new|old)\\b",
|
||||
"name": "variable.trigger.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(connect\\s+by\\s+(nocycle\\s+)?(prior|level)|connect_by_(root|icycle)|level|start\\s+with)\\b",
|
||||
"name": "keyword.hierarchical.sql.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(language|name|java|c)\\b",
|
||||
"name": "keyword.wrapper.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(end|then|deterministic|exception|when|declare|begin|in|out|nocopy|is|as|exit|open|fetch|into|close|subtype|type|rowtype|default|exclusive|mode|lock|record|index\\s+by|result_cache|constant|comment|\\.(nextval|currval))\\b",
|
||||
"name": "keyword.other.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(grant|revoke|alter|drop|force|add|check|constraint|primary\\s+key|foreign\\s+key|references|unique(\\s+index)?|column|sequence|increment\\s+by|cache|(materialized\\s+)?view|trigger|storage|tablespace|pct(free|used)|(init|max)trans|logging)\\b",
|
||||
"name": "keyword.other.ddl.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(with|select|from|where|order\\s+(siblings\\s+)?by|group\\s+by|rollup|cube|((left|right|cross|natural)\\s+(outer\\s+)?)?join|on|asc|desc|update|set|insert|into|values|delete|distinct|union|minus|intersect|having|limit|table|between|like|of|row|(range|rows)\\s+between|nulls\\s+first|nulls\\s+last|before|after|all|any|exists|rownum|cursor|returning|over|partition\\s+by|merge|using|matched|pivot|unpivot)\\b",
|
||||
"name": "keyword.other.sql.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(define|whenever\\s+sqlerror|exec|timing\\s+start|timing\\s+stop)\\b",
|
||||
"name": "keyword.other.sqlplus.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(access_into_null|case_not_found|collection_is_null|cursor_already_open|dup_val_on_index|invalid_cursor|invalid_number|login_denied|no_data_found|not_logged_on|program_error|rowtype_mismatch|self_is_null|storage_error|subscript_beyond_count|subscript_outside_limit|sys_invalid_rowid|timeout_on_resource|too_many_rows|value_error|zero_divide|others)\\b",
|
||||
"name": "support.type.exception.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "support.class.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)\\b((dbms|utl|owa|apex)_\\w+\\.(\\w+))\\b",
|
||||
"name": "support.function.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "support.class.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)\\b((htf|htp)\\.(\\w+))\\b",
|
||||
"name": "support.function.oracle"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"3": {
|
||||
"name": "support.class.user-defined.oracle"
|
||||
}
|
||||
},
|
||||
"match": "(?i)\\b((\\w+_pkg|pkg_\\w+)\\.(\\w+))\\b",
|
||||
"name": "support.function.user-defined.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(raise|raise_application_error)\\b",
|
||||
"name": "support.function.oracle"
|
||||
},
|
||||
{
|
||||
"begin": "'",
|
||||
"end": "'",
|
||||
"name": "string.quoted.single.oracle"
|
||||
},
|
||||
{
|
||||
"begin": "\"",
|
||||
"end": "\"",
|
||||
"name": "string.quoted.double.oracle"
|
||||
},
|
||||
{
|
||||
"match": "(?i)\\b(char|varchar|varchar2|nchar|nvarchar2|boolean|date|timestamp(\\s+with(\\s+local)?\\s+time\\s+zone)?|interval\\s*day(\\(\\d*\\))?\\s*to\\s*month|interval\\s*year(\\(\\d*\\))?\\s*to\\s*second(\\(\\d*\\))?|xmltype|blob|clob|nclob|bfile|long|long\\s+raw|raw|number|integer|decimal|smallint|float|binary_(float|double|integer)|pls_(float|double|integer)|rowid|urowid|vararray|natural|naturaln|positive|positiven|signtype|simple_(float|double|integer))\\b",
|
||||
"name": "storage.type.oracle"
|
||||
}
|
||||
],
|
||||
"scopeName": "source.plsql.oracle",
|
||||
"uuid": "28DCE4DD-F5E1-4ED3-8847-64DA6B1F9163"
|
||||
}
|
||||
@ -1,374 +0,0 @@
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment-tag"
|
||||
}
|
||||
],
|
||||
"begin": "/\\*",
|
||||
"name": "comment.block.postcss",
|
||||
"end": "\\*/"
|
||||
},
|
||||
{
|
||||
"include": "#double-slash"
|
||||
},
|
||||
{
|
||||
"include": "#double-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#single-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#placeholder-selector"
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#variable-root-css"
|
||||
},
|
||||
{
|
||||
"include": "#numeric"
|
||||
},
|
||||
{
|
||||
"include": "#unit"
|
||||
},
|
||||
{
|
||||
"include": "#flag"
|
||||
},
|
||||
{
|
||||
"include": "#dotdotdot"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "keyword.control.at-rule.css.postcss"
|
||||
}
|
||||
},
|
||||
"begin": "@include",
|
||||
"name": "support.function.name.postcss.library",
|
||||
"end": "(?=\\n|\\(|{|;)"
|
||||
},
|
||||
{
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "keyword.control.at-rule.css.postcss"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"name": "entity.name.function",
|
||||
"match": "[\\w-]+"
|
||||
}
|
||||
],
|
||||
"begin": "@mixin|@function",
|
||||
"name": "support.function.name.postcss.no-completions",
|
||||
"end": "$\\n?|(?=\\(|{)"
|
||||
},
|
||||
{
|
||||
"name": "string.quoted.double.css.postcss",
|
||||
"match": "(?<=@import)\\s[\\w/.*-]+"
|
||||
},
|
||||
{
|
||||
"begin": "@",
|
||||
"name": "keyword.control.at-rule.css.postcss",
|
||||
"end": "$\\n?|\\s(?!(all|braille|embossed|handheld|print|projection|screen|speech|tty|tv|if|only|not)(\\s|,))|(?=;)"
|
||||
},
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#pseudo-class"
|
||||
}
|
||||
],
|
||||
"begin": "#",
|
||||
"name": "entity.other.attribute-name.id.css.postcss",
|
||||
"end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>)"
|
||||
},
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#pseudo-class"
|
||||
}
|
||||
],
|
||||
"begin": "\\.|(?<=&)(-|_)",
|
||||
"name": "entity.other.attribute-name.class.css.postcss",
|
||||
"end": "$\\n?|(?=\\s|,|;|\\(|\\)|\\[|{|>)"
|
||||
},
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#double-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#single-quoted"
|
||||
},
|
||||
{
|
||||
"name": "keyword.other.regex.postcss",
|
||||
"match": "\\^|\\$|\\*|~"
|
||||
}
|
||||
],
|
||||
"begin": "\\[",
|
||||
"name": "entity.other.attribute-selector.postcss",
|
||||
"end": "\\]"
|
||||
},
|
||||
{
|
||||
"name": "entity.other.attribute-name.pseudo-class.css.postcss",
|
||||
"match": "(?<=\\]|\\)|not\\(|\\*|>|>\\s):[a-z:-]+|(::|:-)[a-z:-]+"
|
||||
},
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#double-slash"
|
||||
},
|
||||
{
|
||||
"include": "#double-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#single-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#rgb-value"
|
||||
},
|
||||
{
|
||||
"include": "#numeric"
|
||||
},
|
||||
{
|
||||
"include": "#unit"
|
||||
},
|
||||
{
|
||||
"include": "#flag"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
},
|
||||
{
|
||||
"include": "#function-content"
|
||||
},
|
||||
{
|
||||
"include": "#function-content-var"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#parent-selector"
|
||||
},
|
||||
{
|
||||
"include": "#property-value"
|
||||
}
|
||||
],
|
||||
"begin": ":",
|
||||
"name": "meta.property-list.css.postcss",
|
||||
"end": "$\\n?|(?=;|\\s\\(|and\\(|{|}|\\),)"
|
||||
},
|
||||
{
|
||||
"include": "#rgb-value"
|
||||
},
|
||||
{
|
||||
"include": "#function"
|
||||
},
|
||||
{
|
||||
"include": "#function-content"
|
||||
},
|
||||
{
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#interpolation"
|
||||
},
|
||||
{
|
||||
"include": "#pseudo-class"
|
||||
}
|
||||
],
|
||||
"begin": "(?<!\\-|\\()\\b(a|abbr|acronym|address|applet|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|datalist|dd|del|details|dfn|dialog|div|dl|dt|em|embed|eventsource|fieldset|figure|figcaption|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|label|legend|li|link|map|mark|menu|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|picture|pre|progress|q|samp|script|section|select|small|source|span|strike|strong|style|sub|summary|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video|main|svg|rect|ruby|center|circle|ellipse|line|polyline|polygon|path|text|u|x)\\b(?!-|\\)|:\\s)|&",
|
||||
"name": "entity.name.tag.css.postcss.symbol",
|
||||
"end": "(?=\\s|,|;|\\(|\\)|\\.|\\[|{|>|-|_)"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"name": "support.type.property-name.css.postcss",
|
||||
"match": "[a-z-]+((?=:|#{))"
|
||||
},
|
||||
{
|
||||
"include": "#reserved-words"
|
||||
},
|
||||
{
|
||||
"include": "#property-value"
|
||||
}
|
||||
],
|
||||
"name": "postcss",
|
||||
"repository": {
|
||||
"reserved-words": {
|
||||
"name": "support.type.property-name.css.postcss",
|
||||
"match": "\\b(false|from|in|not|null|through|to|true)\\b"
|
||||
},
|
||||
"double-quoted": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#quoted-interpolation"
|
||||
}
|
||||
],
|
||||
"begin": "\"",
|
||||
"name": "string.quoted.double.css.postcss",
|
||||
"end": "\""
|
||||
},
|
||||
"operator": {
|
||||
"name": "keyword.operator.postcss",
|
||||
"match": "\\+|\\s-\\s|\\s-(?=\\$)|(?<=\\()-(?=\\$)|\\s-(?=\\()|\\*|/|%|=|!|<|>|~"
|
||||
},
|
||||
"function-content": {
|
||||
"name": "string.quoted.double.css.postcss",
|
||||
"match": "(?<=url\\(|format\\(|attr\\().+?(?=\\))"
|
||||
},
|
||||
"double-slash": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#comment-tag"
|
||||
}
|
||||
],
|
||||
"begin": "//",
|
||||
"name": "comment.line.postcss",
|
||||
"end": "$"
|
||||
},
|
||||
"numeric": {
|
||||
"name": "constant.numeric.css.postcss",
|
||||
"match": "(-|\\.)?[0-9]+(\\.[0-9]+)?"
|
||||
},
|
||||
"variable-root-css": {
|
||||
"name": "variable.parameter.postcss",
|
||||
"match": "(?<!&)--[\\w-]+"
|
||||
},
|
||||
"function": {
|
||||
"name": "support.function.name.postcss",
|
||||
"match": "(?<=[\\s|\\(|,|:])(?!url|format|attr)[\\w-][\\w-]*(?=\\()"
|
||||
},
|
||||
"rgb-value": {
|
||||
"name": "constant.other.color.rgb-value.css.postcss",
|
||||
"match": "(#)([0-9a-fA-F]{3}|[0-9a-fA-F]{6})\\b"
|
||||
},
|
||||
"comment-tag": {
|
||||
"patterns": [
|
||||
{
|
||||
"name": "comment.tag.postcss",
|
||||
"match": "[\\w-]+"
|
||||
}
|
||||
],
|
||||
"begin": "{{",
|
||||
"name": "comment.tags.postcss",
|
||||
"end": "}}"
|
||||
},
|
||||
"interpolation": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#numeric"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#unit"
|
||||
},
|
||||
{
|
||||
"include": "#double-quoted"
|
||||
},
|
||||
{
|
||||
"include": "#single-quoted"
|
||||
}
|
||||
],
|
||||
"begin": "#{",
|
||||
"name": "support.function.interpolation.postcss",
|
||||
"end": "}"
|
||||
},
|
||||
"unit": {
|
||||
"name": "keyword.other.unit.css.postcss",
|
||||
"match": "(?<=[\\d]|})(ch|cm|deg|dpcm|dpi|dppx|em|ex|grad|Hz|in|kHz|mm|ms|pc|pt|px|rad|rem|s|turn|vh|vmax|vmin|vw|%)"
|
||||
},
|
||||
"function-content-var": {
|
||||
"name": "variable.parameter.postcss",
|
||||
"match": "(?<=var\\()[\\w-]+(?=\\))"
|
||||
},
|
||||
"dotdotdot": {
|
||||
"name": "variable.other",
|
||||
"match": "\\.{3}"
|
||||
},
|
||||
"variable": {
|
||||
"name": "variable.parameter.postcss",
|
||||
"match": "\\$[\\w-]+"
|
||||
},
|
||||
"single-quoted": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#quoted-interpolation"
|
||||
}
|
||||
],
|
||||
"begin": "'",
|
||||
"name": "string.quoted.single.css.postcss",
|
||||
"end": "'"
|
||||
},
|
||||
"quoted-interpolation": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#variable"
|
||||
},
|
||||
{
|
||||
"include": "#numeric"
|
||||
},
|
||||
{
|
||||
"include": "#operator"
|
||||
},
|
||||
{
|
||||
"include": "#unit"
|
||||
}
|
||||
],
|
||||
"begin": "#{",
|
||||
"name": "support.function.interpolation.postcss",
|
||||
"end": "}"
|
||||
},
|
||||
"pseudo-class": {
|
||||
"name": "entity.other.attribute-name.pseudo-class.css.postcss",
|
||||
"match": ":[a-z:-]+"
|
||||
},
|
||||
"property-value": {
|
||||
"name": "meta.property-value.css.postcss, support.constant.property-value.css.postcss",
|
||||
"match": "[\\w-]+"
|
||||
},
|
||||
"placeholder-selector": {
|
||||
"begin": "(?<!\\d)%(?!\\d)",
|
||||
"name": "entity.other.attribute-name.placeholder-selector.postcss",
|
||||
"end": "$\\n?|\\s|(?=;|{)"
|
||||
},
|
||||
"flag": {
|
||||
"name": "keyword.other.important.css.postcss",
|
||||
"match": "!(important|default|optional|global)"
|
||||
},
|
||||
"parent-selector": {
|
||||
"name": "entity.name.tag.css.postcss",
|
||||
"match": "&"
|
||||
}
|
||||
},
|
||||
"foldingStartMarker": "/\\*|^#|^\\*|^\\b|^\\.",
|
||||
"foldingStopMarker": "\\*/|^\\s*$",
|
||||
"fileTypes": ["pcss", "postcss"],
|
||||
"uuid": "90DAEA60-88AA-11E2-9E96-0800200C9A66",
|
||||
"scopeName": "source.css.postcss"
|
||||
}
|
||||
@ -1,346 +0,0 @@
|
||||
{
|
||||
"name": "powerquery",
|
||||
"scopeName": "source.powerquery",
|
||||
"fileTypes": ["pq", "pqm"],
|
||||
"uuid": "41968B57-12E6-4AC5-92A4-A837010E8B0A",
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#Noise"
|
||||
},
|
||||
{
|
||||
"include": "#LiteralExpression"
|
||||
},
|
||||
{
|
||||
"include": "#Keywords"
|
||||
},
|
||||
{
|
||||
"include": "#ImplicitVariable"
|
||||
},
|
||||
{
|
||||
"include": "#IntrinsicVariable"
|
||||
},
|
||||
{
|
||||
"include": "#Operators"
|
||||
},
|
||||
{
|
||||
"include": "#DotOperators"
|
||||
},
|
||||
{
|
||||
"include": "#TypeName"
|
||||
},
|
||||
{
|
||||
"include": "#RecordExpression"
|
||||
},
|
||||
{
|
||||
"include": "#Punctuation"
|
||||
},
|
||||
{
|
||||
"include": "#QuotedIdentifier"
|
||||
},
|
||||
{
|
||||
"include": "#Identifier"
|
||||
}
|
||||
],
|
||||
"repository": {
|
||||
"Keywords": {
|
||||
"match": "\\b(?:(and|or|not)|(if|then|else)|(try|otherwise)|(as|each|in|is|let|meta|type|error)|(section|shared))\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.word.logical.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.control.conditional.powerquery"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.control.exception.powerquery"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.other.powerquery"
|
||||
},
|
||||
"5": {
|
||||
"name": "keyword.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"TypeName": {
|
||||
"match": "\\b(?:(optional|nullable)|(action|any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|null|number|record|table|text|type))\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "storage.modifier.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "storage.type.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"LiteralExpression": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#String"
|
||||
},
|
||||
{
|
||||
"include": "#NumericConstant"
|
||||
},
|
||||
{
|
||||
"include": "#LogicalConstant"
|
||||
},
|
||||
{
|
||||
"include": "#NullConstant"
|
||||
},
|
||||
{
|
||||
"include": "#FloatNumber"
|
||||
},
|
||||
{
|
||||
"include": "#DecimalNumber"
|
||||
},
|
||||
{
|
||||
"include": "#HexNumber"
|
||||
},
|
||||
{
|
||||
"include": "#IntNumber"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Noise": {
|
||||
"patterns": [
|
||||
{
|
||||
"include": "#BlockComment"
|
||||
},
|
||||
{
|
||||
"include": "#LineComment"
|
||||
},
|
||||
{
|
||||
"include": "#Whitespace"
|
||||
}
|
||||
]
|
||||
},
|
||||
"Whitespace": {
|
||||
"match": "\\s+"
|
||||
},
|
||||
"BlockComment": {
|
||||
"begin": "/\\*",
|
||||
"end": "\\*/",
|
||||
"name": "comment.block.powerquery"
|
||||
},
|
||||
"LineComment": {
|
||||
"match": "//.*",
|
||||
"name": "comment.line.double-slash.powerquery"
|
||||
},
|
||||
"String": {
|
||||
"begin": "\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.begin.powerquery"
|
||||
}
|
||||
},
|
||||
"end": "\"(?!\")",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.string.end.powerquery"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\"\"",
|
||||
"name": "constant.character.escape.quote.powerquery"
|
||||
},
|
||||
{
|
||||
"include": "#EscapeSequence"
|
||||
}
|
||||
],
|
||||
"name": "string.quoted.double.powerquery"
|
||||
},
|
||||
"QuotedIdentifier": {
|
||||
"begin": "#\"",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.quotedidentifier.begin.powerquery"
|
||||
}
|
||||
},
|
||||
"end": "\"(?!\")",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.quotedidentifier.end.powerquery"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "\"\"",
|
||||
"name": "constant.character.escape.quote.powerquery"
|
||||
},
|
||||
{
|
||||
"include": "#EscapeSequence"
|
||||
}
|
||||
],
|
||||
"name": "entity.name.powerquery"
|
||||
},
|
||||
"EscapeSequence": {
|
||||
"begin": "#\\(",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.escapesequence.begin.powerquery"
|
||||
}
|
||||
},
|
||||
"end": "\\)",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.definition.escapesequence.end.powerquery"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"match": "(#|\\h{4}|\\h{8}|cr|lf|tab)(?:,(#|\\h{4}|\\h{8}|cr|lf|tab))*"
|
||||
},
|
||||
{
|
||||
"match": "[^\\)]",
|
||||
"name": "invalid.illegal.escapesequence.powerquery"
|
||||
}
|
||||
],
|
||||
"name": "constant.character.escapesequence.powerquery"
|
||||
},
|
||||
"LogicalConstant": {
|
||||
"match": "\\b(true|false)\\b",
|
||||
"name": "constant.language.logical.powerquery"
|
||||
},
|
||||
"NullConstant": {
|
||||
"match": "\\b(null)\\b",
|
||||
"name": "constant.language.null.powerquery"
|
||||
},
|
||||
"NumericConstant": {
|
||||
"match": "(?<![\\d\\w])(#infinity|#nan)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.language.numeric.float.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"HexNumber": {
|
||||
"match": "0(x|X)\\h+",
|
||||
"name": "constant.numeric.integer.hexadecimal.powerquery"
|
||||
},
|
||||
"IntNumber": {
|
||||
"match": "\\b(\\d+)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.numeric.integer.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DecimalNumber": {
|
||||
"match": "(?<![\\d\\w])(\\d*\\.\\d+)\\b",
|
||||
"name": "constant.numeric.decimal.powerquery"
|
||||
},
|
||||
"FloatNumber": {
|
||||
"match": "(\\d*\\.)?\\d+(e|E)(\\+|-)?\\d+",
|
||||
"name": "constant.numeric.float.powerquery"
|
||||
},
|
||||
"InclusiveIdentifier": {
|
||||
"match": "@",
|
||||
"captures": {
|
||||
"0": {
|
||||
"name": "inclusiveidentifier.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Identifier": {
|
||||
"match": "(?x:(?<![\\._\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])(@?)([_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}]*(?:\\.[_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}][_\\p{Lu}\\p{Ll}\\p{Lt}\\p{Lm}\\p{Lo}\\p{Nl}\\p{Nd}\\p{Pc}\\p{Mn}\\p{Mc}\\p{Cf}])*)\\b)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.inclusiveidentifier.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "entity.name.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"Operators": {
|
||||
"match": "(=>)|(=)|(<>|<|>|<=|>=)|(&)|(\\+|-|\\*|\\/)|(!)|(\\?)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.function.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.assignment-or-comparison.powerquery"
|
||||
},
|
||||
"3": {
|
||||
"name": "keyword.operator.comparison.powerquery"
|
||||
},
|
||||
"4": {
|
||||
"name": "keyword.operator.combination.powerquery"
|
||||
},
|
||||
"5": {
|
||||
"name": "keyword.operator.arithmetic.powerquery"
|
||||
},
|
||||
"6": {
|
||||
"name": "keyword.operator.sectionaccess.powerquery"
|
||||
},
|
||||
"7": {
|
||||
"name": "keyword.operator.optional.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"DotOperators": {
|
||||
"match": "(?<!\\.)(?:(\\.\\.\\.)|(\\.\\.))(?!\\.)",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "keyword.operator.ellipsis.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "keyword.operator.list.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"RecordExpression": {
|
||||
"begin": "\\[",
|
||||
"beginCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.begin.powerquery"
|
||||
}
|
||||
},
|
||||
"end": "\\]",
|
||||
"endCaptures": {
|
||||
"0": {
|
||||
"name": "punctuation.section.brackets.end.powerquery"
|
||||
}
|
||||
},
|
||||
"patterns": [
|
||||
{
|
||||
"include": "$self"
|
||||
}
|
||||
],
|
||||
"contentName": "meta.recordexpression.powerquery"
|
||||
},
|
||||
"Punctuation": {
|
||||
"match": "(,)|(\\()|(\\))|({)|(})",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "punctuation.separator.powerquery"
|
||||
},
|
||||
"2": {
|
||||
"name": "punctuation.section.parens.begin.powerquery"
|
||||
},
|
||||
"3": {
|
||||
"name": "punctuation.section.parens.end.powerquery"
|
||||
},
|
||||
"4": {
|
||||
"name": "punctuation.section.braces.begin.powerquery"
|
||||
},
|
||||
"5": {
|
||||
"name": "punctuation.section.braces.end.powerquery"
|
||||
}
|
||||
}
|
||||
},
|
||||
"ImplicitVariable": {
|
||||
"match": "\\b_\\b",
|
||||
"name": "keyword.operator.implicitvariable.powerquery"
|
||||
},
|
||||
"IntrinsicVariable": {
|
||||
"match": "(?<![\\d\\w])(#sections|#shared)\\b",
|
||||
"captures": {
|
||||
"1": {
|
||||
"name": "constant.language.intrinsicvariable.powerquery"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user