github-linguist 9.5.0 → 9.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/grammars/etc.json +1 -1
- data/grammars/markdown.mojo.codeblock.json +1 -0
- data/grammars/markdown.move.codeblock.json +1 -1
- data/grammars/source.4dm.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.apex.json +1 -1
- data/grammars/source.baml-jinja.json +1 -0
- data/grammars/source.baml.json +1 -0
- data/grammars/source.bb.json +1 -1
- data/grammars/source.brs.embedded.xml.json +1 -0
- data/grammars/source.bsl.json +1 -1
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c3.json +1 -1
- data/grammars/source.cel.json +1 -0
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csv.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.daslang.json +1 -1
- data/grammars/source.data-weave.json +1 -1
- data/grammars/source.emacs.lisp.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gimprc.json +1 -0
- data/grammars/source.gimpres.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.gtkrc.json +1 -0
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hosts.json +1 -1
- data/grammars/source.il.json +1 -0
- data/grammars/source.ink.json +1 -1
- data/grammars/source.interp.json +1 -0
- data/grammars/source.jac.json +1 -1
- data/grammars/source.jactoml.json +1 -0
- data/grammars/source.jai.json +1 -1
- data/grammars/source.just.json +1 -1
- data/grammars/source.lean4.markdown.json +1 -1
- data/grammars/source.luau.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.m3u.json +1 -1
- data/grammars/source.matlab.json +1 -1
- data/grammars/source.mdx.astro.json +1 -1
- data/grammars/source.mo.json +1 -1
- data/grammars/source.mojo.json +1 -1
- data/grammars/source.moonbit.config.json +1 -0
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.opy.json +1 -0
- data/grammars/source.pic.json +1 -1
- data/grammars/source.pkgconf.json +1 -0
- data/grammars/source.powerquery.json +1 -0
- data/grammars/source.powershell.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.quint.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rascript.json +1 -1
- data/grammars/source.record-jar.json +1 -1
- data/grammars/source.redscript.json +1 -0
- data/grammars/source.slang.json +1 -1
- data/grammars/source.slint.json +1 -1
- data/grammars/source.soql.json +1 -1
- data/grammars/source.spicedb-yaml.json +1 -0
- data/grammars/source.spicedb.json +1 -0
- data/grammars/source.stan.json +1 -1
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.uri-list.json +1 -0
- data/grammars/source.v.json +1 -1
- data/grammars/source.wgsl.json +1 -1
- data/grammars/spicedb-yaml.injection.json +1 -0
- data/grammars/text.cachedir.json +1 -0
- data/grammars/text.cookie-jar.json +1 -0
- data/grammars/text.html.vue.json +1 -1
- data/grammars/text.mac-tts.json +1 -0
- data/grammars/text.roff.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/classifier.rb +2 -1
- data/lib/linguist/generated.rb +16 -0
- data/lib/linguist/generic.yml +2 -0
- data/lib/linguist/heuristics.yml +17 -0
- data/lib/linguist/language.rb +8 -0
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +139 -12
- data/lib/linguist/lazy_blob.rb +19 -1
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +25 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"GDScript","scopeName":"source.gdscript","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated_parameter":{"begin":"(?x)\n \\s* ([a-zA-Z_]\\w*) \\s* (:)\\s* ([a-zA-Z_]\\w*)? \n","end":"(,)|(?=\\))","patterns":[{"include":"#expression"},{"name":"keyword.operator.assignment.gdscript","match":"=(?!=)"}],"beginCaptures":{"1":{"name":"variable.parameter.function.language.gdscript"},"2":{"name":"punctuation.separator.annotation.gdscript"},"3":{"name":"entity.name.type.class.gdscript"}},"endCaptures":{"1":{"name":"punctuation.separator.parameters.gdscript"}}},"annotations":{"match":"(@)(abstract|export|export_category|export_color_no_alpha|export_custom|export_dir|export_enum|export_exp_easing|export_file|export_file_path|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_flags_avoidance|export_global_dir|export_global_file|export_group|export_multiline|export_node_path|export_placeholder|export_range|export_storage|export_subgroup|export_tool_button|icon|onready|rpc|static_unload|tool|warning_ignore|warning_ignore_restore|warning_ignore_start)\\b","captures":{"1":{"name":"entity.name.function.decorator.gdscript"},"2":{"name":"entity.name.function.decorator.gdscript"}}},"any_method":{"name":"entity.name.function.other.gdscript","match":"\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))"},"any_property":{"match":"\\b(\\.)\\s*(?\u003c![@\\$#%])(?:([A-Z_][A-Z_0-9]*)|([A-Za-z_]\\w*))\\b(?![(])","captures":{"1":{"name":"punctuation.accessor.gdscript"},"2":{"name":"constant.language.gdscript"},"3":{"name":"variable.other.property.gdscript"}}},"any_variable":{"name":"variable.other.gdscript","match":"\\b(?\u003c![@\\$#%])([A-Za-z_]\\w*)\\b(?![(])"},"arithmetic_operator":{"name":"keyword.operator.arithmetic.gdscript","match":"-\u003e|\\+=|-=|\\*\\*=|\\*=|\\^=|/=|%=|\u0026=|~=|\\|=|\\*\\*|\\*|/|%|\\+|-"},"assignment_operator":{"name":"keyword.operator.assignment.gdscript","match":"="},"base_expression":{"patterns":[{"include":"#builtin_get_node_shorthand"},{"include":"#nodepath_object"},{"include":"#nodepath_function"},{"include":"#strings"},{"include":"#builtin_classes"},{"include":"#const_vars"},{"include":"#keywords"},{"include":"#operators"},{"include":"#lambda_declaration"},{"include":"#class_declaration"},{"include":"#variable_declaration"},{"include":"#signal_declaration_bare"},{"include":"#signal_declaration"},{"include":"#function_declaration"},{"include":"#statement_keyword"},{"include":"#assignment_operator"},{"include":"#in_keyword"},{"include":"#control_flow"},{"include":"#match_keyword"},{"include":"#curly_braces"},{"include":"#square_braces"},{"include":"#round_braces"},{"include":"#function_call"},{"include":"#region"},{"include":"#comment"},{"include":"#func"},{"include":"#letter"},{"include":"#numbers"},{"include":"#pascal_case_class"},{"include":"#line_continuation"}]},"bitwise_operator":{"name":"keyword.operator.bitwise.gdscript","match":"\u0026|\\||\u003c\u003c=|\u003e\u003e=|\u003c\u003c|\u003e\u003e|\\^|~"},"boolean_operator":{"name":"keyword.operator.boolean.gdscript","match":"(\u0026\u0026|\\|\\|)"},"builtin_classes":{"name":"entity.name.type.class.builtin.gdscript","match":"(?\u003c![^.]\\.|:)\\b(Vector2|Vector2i|Vector3|Vector3i|Vector4|Vector4i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|JSON|UPNP|OS|IP|JSONRPC|XRVRS|Variant|void)\\b"},"builtin_get_node_shorthand":{"patterns":[{"include":"#builtin_get_node_shorthand_quoted"},{"include":"#builtin_get_node_shorthand_bare"},{"include":"#builtin_get_node_shorthand_bare_multi"}]},"builtin_get_node_shorthand_bare":{"name":"meta.literal.nodepath.bare.gdscript","captures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"constant.character.escape.gdscript"},"3":{"name":"constant.character.escape.gdscript"},"4":{"name":"constant.character.escape.gdscript"}}},"builtin_get_node_shorthand_bare_multi":{"name":"meta.literal.nodepath.bare.gdscript","begin":"(\\$\\s*|%|\\$%\\s*)(/\\s*)?([a-zA-Z_]\\w*)","end":"(?!\\s*/\\s*%?\\s*[a-zA-Z_]\\w*)","patterns":[{"match":"(/)\\s*(%)?\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"constant.character.escape.gdscript"},"2":{"name":"keyword.control.flow.gdscript"},"3":{"name":"constant.character.escape.gdscript"}}}],"beginCaptures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"constant.character.escape.gdscript"},"3":{"name":"constant.character.escape.gdscript"}}},"builtin_get_node_shorthand_quoted":{"name":"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript","begin":"(?:(\\$|%)|(\u0026|\\^|@))(\"|')","end":"(\\3)","patterns":[{"name":"keyword.control.flow","match":"%"}],"beginCaptures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"variable.other.enummember.gdscript"}}},"class_declaration":{"match":"(?\u003c=^class)\\s+([a-zA-Z_]\\w*)\\s*(?=:)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"class.other.gdscript"}}},"class_enum":{"match":"\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"variable.other.enummember.gdscript"}}},"class_is":{"match":"\\s+(is)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"storage.type.is.gdscript"},"2":{"name":"entity.name.type.class.gdscript"}}},"class_name":{"match":"(?\u003c=class_name)\\s+([a-zA-Z_]\\w*(\\.([a-zA-Z_]\\w*))?)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"class.other.gdscript"}}},"class_new":{"match":"\\b([a-zA-Z_]\\w*).(new)\\(","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"storage.type.new.gdscript"},"3":{"name":"punctuation.parenthesis.begin.gdscript"}}},"comment":{"name":"comment.line.number-sign.gdscript","match":"(##|#).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.number-sign.gdscript"}}},"compare_operator":{"name":"keyword.operator.comparison.gdscript","match":"\u003c=|\u003e=|==|\u003c|\u003e|!=|!"},"const_vars":{"name":"variable.other.constant.gdscript","match":"\\b([A-Z_][A-Z_0-9]*)\\b"},"control_flow":{"name":"keyword.control.gdscript","match":"\\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\\b"},"curly_braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.definition.dict.end.gdscript"}}},"expression":{"patterns":[{"include":"#getter_setter_godot4"},{"include":"#base_expression"},{"include":"#assignment_operator"},{"include":"#annotations"},{"include":"#class_name"},{"include":"#builtin_classes"},{"include":"#class_new"},{"include":"#class_is"},{"include":"#class_enum"},{"include":"#any_method"},{"include":"#any_variable"},{"include":"#any_property"}]},"extends_statement":{"match":"(extends)\\s+([a-zA-Z_]\\w*\\.[a-zA-Z_]\\w*)?","captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.other.inherited-class.gdscript"}}},"func":{"name":"keyword.language.gdscript storage.type.function.gdscript","match":"\\bfunc\\b"},"function_arguments":{"contentName":"meta.function.parameters.gdscript","begin":"(\\()","end":"(?=\\))(?!\\)\\s*\\()","patterns":[{"name":"punctuation.separator.arguments.gdscript","match":"(,)"},{"match":"\\b([a-zA-Z_]\\w*)\\s*(=)(?!=)","captures":{"1":{"name":"variable.parameter.function-call.gdscript"},"2":{"name":"keyword.operator.assignment.gdscript"}}},{"name":"keyword.operator.assignment.gdscript","match":"=(?!=)"},{"include":"#base_expression"},{"match":"\\s*(\\))\\s*(\\()","captures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"}}},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.gdscript"}}},"function_call":{"name":"meta.function-call.gdscript","begin":"(?=\\b[a-zA-Z_]\\w*\\b\\()","end":"(\\))","patterns":[{"include":"#function_name"},{"include":"#function_arguments"}],"endCaptures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"}}},"function_declaration":{"name":"meta.function.gdscript","begin":"(?x) \\s*\n (func) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()","end":"(:)","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"endCaptures":{"1":{"name":"punctuation.section.function.begin.gdscript"}}},"function_name":{"patterns":[{"include":"#builtin_classes"},{"name":"keyword.language.gdscript","match":"\\b(preload)\\b"},{"name":"entity.name.function.gdscript","match":"\\b([a-zA-Z_]\\w*)\\b"}]},"getter_setter_godot4":{"patterns":[{"name":"meta.variable.declaration.getter.gdscript","match":"(get)\\s*(:)","captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.separator.annotation.gdscript"}}},{"name":"meta.variable.declaration.setter.gdscript","match":"(set)\\s*(\\()\\s*([A-Za-z_]\\w*)\\s*(\\))\\s*(:)","captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"},"3":{"name":"variable.other.gdscript"},"4":{"name":"punctuation.definition.arguments.end.gdscript"},"5":{"name":"punctuation.separator.annotation.gdscript"}}}]},"in_keyword":{"patterns":[{"begin":"\\b(for)\\b","end":":","patterns":[{"name":"keyword.control.gdscript","match":"\\bin\\b"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}],"captures":{"1":{"name":"keyword.control.gdscript"}}},{"name":"keyword.operator.wordlike.gdscript","match":"\\bin\\b"}]},"keywords":{"name":"keyword.language.gdscript","match":"\\b(?:class|class_name|is|onready|tool|static|export|as|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super|self)\\b"},"lambda_declaration":{"name":"meta.function.gdscript","begin":"(func)\\s?(?=\\()","end":"(:|(?=[#'\"\\n]))","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"letter":{"name":"constant.language.gdscript","match":"\\b(?:true|false|null)\\b"},"line_continuation":{"patterns":[{"match":"(\\\\)\\s*(\\S.*$\\n?)","captures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"},"2":{"name":"invalid.illegal.line.continuation.gdscript"}}},{"begin":"(\\\\)\\s*$\\n?","end":"(?x)\n (?=^\\s*$)\n |\n (?! (\\s* [rR]? (\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))\n |\n (\\G $) (?# '\\G' is necessary for ST)\n )\n","patterns":[{"include":"#base_expression"}],"beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"}}}]},"loose_default":{"begin":"(=)","end":"(,)|(?=\\))","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.operator.gdscript"}},"endCaptures":{"1":{"name":"punctuation.separator.parameters.gdscript"}}},"match_keyword":{"match":"^\n\\s*(match)","captures":{"1":{"name":"keyword.control.gdscript"}}},"nodepath_function":{"name":"meta.function.gdscript","contentName":"meta.function.parameters.gdscript","begin":"(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(\\()","end":"(\\))","patterns":[{"name":"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript","begin":"(\"|')","end":"\\1","patterns":[{"name":"keyword.control.flow.gdscript","match":"%"}]},{"include":"#expression"}],"beginCaptures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.parameters.begin.gdscript"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}}},"nodepath_object":{"name":"meta.literal.nodepath.gdscript","begin":"(NodePath)\\s*(?:\\()","end":"(?:\\))","patterns":[{"name":"string.quoted.gdscript constant.character.escape.gdscript","begin":"(\"|')","end":"\\1","patterns":[{"name":"keyword.control.flow.gdscript","match":"%"}]}],"beginCaptures":{"1":{"name":"support.class.library.gdscript"}}},"numbers":{"patterns":[{"name":"constant.numeric.integer.binary.gdscript","match":"0b[01_]+"},{"name":"constant.numeric.integer.hexadecimal.gdscript","match":"0x[0-9A-Fa-f_]+"},{"name":"constant.numeric.float.gdscript","match":"\\.[0-9][0-9_]*([eE][+-]?[0-9_]+)?"},{"name":"constant.numeric.float.gdscript","match":"([0-9][0-9_]*)\\.[0-9_]*([eE][+-]?[0-9_]+)?"},{"name":"constant.numeric.float.gdscript","match":"([0-9][0-9_]*)?\\.[0-9_]*([eE][+-]?[0-9_]+)"},{"name":"constant.numeric.float.gdscript","match":"[0-9][0-9_]*[eE][+-]?[0-9_]+"},{"name":"constant.numeric.integer.gdscript","match":"[-]?[0-9][0-9_]*"}]},"operators":{"patterns":[{"include":"#wordlike_operator"},{"include":"#boolean_operator"},{"include":"#arithmetic_operator"},{"include":"#bitwise_operator"},{"include":"#compare_operator"}]},"parameters":{"name":"meta.function.parameters.gdscript","begin":"(\\()","end":"(\\))","patterns":[{"include":"#annotated_parameter"},{"match":"(?x)\n ([a-zA-Z_]\\w*)\n \\s* (?: (,) | (?=[)#\\n=]))\n","captures":{"1":{"name":"variable.parameter.function.language.gdscript"},"2":{"name":"punctuation.separator.parameters.gdscript"}}},{"include":"#comment"},{"include":"#loose_default"}],"beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.gdscript"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}}},"pascal_case_class":{"name":"entity.name.type.class.gdscript","match":"\\b[A-Z]+(?:[a-z]+[A-Za-z0-9_]*)+\\b"},"region":{"name":"keyword.language.region.gdscript","match":"#(end)?region.*$\\n?"},"round_braces":{"begin":"\\(","end":"\\)","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.end.gdscript"}}},"signal_declaration":{"name":"meta.signal.gdscript","begin":"(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()","end":"((?=[#'\"\\n]))","patterns":[{"include":"#parameters"},{"include":"#line_continuation"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"signal_declaration_bare":{"name":"meta.signal.gdscript","match":"(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*)(?=[\\n\\s])","captures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"square_braces":{"begin":"\\[","end":"\\]","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.definition.list.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.definition.list.end.gdscript"}}},"statement":{"patterns":[{"include":"#extends_statement"}]},"statement_keyword":{"patterns":[{"name":"keyword.control.flow.gdscript","match":"(?x)\n \\b(?\u003c!\\.)(\n continue | assert | break | elif | else | if | pass | return | while )\\b\n"},{"name":"storage.type.class.gdscript","match":"\\b(?\u003c!\\.)(class)\\b"},{"match":"(?x)\n ^\\s*(\n case | match\n )(?=\\s*([-+\\w\\d(\\[{'\":#]|$))\\b\n","captures":{"1":{"name":"keyword.control.flow.gdscript"}}}]},"string_bracket_placeholders":{"patterns":[{"name":"meta.format.brace.gdscript","match":"(?x)\n (\n {{ | }}\n | (?:\n {\n \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n (![rsa])?\n ( : \\w? [\u003c\u003e=^]? [-+ ]? \\#?\n \\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )?\n })\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"},"3":{"name":"storage.type.format.gdscript"},"4":{"name":"storage.type.format.gdscript"}}},{"name":"meta.format.brace.gdscript","match":"(?x)\n (\n {\n \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n (![rsa])?\n (:)\n [^'\"{}\\n]* (?:\n \\{ [^'\"}\\n]*? \\} [^'\"{}\\n]*\n )*\n }\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"},"3":{"name":"storage.type.format.gdscript"},"4":{"name":"storage.type.format.gdscript"}}}]},"string_percent_placeholders":{"name":"meta.format.percent.gdscript","match":"(?x)\n (\n % (\\([\\w\\s]*\\))?\n [-+#0 ]*\n (\\d+|\\*)? (\\.(\\d+|\\*))?\n ([hlL])?\n [diouxXeEfFgGcrsab%]\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"}}},"strings":{"name":"string.quoted.gdscript","begin":"(r)?(\"\"\"|'''|\"|')","end":"\\2","patterns":[{"name":"constant.character.escape.gdscript","match":"\\\\."},{"include":"#string_percent_placeholders"},{"include":"#string_bracket_placeholders"}],"beginCaptures":{"1":{"name":"constant.character.escape.gdscript"}}},"variable_declaration":{"name":"meta.variable.declaration.gdscript","begin":"\\b(?:(var)|(const))\\b","end":"$|;","patterns":[{"match":"(:)?\\s*(set|get)\\s+=\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}}},{"name":"keyword.operator.assignment.gdscript","match":":=|=(?!=)"},{"match":"(:)\\s*([a-zA-Z_]\\w*)?","captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.type.class.gdscript"}}},{"match":"(setget)\\s+([a-zA-Z_]\\w*)(?:[,]\\s*([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}}},{"include":"#expression"},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.var.gdscript"},"2":{"name":"keyword.language.gdscript storage.type.const.gdscript"}}},"wordlike_operator":{"name":"keyword.operator.wordlike.gdscript","match":"\\b(and|or|not)\\b"}}}
|
|
1
|
+
{"name":"GDScript","scopeName":"source.gdscript","patterns":[{"include":"#statement"},{"include":"#expression"}],"repository":{"annotated_parameter":{"begin":"(?x)\n \\s* ([a-zA-Z_]\\w*) \\s* (:)\\s* ([a-zA-Z_]\\w*)? \n","end":"(,)|(?=\\))","patterns":[{"include":"#expression"},{"name":"keyword.operator.assignment.gdscript","match":"=(?!=)"}],"beginCaptures":{"1":{"name":"variable.parameter.function.language.gdscript"},"2":{"name":"punctuation.separator.annotation.gdscript"},"3":{"name":"entity.name.type.class.gdscript"}},"endCaptures":{"1":{"name":"punctuation.separator.parameters.gdscript"}}},"annotations":{"match":"(@)(abstract|export|export_category|export_color_no_alpha|export_custom|export_dir|export_enum|export_exp_easing|export_file|export_file_path|export_flags|export_flags_2d_navigation|export_flags_2d_physics|export_flags_2d_render|export_flags_3d_navigation|export_flags_3d_physics|export_flags_3d_render|export_flags_avoidance|export_global_dir|export_global_file|export_group|export_multiline|export_node_path|export_placeholder|export_range|export_storage|export_subgroup|export_tool_button|icon|onready|rpc|static_unload|tool|warning_ignore|warning_ignore_restore|warning_ignore_start)\\b","captures":{"1":{"name":"entity.name.function.decorator.gdscript"},"2":{"name":"entity.name.function.decorator.gdscript"}}},"any_method":{"name":"entity.name.function.other.gdscript","match":"\\b([A-Za-z_]\\w*)\\b(?=\\s*(?:[(]))"},"any_property":{"match":"\\b(\\.)\\s*(?\u003c![@\\$#%])(?:([A-Z_][A-Z_0-9]*)|([A-Za-z_]\\w*))\\b(?![(])","captures":{"1":{"name":"punctuation.accessor.gdscript"},"2":{"name":"constant.language.gdscript"},"3":{"name":"variable.other.property.gdscript"}}},"any_variable":{"name":"variable.other.gdscript","match":"\\b(?\u003c![@\\$#%])([A-Za-z_]\\w*)\\b(?![(])"},"arithmetic_operator":{"name":"keyword.operator.arithmetic.gdscript","match":"-\u003e|\\+=|-=|\\*\\*=|\\*=|\\^=|/=|%=|\u0026=|~=|\\|=|\\*\\*|\\*|/|%|\\+|-"},"assignment_operator":{"name":"keyword.operator.assignment.gdscript","match":"="},"base_expression":{"patterns":[{"include":"#builtin_get_node_shorthand"},{"include":"#nodepath_object"},{"include":"#nodepath_function"},{"include":"#strings"},{"include":"#builtin_classes"},{"include":"#const_vars"},{"include":"#keywords"},{"include":"#operators"},{"include":"#lambda_declaration"},{"include":"#class_declaration"},{"include":"#variable_declaration"},{"include":"#signal_declaration_bare"},{"include":"#signal_declaration"},{"include":"#function_declaration"},{"include":"#statement_keyword"},{"include":"#assignment_operator"},{"include":"#in_keyword"},{"include":"#control_flow"},{"include":"#match_keyword"},{"include":"#curly_braces"},{"include":"#square_braces"},{"include":"#round_braces"},{"include":"#function_call"},{"include":"#region"},{"include":"#comment"},{"include":"#func"},{"include":"#letter"},{"include":"#numbers"},{"include":"#pascal_case_class"},{"include":"#line_continuation"}]},"bitwise_operator":{"name":"keyword.operator.bitwise.gdscript","match":"\u0026|\\||\u003c\u003c=|\u003e\u003e=|\u003c\u003c|\u003e\u003e|\\^|~"},"boolean_operator":{"name":"keyword.operator.boolean.gdscript","match":"(\u0026\u0026|\\|\\|)"},"builtin_classes":{"name":"entity.name.type.class.builtin.gdscript","match":"(?\u003c![^.]\\.|:)\\b(Vector2|Vector2i|Vector3|Vector3i|Vector4|Vector4i|Color|Rect2|Rect2i|Array|Basis|Dictionary|Plane|Quat|RID|Rect3|Transform|Transform2D|Transform3D|AABB|String|Color|NodePath|PoolByteArray|PoolIntArray|PoolRealArray|PoolStringArray|PoolVector2Array|PoolVector3Array|PoolColorArray|bool|int|float|Signal|Callable|StringName|Quaternion|Projection|PackedByteArray|PackedInt32Array|PackedInt64Array|PackedFloat32Array|PackedFloat64Array|PackedStringArray|PackedVector2Array|PackedVector2iArray|PackedVector3Array|PackedVector3iArray|PackedVector4Array|PackedColorArray|JSON|UPNP|OS|IP|JSONRPC|XRVRS|Variant|void)\\b"},"builtin_get_node_shorthand":{"patterns":[{"include":"#builtin_get_node_shorthand_quoted"},{"include":"#builtin_get_node_shorthand_bare"},{"include":"#builtin_get_node_shorthand_bare_multi"}]},"builtin_get_node_shorthand_bare":{"name":"meta.literal.nodepath.bare.gdscript","captures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"constant.character.escape.gdscript"},"3":{"name":"constant.character.escape.gdscript"},"4":{"name":"constant.character.escape.gdscript"}}},"builtin_get_node_shorthand_bare_multi":{"name":"meta.literal.nodepath.bare.gdscript","begin":"(\\$\\s*|%|\\$%\\s*)(/\\s*)?([a-zA-Z_]\\w*)","end":"(?!\\s*/\\s*%?\\s*[a-zA-Z_]\\w*)","patterns":[{"match":"(/)\\s*(%)?\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"constant.character.escape.gdscript"},"2":{"name":"keyword.control.flow.gdscript"},"3":{"name":"constant.character.escape.gdscript"}}}],"beginCaptures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"constant.character.escape.gdscript"},"3":{"name":"constant.character.escape.gdscript"}}},"builtin_get_node_shorthand_quoted":{"name":"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript","begin":"(?:(\\$|%)|(\u0026|\\^|@))(\"|')","end":"(\\3)","patterns":[{"name":"keyword.control.flow","match":"%"}],"beginCaptures":{"1":{"name":"keyword.control.flow.gdscript"},"2":{"name":"variable.other.enummember.gdscript"}}},"class_declaration":{"match":"(?\u003c=^class)\\s+([a-zA-Z_]\\w*)\\s*(?=:)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"class.other.gdscript"}}},"class_enum":{"match":"\\b([A-Z][a-zA-Z_0-9]*)\\.([A-Z_0-9]+)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"variable.other.enummember.gdscript"}}},"class_is":{"match":"\\s+(is)\\s+(not?)\\s+\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"storage.type.is.gdscript"},"2":{"name":"storage.type.not.gdscript"},"3":{"name":"entity.name.type.class.gdscript"}}},"class_name":{"match":"(?\u003c=class_name)\\s+([a-zA-Z_]\\w*(\\.([a-zA-Z_]\\w*))?)","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"class.other.gdscript"}}},"class_new":{"match":"\\b([a-zA-Z_]\\w*).(new)\\(","captures":{"1":{"name":"entity.name.type.class.gdscript"},"2":{"name":"storage.type.new.gdscript"},"3":{"name":"punctuation.parenthesis.begin.gdscript"}}},"comment":{"name":"comment.line.number-sign.gdscript","match":"(##|#).*$\\n?","captures":{"1":{"name":"punctuation.definition.comment.number-sign.gdscript"}}},"compare_operator":{"name":"keyword.operator.comparison.gdscript","match":"\u003c=|\u003e=|==|\u003c|\u003e|!=|!"},"const_vars":{"name":"variable.other.constant.gdscript","match":"\\b([A-Z_][A-Z_0-9]*)\\b"},"control_flow":{"name":"keyword.control.gdscript","match":"\\b(?:if|elif|else|while|break|continue|pass|return|when|yield|await)\\b"},"curly_braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.definition.dict.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.definition.dict.end.gdscript"}}},"expression":{"patterns":[{"include":"#getter_setter_godot4"},{"include":"#base_expression"},{"include":"#assignment_operator"},{"include":"#annotations"},{"include":"#class_name"},{"include":"#builtin_classes"},{"include":"#class_new"},{"include":"#class_is"},{"include":"#class_enum"},{"include":"#any_method"},{"include":"#any_variable"},{"include":"#any_property"}]},"extends_statement":{"match":"(extends)\\s+([a-zA-Z_]\\w*\\.[a-zA-Z_]\\w*)?","captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.other.inherited-class.gdscript"}}},"func":{"name":"keyword.language.gdscript storage.type.function.gdscript","match":"\\bfunc\\b"},"function_arguments":{"contentName":"meta.function.parameters.gdscript","begin":"(\\()","end":"(?=\\))(?!\\)\\s*\\()","patterns":[{"name":"punctuation.separator.arguments.gdscript","match":"(,)"},{"match":"\\b([a-zA-Z_]\\w*)\\s*(=)(?!=)","captures":{"1":{"name":"variable.parameter.function-call.gdscript"},"2":{"name":"keyword.operator.assignment.gdscript"}}},{"name":"keyword.operator.assignment.gdscript","match":"=(?!=)"},{"include":"#base_expression"},{"match":"\\s*(\\))\\s*(\\()","captures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"}}},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"punctuation.definition.arguments.begin.gdscript"}}},"function_call":{"name":"meta.function-call.gdscript","begin":"(?=\\b[a-zA-Z_]\\w*\\b\\()","end":"(\\))","patterns":[{"include":"#function_name"},{"include":"#function_arguments"}],"endCaptures":{"1":{"name":"punctuation.definition.arguments.end.gdscript"}}},"function_declaration":{"name":"meta.function.gdscript","begin":"(?x) \\s*\n (func) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()","end":"(:)|\n","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}},"endCaptures":{"1":{"name":"punctuation.section.function.begin.gdscript"}}},"function_name":{"patterns":[{"include":"#builtin_classes"},{"name":"keyword.language.gdscript","match":"\\b(preload)\\b"},{"name":"entity.name.function.gdscript","match":"\\b([a-zA-Z_]\\w*)\\b"}]},"getter_setter_godot4":{"patterns":[{"name":"meta.variable.declaration.getter.gdscript","match":"(get)\\s*(:)","captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.separator.annotation.gdscript"}}},{"name":"meta.variable.declaration.setter.gdscript","match":"(set)\\s*(\\()\\s*([A-Za-z_]\\w*)\\s*(\\))\\s*(:)","captures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.arguments.begin.gdscript"},"3":{"name":"variable.other.gdscript"},"4":{"name":"punctuation.definition.arguments.end.gdscript"},"5":{"name":"punctuation.separator.annotation.gdscript"}}}]},"in_keyword":{"patterns":[{"begin":"\\b(for)\\b","end":":","patterns":[{"name":"keyword.control.gdscript","match":"\\bin\\b"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}],"captures":{"1":{"name":"keyword.control.gdscript"}}},{"name":"keyword.operator.wordlike.gdscript","match":"\\bin\\b"}]},"keywords":{"name":"keyword.language.gdscript","match":"\\b(?:class|class_name|is|onready|tool|static|export|as|enum|assert|breakpoint|sync|remote|master|puppet|slave|remotesync|mastersync|puppetsync|trait|namespace|super|self)\\b"},"lambda_declaration":{"name":"meta.function.gdscript","begin":"(func)\\s?(?=\\()","end":"(:|(?=[#'\"\\n]))","patterns":[{"include":"#parameters"},{"include":"#line_continuation"},{"include":"#base_expression"},{"include":"#any_variable"},{"include":"#any_property"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"letter":{"name":"constant.language.gdscript","match":"\\b(?:true|false|null)\\b"},"line_continuation":{"patterns":[{"match":"(\\\\)\\s*(\\S.*$\\n?)","captures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"},"2":{"name":"invalid.illegal.line.continuation.gdscript"}}},{"begin":"(\\\\)\\s*$\\n?","end":"(?x)\n (?=^\\s*$)\n |\n (?! (\\s* [rR]? (\\'\\'\\'|\\\"\\\"\\\"|\\'|\\\"))\n |\n (\\G $) (?# '\\G' is necessary for ST)\n )\n","patterns":[{"include":"#base_expression"}],"beginCaptures":{"1":{"name":"punctuation.separator.continuation.line.gdscript"}}}]},"loose_default":{"begin":"(=)","end":"(,)|(?=\\))","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"keyword.operator.gdscript"}},"endCaptures":{"1":{"name":"punctuation.separator.parameters.gdscript"}}},"match_keyword":{"match":"^\n\\s*(match)","captures":{"1":{"name":"keyword.control.gdscript"}}},"nodepath_function":{"name":"meta.function.gdscript","contentName":"meta.function.parameters.gdscript","begin":"(get_node_or_null|has_node|has_node_and_resource|find_node|get_node)\\s*(\\()","end":"(\\))","patterns":[{"name":"string.quoted.gdscript meta.literal.nodepath.gdscript constant.character.escape.gdscript","begin":"(\"|')","end":"\\1","patterns":[{"name":"keyword.control.flow.gdscript","match":"%"}]},{"include":"#expression"}],"beginCaptures":{"1":{"name":"entity.name.function.gdscript"},"2":{"name":"punctuation.definition.parameters.begin.gdscript"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}}},"nodepath_object":{"name":"meta.literal.nodepath.gdscript","begin":"(NodePath)\\s*(?:\\()","end":"(?:\\))","patterns":[{"name":"string.quoted.gdscript constant.character.escape.gdscript","begin":"(\"|')","end":"\\1","patterns":[{"name":"keyword.control.flow.gdscript","match":"%"}]}],"beginCaptures":{"1":{"name":"support.class.library.gdscript"}}},"numbers":{"patterns":[{"name":"constant.numeric.integer.binary.gdscript","match":"0b[01_]+"},{"name":"constant.numeric.integer.hexadecimal.gdscript","match":"0x[0-9A-Fa-f_]+"},{"name":"constant.numeric.float.gdscript","match":"\\.[0-9][0-9_]*([eE][+-]?[0-9_]+)?"},{"name":"constant.numeric.float.gdscript","match":"([0-9][0-9_]*)\\.[0-9_]*([eE][+-]?[0-9_]+)?"},{"name":"constant.numeric.float.gdscript","match":"([0-9][0-9_]*)?\\.[0-9_]*([eE][+-]?[0-9_]+)"},{"name":"constant.numeric.float.gdscript","match":"[0-9][0-9_]*[eE][+-]?[0-9_]+"},{"name":"constant.numeric.integer.gdscript","match":"[-]?[0-9][0-9_]*"}]},"operators":{"patterns":[{"include":"#wordlike_operator"},{"include":"#boolean_operator"},{"include":"#arithmetic_operator"},{"include":"#bitwise_operator"},{"include":"#compare_operator"}]},"parameters":{"name":"meta.function.parameters.gdscript","begin":"(\\()","end":"(\\))","patterns":[{"include":"#annotated_parameter"},{"match":"(?x)\n ([a-zA-Z_]\\w*)\n \\s* (?: (,) | (?=[)#\\n=]))\n","captures":{"1":{"name":"variable.parameter.function.language.gdscript"},"2":{"name":"punctuation.separator.parameters.gdscript"}}},{"include":"#comment"},{"include":"#loose_default"}],"beginCaptures":{"1":{"name":"punctuation.definition.parameters.begin.gdscript"}},"endCaptures":{"1":{"name":"punctuation.definition.parameters.end.gdscript"}}},"pascal_case_class":{"name":"entity.name.type.class.gdscript","match":"\\b[A-Z]+(?:[a-z]+[A-Za-z0-9_]*)+\\b"},"region":{"name":"keyword.language.region.gdscript","match":"#(end)?region.*$\\n?"},"round_braces":{"begin":"\\(","end":"\\)","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.end.gdscript"}}},"signal_declaration":{"name":"meta.signal.gdscript","begin":"(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*) \\s*\n (?=\\()","end":"((?=[#'\"\\n]))","patterns":[{"include":"#parameters"},{"include":"#line_continuation"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"signal_declaration_bare":{"name":"meta.signal.gdscript","match":"(?x) \\s*\n (signal) \\s+\n ([a-zA-Z_]\\w*)(?=[\\n\\s])","captures":{"1":{"name":"keyword.language.gdscript storage.type.function.gdscript"},"2":{"name":"entity.name.function.gdscript"}}},"square_braces":{"begin":"\\[","end":"\\]","patterns":[{"include":"#base_expression"},{"include":"#any_variable"}],"beginCaptures":{"0":{"name":"punctuation.definition.list.begin.gdscript"}},"endCaptures":{"0":{"name":"punctuation.definition.list.end.gdscript"}}},"statement":{"patterns":[{"include":"#extends_statement"}]},"statement_keyword":{"patterns":[{"name":"keyword.control.flow.gdscript","match":"(?x)\n \\b(?\u003c!\\.)(\n continue | assert | break | elif | else | if | pass | return | while )\\b\n"},{"name":"storage.type.class.gdscript","match":"\\b(?\u003c!\\.)(class)\\b"},{"match":"(?x)\n ^\\s*(\n case | match\n )(?=\\s*([-+\\w\\d(\\[{'\":#]|$))\\b\n","captures":{"1":{"name":"keyword.control.flow.gdscript"}}}]},"string_bracket_placeholders":{"patterns":[{"name":"meta.format.brace.gdscript","match":"(?x)\n (\n {{ | }}\n | (?:\n {\n \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n (![rsa])?\n ( : \\w? [\u003c\u003e=^]? [-+ ]? \\#?\n \\d* ,? (\\.\\d+)? [bcdeEfFgGnosxX%]? )?\n })\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"},"3":{"name":"storage.type.format.gdscript"},"4":{"name":"storage.type.format.gdscript"}}},{"name":"meta.format.brace.gdscript","match":"(?x)\n (\n {\n \\w* (\\.[[:alpha:]_]\\w* | \\[[^\\]'\"]+\\])*\n (![rsa])?\n (:)\n [^'\"{}\\n]* (?:\n \\{ [^'\"}\\n]*? \\} [^'\"{}\\n]*\n )*\n }\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"},"3":{"name":"storage.type.format.gdscript"},"4":{"name":"storage.type.format.gdscript"}}}]},"string_percent_placeholders":{"name":"meta.format.percent.gdscript","match":"(?x)\n (\n % (\\([\\w\\s]*\\))?\n [-+#0 ]*\n (\\d+|\\*)? (\\.(\\d+|\\*))?\n ([hlL])?\n [diouxXeEfFgGcrsab%]\n )\n","captures":{"1":{"name":"constant.character.format.placeholder.other.gdscript"}}},"strings":{"name":"string.quoted.gdscript","begin":"(r)?(\"\"\"|'''|\"|')","end":"\\2","patterns":[{"name":"constant.character.escape.gdscript","match":"\\\\."},{"include":"#string_percent_placeholders"},{"include":"#string_bracket_placeholders"}],"beginCaptures":{"1":{"name":"constant.character.escape.gdscript"}}},"variable_declaration":{"name":"meta.variable.declaration.gdscript","begin":"\\b(?:(var)|(const))\\b","end":"$|;","patterns":[{"match":"(:)?\\s*(set|get)\\s+=\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}}},{"name":"keyword.operator.assignment.gdscript","match":":=|=(?!=)"},{"match":"(:)\\s*([a-zA-Z_]\\w*)?","captures":{"1":{"name":"punctuation.separator.annotation.gdscript"},"2":{"name":"entity.name.type.class.gdscript"}}},{"match":"(setget)\\s+([a-zA-Z_]\\w*)(?:[,]\\s*([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.language.gdscript"},"2":{"name":"entity.name.function.gdscript"},"3":{"name":"entity.name.function.gdscript"}}},{"include":"#expression"},{"include":"#letter"},{"include":"#any_variable"},{"include":"#any_property"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.language.gdscript storage.type.var.gdscript"},"2":{"name":"keyword.language.gdscript storage.type.const.gdscript"}}},"wordlike_operator":{"name":"keyword.operator.wordlike.gdscript","match":"\\b(and|or|not)\\b"}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"GIMP Configuration","scopeName":"source.gimprc","patterns":[{"include":"#main"}],"repository":{"arrow":{"name":"punctuation.separator.arrow.gimprc","match":"-\u003e"},"boolean":{"name":"constant.logical.bool.boolean.${1:/downcase}.gimprc","match":"(?i)(?:^|(?\u003c=[\\s()\";]))\\b(yes|no)\\b(?=$|[\\s()\";])"},"char":{"patterns":[{"name":"constant.character.hex-literal.gimprc","match":"(#\\\\)x[0-9A-Fa-f]{2}","captures":{"1":{"name":"punctuation.definition.escape.character.gimprc"}}},{"name":"constant.character.named.${2:/downcase}.gimprc","match":"(?xi)\n(\\#\\\\)\n(space|newline|return|tab|ack|bel|bs|can|cr|dc[1-4]\n|del|dle|em|enq|eot|esc|etv|etx|ff|fs|gs|ht|lf|nak\n|nul|rs|si|soh|so|stx|sub|syn|us|vt)","captures":{"1":{"name":"punctuation.definition.escape.character.gimprc"}}},{"name":"constant.character.single.gimprc","match":"(#\\\\).","captures":{"1":{"name":"punctuation.definition.escape.character.gimprc"}}}]},"comment":{"name":"comment.line.number-sign.gimprc","begin":"^#","end":"(?=\\s*$)","beginCaptures":{"0":{"name":"punctuation.definition.comment.gimprc"}}},"constants":{"patterns":[{"name":"constant.language.boolean.true.gimprc","match":"(#)t","captures":{"1":{"name":"punctuation.definition.boolean.gimprc"}}},{"name":"constant.language.boolean.false.gimprc","match":"(#)f","captures":{"1":{"name":"punctuation.definition.boolean.gimprc"}}}]},"expr":{"patterns":[{"name":"meta.expression.${2:/downcase}.gimprc","begin":"(\\()(image-(?:status|title)-format)(?=$|\\s)","end":"\\)","patterns":[{"name":"string.quoted.double.format.gimprc","begin":"\"","end":"\"","patterns":[{"include":"#placeholders"},{"include":"#stringInnards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.gimprc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.gimprc"}}}],"beginCaptures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"variable.property.gimprc"}},"endCaptures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"meta.expression.${2:/downcase}.gimprc","begin":"(\\()([A-Za-z0-9][-A-Za-z0-9!$%\u0026*+,./:\u003c=\u003e?@^_~]*(?=$|\\s|\\)))?","end":"\\)","patterns":[{"include":"#values"}],"beginCaptures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"variable.property.gimprc"}},"endCaptures":{"0":{"patterns":[{"include":"#punct"}]}}}]},"interpolations":{"patterns":[{"name":"keyword.operator.tilde.homedir.gimprc","match":"~"},{"name":"variable.other.bracket.environment.shell.gimprc","contentName":"brackethighlighter.unmatched","begin":"(\\${)","end":"((}))|([^}\"]*)(?=\"|$)","beginCaptures":{"0":{"name":"punctuation.definition.variable.begin.shell.gimprc"},"1":{"name":"brackethighlighter.curly"}},"endCaptures":{"1":{"name":"punctuation.definition.variable.end.shell.gimprc"},"2":{"name":"brackethighlighter.curly"},"3":{"name":"invalid.illegal.syntax.unclosed-bracket.shell.gimprc"}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#expr"}]},"number":{"patterns":[{"name":"constant.numeric.integer.memsize.gimprc","match":"(?i)(?\u003c=[\\s()\\[]|^)\\d+([BKMG])\\b","captures":{"0":{"name":"constant.numeric.integer.decimal.filesize.gimprc"},"1":{"name":"keyword.other.unit.filesize.gimprc"}}},{"name":"constant.numeric.integer.binary.gimprc","match":"(?\u003c=[\\s()\\[]|^)(#)b[01]+","captures":{"1":{"name":"punctuation.definition.binary.gimprc"}}},{"name":"constant.numeric.integer.octal.gimprc","match":"(?\u003c=[\\s()\\[]|^)(#)o[0-7]+","captures":{"1":{"name":"punctuation.definition.oct.gimprc"}}},{"name":"constant.numeric.integer.decimal.gimprc","match":"(?\u003c=[\\s()\\[]|^)(#)d[0-9]+","captures":{"1":{"name":"punctuation.definition.decimal.gimprc"}}},{"name":"constant.numeric.integer.hex.gimprc","match":"(?\u003c=[\\s()\\[]|^)(#)x[0-9A-Fa-f]+","captures":{"1":{"name":"punctuation.definition.hex.gimprc"}}},{"include":"etc#num"}]},"placeholders":{"patterns":[{"name":"constant.character.escape.placeholder.gimprc","match":"(%)%","captures":{"1":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.bare-filename.gimprc","match":"%f","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.file-path.gimprc","match":"%F","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.pdb-image-id.gimprc","match":"%p","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.view-instance-number.gimprc","match":"%i","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.image-type.gimprc","match":"%t","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.zoom-factor.gimprc","match":"%z","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.source-scale-factor.gimprc","match":"%s","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.destination-scale-factor.gimprc","match":"%d","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.conditional.if-modified.gimprc","match":"%B","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.conditional.if-clean.gimprc","match":"%A","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.layer-count.gimprc","match":"%l","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.layer-count-long.gimprc","match":"%L","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.memory-usage.gimprc","match":"%m","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-name.gimprc","match":"%n","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-pbd-id.gimprc","match":"%P","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.image-width-in-pixels.gimprc","match":"%w","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.image-width-in-units.gimprc","match":"%W","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.image-height-in-pixels.gimprc","match":"%h","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.image-height-in-units.gimprc","match":"%H","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.size-in-megapixels.gimprc","match":"%M","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.unit-symbol.gimprc","match":"%u","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.unit-abbreviation.gimprc","match":"%U","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-width-in-pixels.gimprc","match":"%x","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-width-in-units.gimprc","match":"%X","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-height-in-pixels.gimprc","match":"%y","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.active-layer-height-in-units.gimprc","match":"%Y","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.colour-profile-name.gimprc","match":"%o","captures":{"0":{"patterns":[{"include":"#punct"}]}}},{"name":"constant.other.placeholder.conditional.if-dirty.gimprc","match":"(%)D(.)","captures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"constant.character.variable.placeholder.gimprc"}}},{"name":"constant.other.placeholder.conditional.if-clean.gimprc","match":"(%)C(.)","captures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"constant.character.variable.placeholder.gimprc"}}},{"name":"constant.other.placeholder.conditional.if-export-dirty.gimprc","match":"(%)N(.)","captures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"constant.character.variable.placeholder.gimprc"}}},{"name":"constant.other.placeholder.conditional.if-export-clean.gimprc","match":"(%)E(.)","captures":{"1":{"patterns":[{"include":"#punct"}]},"2":{"name":"constant.character.variable.placeholder.gimprc"}}}]},"punct":{"patterns":[{"name":"punctuation.definition.placeholder.gimprc","match":"%","captures":{"0":{"name":"meta.separator"}}},{"name":"punctuation.section.expression.begin.gimprc","match":"\\(","captures":{"0":{"name":"brackethighlighter.round"}}},{"name":"punctuation.section.expression.end.gimprc","match":"\\)","captures":{"0":{"name":"brackethighlighter.round"}}},{"name":"punctuation.definition.escape.gimprc","match":"\\\\","captures":{"0":{"name":"sublimelinter.gutter-mark"}}}]},"string":{"name":"string.quoted.double.gimprc","begin":"\"","end":"\"","patterns":[{"include":"#stringInnards"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.gimprc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.gimprc"}}},"stringInnards":{"patterns":[{"name":"constant.character.escape.gimprc","match":"(\\\\)(?:[\"nrt\\\\]|x[0-9A-Fa-f]{2}|[0-7]{1,3})","captures":{"1":{"patterns":[{"include":"#punct"}]}}},{"include":"#interpolations"}]},"symbol":{"name":"constant.other.symbol.gimprc","match":"(')([A-Za-z0-9][-A-Za-z0-9!$%\u0026*+,./:\u003c=\u003e?@^_~]*)","captures":{"1":{"name":"punctuation.section.quoted.symbol.gimprc"},"2":{"patterns":[{"include":"#arrow"}]}}},"values":{"patterns":[{"include":"#string"},{"include":"#expr"},{"include":"#char"},{"include":"#number"},{"include":"#symbol"},{"include":"#constants"},{"include":"#boolean"},{"include":"#variable"}]},"variable":{"name":"constant.language.variable-name.gimprc","match":"[A-Za-z0-9][-A-Za-z0-9!$%\u0026*+,./:\u003c=\u003e?@^_~]*","captures":{"0":{"patterns":[{"include":"#arrow"}]}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"GIMP Resource","scopeName":"source.gimpres","patterns":[{"include":"#main"}],"repository":{"brush":{"name":"meta.brush.gimpres","begin":"\\A(?=GIMP-VBR$)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","begin":"\\A(GIMP-VBR)$","end":"^\\s*(\\S+.*?)(?=\\s*$)","patterns":[{"begin":"\\G(?=$)|^(?=\\d+(?:\\.\\d+)?$)","end":"^(\\d+(?:\\.\\d+)?)$","endCaptures":{"1":{"name":"constant.numeric.version-number.gimpres"}}}],"beginCaptures":{"1":{"name":"keyword.control.signature.gimpres"}},"endCaptures":{"1":{"name":"entity.name.tag.resource.gimpres"}},"applyEndPatternLast":true},{"name":"constant.language.brush-shape.$1.gimpres","match":"^(circle|diamond|square)$"},{"include":"etc#comment"},{"include":"etc#num"}]},"columnsField":{"name":"meta.field.columns.gimpres","begin":"^(Columns(:))[ \\t]*","end":"(?=\\s*$)","patterns":[{"match":"\\G\\d+","captures":{"0":{"patterns":[{"include":"etc#intNoExp"}]}}},{"name":"invalid.illegal.syntax.gimpres","begin":"(?=(?!\\G)\\d|[^\\s\\d])","end":"(?=\\s*$)"}],"beginCaptures":{"1":{"name":"variable.assignment.columns.gimpres"},"2":{"patterns":[{"include":"etc#kolon"}]}}},"fractal":{"name":"meta.fractal.gimpres","begin":"\\A(?=Fractal Explorer Plug-In Version \\d)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","begin":"(?i)\\A(Fractal Explorer Plug-In Version (\\d+(?:\\.\\d+)*))","end":"$","patterns":[{"match":"\\s*(-)\\s*((?:\\([Cc]\\)|©))\\s+(\\d{4})\\s+(\u003c[^\u003c\u003e]+\u003e)","captures":{"1":{"name":"meta.separator.dash.gimpres"},"2":{"name":"constant.character.copyright-symbol.gimpres"},"3":{"name":"constant.numeric.copyright-year.gimpres"},"4":{"patterns":[{"include":"etc#emailBracketed"}]}}}],"beginCaptures":{"1":{"name":"keyword.control.signature.gimpres"},"2":{"name":"ignore-github.constant.numeric.format-version.gimpres"}}},{"begin":"(?!\\A)^","end":"$","patterns":[{"include":"#gfigField"},{"include":"etc#comment"},{"name":"keyword.control.directive.eof.gimpres","match":"^(\u003c)EOF(\u003e)$","captures":{"1":{"name":"punctuation.definition.directive.begin.gimpres"},"2":{"name":"punctuation.definition.directive.end.gimpres"}}}]}]},"gfig":{"name":"meta.gfig-drawing.gimpres","begin":"\\A(?=GFIG Version \\d+(?:\\.\\d+)*$)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","match":"\\A(GFIG Version (\\d+(?:\\.\\d+)*)$)","captures":{"1":{"name":"keyword.control.signature.gimpres"},"2":{"name":"ignore-github.constant.numeric.format-version.gimpres"}}},{"include":"#gfigField"},{"include":"#gfigTag"}]},"gfigField":{"patterns":[{"name":"meta.field.name.gimpres","contentName":"string.unquoted.resource-name.gimpres","begin":"^(Name(:))[ \\t]*","end":"(?=\\s*$)","patterns":[{"include":"#octalEscape"}],"beginCaptures":{"1":{"name":"variable.assignment.name.gimpres"},"2":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.field.gimpres","begin":"^(\\w+(:))[ \\t]*","end":"(?=\\s*$)","patterns":[{"include":"etc#num"},{"name":"constant.language.boolean.${1:/downcase}.gimpres","match":"(?:\\G|(?\u003c=\\s))(TRUE|FALSE)(?=$|\\s)"},{"name":"string.unquoted.bareword.gimpres","match":"(?!\\d)[-\\w]+"}],"beginCaptures":{"1":{"name":"variable.assignment.gimpres"},"2":{"patterns":[{"include":"etc#kolon"}]}}}]},"gfigTag":{"name":"meta.section.${3:/downcase}.gimpres","begin":"^((\u003c))(\\w+)((\u003e))$","end":"^((\u003c/))(\\3)((\u003e))$","patterns":[{"begin":"(?\u003c=\u003cOPTIONS\u003e)\\G","end":"(?=^\u003c/OPTIONS\u003e$)","patterns":[{"include":"#gfigField"}]},{"include":"etc#num"},{"include":"#gfigTag"}],"captures":{"0":{"name":"meta.tag.section.gimpres"},"1":{"name":"punctuation.definition.tag.begin.gimpres"},"2":{"name":"brackethighlighter.angle"},"3":{"name":"entity.name.tag.section.gimpres"},"4":{"name":"punctuation.definition.tag.end.gimpres"},"5":{"name":"brackethighlighter.angle"}}},"gflare":{"name":"meta.gradient-flare.gimpres","begin":"\\A(?=GIMP GFlare \\d+(?:\\.\\d+)*$)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","match":"\\A(GIMP GFlare (\\d+(?:\\.\\d+)*)$)","captures":{"1":{"name":"keyword.control.signature.gimpres"},"2":{"name":"ignore-github.constant.numeric.format-version.gimpres"}}},{"name":"meta.paint-options.gimpres","match":"^(\\d+(?:\\.\\d+)?) ([A-Z]+)$","captures":{"1":{"name":"constant.numeric.decimal.opacity.gimpres"},"2":{"name":"storage.modifier.blending-mode.gimpres"}}},{"begin":"^(?=\\s*-?\\d+(?:\\.\\d+)?\\s+-?\\d)","end":"(?=\\s*$)","patterns":[{"include":"etc#num"}]},{"name":"meta.secondary-flare-shape.gimpres","match":"^(POLYGON|CIRCLE)\\s+(\\d+)(?:\\s+(\\d+))?[ \\t]*$","captures":{"1":{"name":"storage.type.shape.${1:/downcase}.gimpres"},"2":{"name":"constant.numeric.decimal.number-of-sides.gimpres"},"3":{"name":"constant.numeric.decimal.random-seed.gimpres"}}},{"name":"meta.gradient-specifier.gimpres","match":"^(%)\\w+$","captures":{"0":{"name":"keyword.operator.built-in.gradient-name.gimpres"},"1":{"name":"punctuation.definition.gradient-name.gimpres"}}},{"name":"meta.gradient-specifier.gimpres","match":"^\\s*(\\S[^\\r\\n]*)","captures":{"0":{"name":"entity.name.gradient.user-defined.gimpres"},"1":{"patterns":[{"include":"#octalEscape"}]}}}]},"gimpressionist":{"name":"meta.gimpressionist-preset.gimpres","begin":"\\A(?=Preset$)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","match":"\\APreset$","captures":{"0":{"name":"keyword.control.signature.gimpres"}}},{"include":"source.ini"}]},"gradient":{"name":"meta.gradient.gimpres","begin":"\\A(?=GIMP Gradient$)","end":"(?=A)B","patterns":[{"name":"meta.header.gimpres","begin":"\\A(GIMP Gradient)$[\\r\\n]*","end":"^","patterns":[{"include":"#nameField"},{"name":"meta.number-of-segments.gimpres","match":"^(\\d+)[ \\t]*$","captures":{"1":{"patterns":[{"include":"etc#intNoExp"}]}}}],"beginCaptures":{"1":{"name":"keyword.control.signature.gimpres"}},"applyEndPatternLast":true},{"name":"meta.segment.gimpres","begin":"(?!\\A)^(?=\\s*-?\\d+(?:\\.\\d+)?\\s+\\d)","end":"(?=\\s*$)","patterns":[{"include":"etc#num"}]}]},"main":{"patterns":[{"include":"#brush"},{"include":"#gradient"},{"include":"#fractal"},{"include":"#palette"},{"include":"#gfig"},{"include":"#gflare"},{"include":"#gimpressionist"}]},"nameField":{"name":"meta.field.name.gimpres","contentName":"entity.name.resource.gimpres","begin":"^(Name(:))[ \\t]*","end":"(?=\\s*$)","beginCaptures":{"1":{"name":"variable.assignment.name.gimpres"},"2":{"patterns":[{"include":"etc#kolon"}]}}},"octalEscape":{"name":"constant.character.escape.octal.gimpres","match":"(\\\\)[0-7]{3}","captures":{"1":{"name":"punctuation.definition.escape.backslash.gimpres"}}},"palette":{"name":"meta.palette.gimpres","begin":"\\A(?=GIMP Palette$)","end":"(?=A)B","patterns":[{"name":"meta.palette.gimpres","begin":"\\A(GIMP Palette)$[\\r\\n]*","end":"^","patterns":[{"include":"#nameField"},{"include":"#columnsField"}],"beginCaptures":{"1":{"name":"keyword.control.signature.gimpres"}},"applyEndPatternLast":true},{"include":"etc#comment"},{"name":"meta.palette-colour.gimpres","contentName":"entity.name.tag.colour.gimpres","begin":"^\\s*(\\d+)\\s+(\\d+)\\s+(\\d+)(?:$|[ \\t]*)","end":"(?=\\s*$)","beginCaptures":{"1":{"name":"constant.numeric.integer.colour-component.red.gimpres"},"2":{"name":"constant.numeric.integer.colour-component.green.gimpres"},"3":{"name":"constant.numeric.integer.colour-component.blue.gimpres"}}}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"GraphQL","scopeName":"source.graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"match":"\\s*(\u0026)","captures":{"1":{"name":"keyword.operator.logical.graphql"}}},"graphql-arguments":{"name":"meta.arguments.graphql","begin":"\\s*(\\()","end":"\\s*(\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?:\\s*(:))","end":"(?=\\s*(?:(?:([_A-Za-z][_0-9A-Za-z]*)\\s*(:))|\\)))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"endCaptures":{"3":{"name":"punctuation.comma.graphql"}}},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}}},"graphql-boolean-value":{"match":"\\s*\\b(true|false)\\b","captures":{"1":{"name":"constant.language.boolean.graphql"}}},"graphql-colon":{"match":"\\s*(:)","captures":{"1":{"name":"punctuation.colon.graphql"}}},"graphql-comma":{"match":"\\s*(,)","captures":{"1":{"name":"punctuation.comma.graphql"}}},"graphql-comment":{"patterns":[{"name":"comment.line.graphql.js","match":"(\\s*)(#).*","captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}},{"name":"comment.line.graphql.js","begin":"(\"\"\")","end":"(\"\"\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}},{"name":"comment.line.graphql.js","begin":"(\")","end":"(\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}}]},"graphql-description-docstring":{"name":"comment.block.graphql","begin":"\"\"\"","end":"\"\"\""},"graphql-description-singleline":{"name":"comment.line.number-sign.graphql","match":"#(?=([^\"]*\"[^\"]*\")*[^\"]*$).*$"},"graphql-directive":{"begin":"\\s*((@)\\s*([_A-Za-z][_0-9A-Za-z]*))","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"applyEndPatternLast":true},"graphql-directive-definition":{"begin":"\\s*(\\bdirective\\b)\\s*(@[_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"begin":"\\s*(\\brepeatable\\b)?\\s*(\\bon\\b)\\s*([_A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"match":"\\s*(\\|)\\s*([_A-Za-z]*)","captures":{"2":{"name":"support.type.location.graphql"}}}],"beginCaptures":{"1":{"name":"keyword.repeatable.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.location.graphql"}},"applyEndPatternLast":true},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.repeatable.graphql"},"4":{"name":"keyword.on.graphql"},"5":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-enum":{"name":"meta.enum.graphql","begin":"\\s*+\\b(enum)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?\u003c=})","patterns":[{"name":"meta.type.object.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}],"beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}}},"graphql-enum-value":{"name":"constant.character.enum.graphql","match":"\\s*(?!=\\b(true|false|null)\\b)([_A-Za-z][_0-9A-Za-z]*)"},"graphql-field":{"patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)\\s*(:)","captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}}},{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"variable.graphql"}}},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"match":"\\s*(-?(0|[1-9][0-9]*)(\\.[0-9]+)?((e|E)(\\+|-)?[0-9]+)?)","captures":{"1":{"name":"constant.numeric.float.graphql"}}},"graphql-fragment-definition":{"name":"meta.fragment.graphql","begin":"\\s*(?:(\\bfragment\\b)\\s*([_A-Za-z][_0-9A-Za-z]*)?)","end":"(?\u003c=})","patterns":[{"match":"\\s*(?:(\\bon\\b)\\s*([_A-Za-z][_0-9A-Za-z]*))","captures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.graphql"}}},{"include":"#graphql-variable-definitions"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"}}},"graphql-fragment-spread":{"begin":"\\s*(\\.\\.\\.)\\s*(?!\\bon\\b)([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-arguments"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"applyEndPatternLast":true},"graphql-ignore-spaces":{"match":"\\s*"},"graphql-inline-fragment":{"begin":"\\s*(\\.\\.\\.)\\s*(?:(\\bon\\b)\\s*([_A-Za-z][_0-9A-Za-z]*))?","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?:\\s*(!))?","captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}},{"name":"meta.type.list.graphql","begin":"\\s*(\\[)","end":"\\s*(\\])(?:\\s*(!))?","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}}]},"graphql-list-value":{"patterns":[{"name":"meta.listvalues.graphql","begin":"\\s*+(\\[)","end":"\\s*(\\])","patterns":[{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"endCaptures":{"1":{"name":"meta.brace.square.graphql"}}}]},"graphql-name":{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"entity.name.function.graphql"}}},"graphql-null-value":{"match":"\\s*\\b(null)\\b","captures":{"1":{"name":"constant.language.null.graphql"}}},"graphql-object-field":{"match":"\\s*(([_A-Za-z][_0-9A-Za-z]*))\\s*(:)","captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}}},"graphql-object-value":{"patterns":[{"name":"meta.objectvalues.graphql","begin":"\\s*+({)","end":"\\s*(})","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"endCaptures":{"1":{"name":"meta.brace.curly.graphql"}}}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation":{"match":"\\s*\\b(query|mutation)\\b","captures":{"1":{"name":"keyword.operation.graphql"}}},"graphql-scalar":{"match":"\\s*\\b(scalar)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}}},"graphql-scalar-type":{"match":"\\s*\\b(Int|Float|String|Boolean|ID)\\b(?:\\s*(!))?","captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}},"graphql-schema":{"begin":"\\s*\\b(schema)\\b","end":"(?\u003c=})","patterns":[{"begin":"\\s*({)","end":"\\s*(})","patterns":[{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*(([_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(})))|\\s*(,)","patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"support.type.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"keyword.schema.graphql"}}},"graphql-selection-set":{"name":"meta.selectionset.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},"graphql-skip-newlines":{"match":"\\s*\n"},"graphql-string-content":{"patterns":[{"name":"constant.character.escape.graphql","match":"\\\\[/'\"\\\\nrtbf]"},{"name":"constant.character.escape.graphql","match":"\\\\u([0-9a-fA-F]{4})"}]},"graphql-string-value":{"contentName":"string.quoted.double.graphql","begin":"\\s*+((\"))","end":"\\s*+(?:((\"))|(\n))","patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}}},"graphql-type-definition":{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*(([_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(})))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"variable.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},"graphql-type-interface":{"name":"meta.type.interface.graphql","begin":"\\s*\\b(?:(extends?)?\\b\\s*\\b(type)|(interface)|(input))\\b\\s*([_A-Za-z][_0-9A-Za-z]*)?","end":"(?=.)","patterns":[{"begin":"\\s*\\b(implements)\\b\\s*","end":"\\s*(?={)","patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"support.type.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}],"beginCaptures":{"1":{"name":"keyword.implements.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}],"captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-type-object":{"name":"meta.type.object.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},"graphql-union":{"begin":"\\s*\\b(union)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"begin":"\\s*(=)\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"match":"\\s*(\\|)\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}}}],"captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"applyEndPatternLast":true},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-union-mark":{"match":"\\s*(\\|)","captures":{"1":{"name":"punctuation.union.graphql"}}},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"begin":"\\s(=)","end":"(?=[\n,)])","patterns":[{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"applyEndPatternLast":true},"graphql-variable-definition":{"name":"meta.variables.graphql","begin":"\\s*(\\$?[_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*((\\$?[_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(}|\\))))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},"graphql-variable-definitions":{"begin":"\\s*(\\()","end":"\\s*(\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"meta.brace.round.graphql"}}},"graphql-variable-name":{"match":"\\s*(\\$[_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"variable.graphql"}}},"native-interpolation":{"name":"native.interpolation","begin":"\\s*(\\${)","end":"(})","patterns":[{"include":"source.js"},{"include":"source.ts"},{},{"include":"source.tsx"}],"beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"endCaptures":{"1":{"name":"keyword.other.substitution.end"}}}}}
|
|
1
|
+
{"name":"GraphQL","scopeName":"source.graphql","patterns":[{"include":"#graphql"}],"repository":{"graphql":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-fragment-definition"},{"include":"#graphql-directive-definition"},{"include":"#graphql-type-interface"},{"include":"#graphql-enum"},{"include":"#graphql-scalar"},{"include":"#graphql-union"},{"include":"#graphql-schema"},{"include":"#graphql-operation-def"},{"include":"#literal-quasi-embedded"}]},"graphql-ampersand":{"match":"\\s*(\u0026)","captures":{"1":{"name":"keyword.operator.logical.graphql"}}},"graphql-arguments":{"name":"meta.arguments.graphql","begin":"\\s*(\\()","end":"\\s*(\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?:\\s*(:))","end":"(?=\\s*(?:(?:([_A-Za-z][_0-9A-Za-z]*)\\s*(:))|\\)))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-value"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.parameter.graphql"},"2":{"name":"punctuation.colon.graphql"}},"endCaptures":{"3":{"name":"punctuation.comma.graphql"}}},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}},"endCaptures":{"1":{"name":"meta.brace.round.directive.graphql"}}},"graphql-boolean-value":{"match":"\\s*\\b(true|false)\\b","captures":{"1":{"name":"constant.language.boolean.graphql"}}},"graphql-colon":{"match":"\\s*(:)","captures":{"1":{"name":"punctuation.colon.graphql"}}},"graphql-comma":{"match":"\\s*(,)","captures":{"1":{"name":"punctuation.comma.graphql"}}},"graphql-comment":{"patterns":[{"name":"comment.line.graphql.js","match":"(\\s*)(#).*","captures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}},{"name":"comment.line.graphql.js","begin":"(\"\"\")","end":"(\"\"\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}},{"name":"comment.line.graphql.js","begin":"(\")","end":"(\")","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.graphql"}}}]},"graphql-description-docstring":{"name":"comment.block.graphql","begin":"\"\"\"","end":"\"\"\""},"graphql-description-singleline":{"name":"comment.line.number-sign.graphql","match":"#(?=([^\"]*\"[^\"]*\")*[^\"]*$).*$"},"graphql-directive":{"begin":"\\s*((@)\\s*([_A-Za-z][_0-9A-Za-z]*))","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-arguments"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"entity.name.function.directive.graphql"}},"applyEndPatternLast":true},"graphql-directive-definition":{"begin":"\\s*(\\bdirective\\b)\\s*(@[_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-variable-definitions"},{"begin":"\\s*(\\brepeatable\\b)?\\s*(\\bon\\b)\\s*([_A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"},{"match":"\\s*(\\|)\\s*([_A-Za-z]*)","captures":{"2":{"name":"support.type.location.graphql"}}}],"beginCaptures":{"1":{"name":"keyword.repeatable.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.location.graphql"}},"applyEndPatternLast":true},{"include":"#graphql-skip-newlines"},{"include":"#graphql-comment"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"keyword.directive.graphql"},"2":{"name":"entity.name.function.directive.graphql"},"3":{"name":"keyword.repeatable.graphql"},"4":{"name":"keyword.on.graphql"},"5":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-enum":{"name":"meta.enum.graphql","begin":"\\s*+\\b(enum)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?\u003c=})","patterns":[{"name":"meta.type.object.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-object-type"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-enum-value"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"}],"beginCaptures":{"1":{"name":"keyword.enum.graphql"},"2":{"name":"support.type.enum.graphql"}}},"graphql-enum-value":{"name":"constant.character.enum.graphql","match":"\\s*(?!=\\b(true|false|null)\\b)([_A-Za-z][_0-9A-Za-z]*)"},"graphql-field":{"patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)\\s*(:)","captures":{"1":{"name":"string.unquoted.alias.graphql"},"2":{"name":"punctuation.colon.graphql"}}},{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"variable.graphql"}}},{"include":"#graphql-arguments"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}]},"graphql-float-value":{"match":"\\s*(-?(0|[1-9][0-9]*)(\\.[0-9]+)?((e|E)(\\+|-)?[0-9]+)?)","captures":{"1":{"name":"constant.numeric.float.graphql"}}},"graphql-fragment-definition":{"name":"meta.fragment.graphql","begin":"\\s*(?:(\\bfragment\\b)\\s*([_A-Za-z][_0-9A-Za-z]*)?)","end":"(?\u003c=})","patterns":[{"match":"\\s*(?:(\\bon\\b)\\s*([_A-Za-z][_0-9A-Za-z]*))","captures":{"1":{"name":"keyword.on.graphql"},"2":{"name":"support.type.graphql"}}},{"include":"#graphql-variable-definitions"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.fragment.graphql"},"2":{"name":"entity.name.fragment.graphql"}}},"graphql-fragment-spread":{"begin":"\\s*(\\.\\.\\.)\\s*(?!\\bon\\b)([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-arguments"},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"variable.fragment.graphql"}},"applyEndPatternLast":true},"graphql-ignore-spaces":{"match":"\\s*"},"graphql-inline-fragment":{"begin":"\\s*(\\.\\.\\.)\\s*(?:(\\bon\\b)\\s*([_A-Za-z][_0-9A-Za-z]*))?","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-selection-set"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.operator.spread.graphql"},"2":{"name":"keyword.on.graphql"},"3":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-input-types":{"patterns":[{"include":"#graphql-scalar-type"},{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?:\\s*(!))?","captures":{"1":{"name":"support.type.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}},{"name":"meta.type.list.graphql","begin":"\\s*(\\[)","end":"\\s*(\\])(?:\\s*(!))?","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-input-types"},{"include":"#graphql-comma"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"meta.brace.square.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}}]},"graphql-list-value":{"patterns":[{"name":"meta.listvalues.graphql","begin":"\\s*+(\\[)","end":"\\s*(\\])","patterns":[{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"meta.brace.square.graphql"}},"endCaptures":{"1":{"name":"meta.brace.square.graphql"}}}]},"graphql-name":{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"entity.name.function.graphql"}}},"graphql-null-value":{"match":"\\s*\\b(null)\\b","captures":{"1":{"name":"constant.language.null.graphql"}}},"graphql-object-field":{"match":"\\s*(([_A-Za-z][_0-9A-Za-z]*))\\s*(:)","captures":{"1":{"name":"constant.object.key.graphql"},"2":{"name":"string.unquoted.graphql"},"3":{"name":"punctuation.graphql"}}},"graphql-object-value":{"patterns":[{"name":"meta.objectvalues.graphql","begin":"\\s*+({)","end":"\\s*(})","patterns":[{"include":"#graphql-object-field"},{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"meta.brace.curly.graphql"}},"endCaptures":{"1":{"name":"meta.brace.curly.graphql"}}}]},"graphql-operation-def":{"patterns":[{"include":"#graphql-query-mutation-subscription"},{"include":"#graphql-name"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-directive"},{"include":"#graphql-selection-set"}]},"graphql-query-mutation-subscription":{"match":"\\s*\\b(query|mutation|subscription)\\b","captures":{"1":{"name":"keyword.operation.graphql"}}},"graphql-scalar":{"match":"\\s*\\b(scalar)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"keyword.scalar.graphql"},"2":{"name":"entity.scalar.graphql"}}},"graphql-scalar-type":{"match":"\\s*\\b(Int|Float|String|Boolean|ID)\\b(?:\\s*(!))?","captures":{"1":{"name":"support.type.builtin.graphql"},"2":{"name":"keyword.operator.nulltype.graphql"}}},"graphql-schema":{"begin":"\\s*\\b(schema)\\b","end":"(?\u003c=})","patterns":[{"begin":"\\s*({)","end":"\\s*(})","patterns":[{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*(([_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(})))|\\s*(,)","patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"support.type.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-colon"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.arguments.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"keyword.schema.graphql"}}},"graphql-selection-set":{"name":"meta.selectionset.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-field"},{"include":"#graphql-fragment-spread"},{"include":"#graphql-inline-fragment"},{"include":"#graphql-comma"},{"include":"#native-interpolation"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},"graphql-skip-newlines":{"match":"\\s*\n"},"graphql-string-content":{"patterns":[{"name":"constant.character.escape.graphql","match":"\\\\[/'\"\\\\nrtbf]"},{"name":"constant.character.escape.graphql","match":"\\\\u([0-9a-fA-F]{4})"}]},"graphql-string-value":{"contentName":"string.quoted.double.graphql","begin":"\\s*+((\"))","end":"\\s*+(?:((\"))|(\n))","patterns":[{"include":"#graphql-string-content"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.begin.graphql"}},"endCaptures":{"1":{"name":"string.quoted.double.graphql"},"2":{"name":"punctuation.definition.string.end.graphql"},"3":{"name":"invalid.illegal.newline.graphql"}}},"graphql-type-definition":{"begin":"\\s*([_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*(([_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(})))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-variable-definitions"},{"include":"#graphql-type-object"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"variable.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},"graphql-type-interface":{"name":"meta.type.interface.graphql","begin":"\\s*\\b(?:(extends?)?\\b\\s*\\b(type)|(interface)|(input))\\b\\s*([_A-Za-z][_0-9A-Za-z]*)?","end":"(?=.)","patterns":[{"begin":"\\s*\\b(implements)\\b\\s*","end":"\\s*(?={)","patterns":[{"match":"\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"support.type.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-ampersand"},{"include":"#graphql-comma"}],"beginCaptures":{"1":{"name":"keyword.implements.graphql"}}},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-type-object"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-ignore-spaces"}],"captures":{"1":{"name":"keyword.type.graphql"},"2":{"name":"keyword.type.graphql"},"3":{"name":"keyword.interface.graphql"},"4":{"name":"keyword.input.graphql"},"5":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-type-object":{"name":"meta.type.object.graphql","begin":"\\s*({)","end":"\\s*(})","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-object-type"},{"include":"#graphql-type-definition"},{"include":"#literal-quasi-embedded"}],"beginCaptures":{"1":{"name":"punctuation.operation.graphql"}},"endCaptures":{"1":{"name":"punctuation.operation.graphql"}}},"graphql-union":{"begin":"\\s*\\b(union)\\b\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"begin":"\\s*(=)\\s*([_A-Za-z][_0-9A-Za-z]*)","end":"(?=.)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"},{"match":"\\s*(\\|)\\s*([_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"punctuation.or.graphql"},"2":{"name":"support.type.graphql"}}}],"captures":{"1":{"name":"punctuation.assignment.graphql"},"2":{"name":"support.type.graphql"}},"applyEndPatternLast":true},{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-skip-newlines"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"keyword.union.graphql"},"2":{"name":"support.type.graphql"}},"applyEndPatternLast":true},"graphql-union-mark":{"match":"\\s*(\\|)","captures":{"1":{"name":"punctuation.union.graphql"}}},"graphql-value":{"patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-variable-name"},{"include":"#graphql-float-value"},{"include":"#graphql-string-value"},{"include":"#graphql-boolean-value"},{"include":"#graphql-null-value"},{"include":"#graphql-enum-value"},{"include":"#graphql-list-value"},{"include":"#graphql-object-value"},{"include":"#literal-quasi-embedded"}]},"graphql-variable-assignment":{"begin":"\\s(=)","end":"(?=[\n,)])","patterns":[{"include":"#graphql-value"}],"beginCaptures":{"1":{"name":"punctuation.assignment.graphql"}},"applyEndPatternLast":true},"graphql-variable-definition":{"name":"meta.variables.graphql","begin":"\\s*(\\$?[_A-Za-z][_0-9A-Za-z]*)(?=\\s*\\(|:)","end":"(?=\\s*((\\$?[_A-Za-z][_0-9A-Za-z]*)\\s*(\\(|:)|(}|\\))))|\\s*(,)","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-directive"},{"include":"#graphql-colon"},{"include":"#graphql-input-types"},{"include":"#graphql-variable-assignment"},{"include":"#literal-quasi-embedded"},{"include":"#graphql-skip-newlines"}],"beginCaptures":{"1":{"name":"variable.parameter.graphql"}},"endCaptures":{"5":{"name":"punctuation.comma.graphql"}}},"graphql-variable-definitions":{"begin":"\\s*(\\()","end":"\\s*(\\))","patterns":[{"include":"#graphql-comment"},{"include":"#graphql-description-docstring"},{"include":"#graphql-description-singleline"},{"include":"#graphql-variable-definition"},{"include":"#literal-quasi-embedded"}],"captures":{"1":{"name":"meta.brace.round.graphql"}}},"graphql-variable-name":{"match":"\\s*(\\$[_A-Za-z][_0-9A-Za-z]*)","captures":{"1":{"name":"variable.graphql"}}},"native-interpolation":{"name":"native.interpolation","begin":"\\s*(\\${)","end":"(})","patterns":[{"include":"source.js"},{"include":"source.ts"},{},{"include":"source.tsx"}],"beginCaptures":{"1":{"name":"keyword.other.substitution.begin"}},"endCaptures":{"1":{"name":"keyword.other.substitution.end"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"GtkRC","scopeName":"source.gtkrc","patterns":[{"include":"#main"}],"repository":{"attachment":{"name":"meta.attachment.gtkrc","begin":"^\\s*(class|widget_class|widget)(?=$|\\s)","end":"$","patterns":[{"begin":"\\G\\s+(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#widgetPath"}]},{"begin":"(?\u003c=\\s|^)(style|binding)(?=$|\\s)","end":"(\"[^\"]*\"|'[^']*')|(?=\\s*(?:$|#))","patterns":[{"name":"meta.priority.gtkrc","match":"\\G\\s*(:)\\s*(application|gtk|highest|lowest|rc|theme)(?=$|\\s)","captures":{"1":{"patterns":[{"include":"etc#kolon"}]},"2":{"name":"storage.modifier.priority.gtkrc"}}}],"beginCaptures":{"1":{"name":"keyword.operator.$1.gtkrc"}},"endCaptures":{"1":{"patterns":[{"include":"#styleName"}]}}},{"include":"etc#comment"}],"beginCaptures":{"1":{"name":"storage.type.subject.gtkrc"}}},"binding":{"patterns":[{"name":"meta.binding.gtkrc","begin":"(?\u003c=\\s|^|\\G)(bind)(?=$|\\s)","end":"(?\u003c=})","patterns":[{"begin":"\\G\\s*(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#bindingKey"}]},{"name":"meta.block.gtkrc","begin":"{","end":"}","patterns":[{"include":"#bindingAction"},{"include":"etc#comment"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}},{"include":"etc#comment"}],"beginCaptures":{"1":{"name":"storage.type.bind.gtkrc"}}},{"name":"meta.unbinding.gtkrc","begin":"(?\u003c=\\s|^|\\G)(unbind)(?=$|\\s)","end":"\\s*(\"[^\"]*\"|'[^']*')|(?=\\s*(?:$|#))","beginCaptures":{"1":{"name":"storage.type.unbind.gtkrc"}},"endCaptures":{"1":{"patterns":[{"include":"#bindingKey"}]}}}]},"bindingAction":{"name":"meta.action.signal.gtkrc","begin":"(\"|')(?!\\d)\\w+(?:[-_]\\w+)*(\\1)(?=$|\\s)","end":"(?\u003c=\\))|(?=\\s*})","patterns":[{"name":"meta.parameters.gtkrc","begin":"(\\()","end":"(\\))","patterns":[{"include":"#miscValues"}],"beginCaptures":{"0":{"name":"punctuation.definition.list.begin.bracket.round.gtkrc"},"1":{"name":"brackethighlighter.round"}},"endCaptures":{"0":{"name":"punctuation.definition.list.end.bracket.round.gtkrc"},"1":{"name":"brackethighlighter.round"}}}],"beginCaptures":{"0":{"name":"entity.name.signal.gtkrc"},"1":{"name":"punctuation.definition.signal.begin.gtkrc"},"2":{"name":"punctuation.definition.signal.end.gtkrc"}}},"bindingBlock":{"name":"meta.binding-set.gtkrc","begin":"^\\s*(binding)(?=$|\\s)","end":"(?\u003c=})","patterns":[{"begin":"\\G\\s*(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#styleName"}]},{"name":"meta.block.gtkrc","begin":"{","end":"}","patterns":[{"include":"#binding"},{"include":"etc#comment"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}}],"beginCaptures":{"1":{"name":"storage.type.subject.gtkrc"}}},"bindingKey":{"name":"constant.other.keybinding.gtkrc","begin":"(\"|')","end":"\\1","patterns":[{"name":"keyword.operator.modifier.${2:/downcase}.gtkrc","match":"(?i)(\u003c)(alt|control|ctl|hyper|meta|mod[1-5]|release|shi?ft|super)(\u003e)","captures":{"1":{"name":"punctuation.definition.begin.modifier.gtkrc"},"3":{"name":"punctuation.definition.end.modifier.gtkrc"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.keybinding.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.keybinding.end.gtkrc"}}},"brackets":{"patterns":[{"name":"punctuation.section.block.begin.bracket.curly.gtkrc","match":"{","captures":{"0":{"name":"brackethighlighter.curly"}}},{"name":"punctuation.section.block.end.bracket.curly.gtkrc","match":"}","captures":{"0":{"name":"brackethighlighter.curly"}}}]},"classProperty":{"name":"meta.property.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*((?!\\d)[-\\w]+)\\s*((::))\\s*((?!\\d)[-\\w]+)\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"include":"#miscValues"}],"beginCaptures":{"1":{"name":"entity.name.tag.class.gtkrc"},"2":{"name":"punctuation.separator.double-colon.gtkrc"},"3":{"name":"meta.separator.gtkrc"},"4":{"name":"support.variable.property.gtkrc"},"5":{"patterns":[{"include":"etc#eql"}]}}},"colourDef":{"name":"meta.definition.colour.gtkrc","begin":"(?\u003c=\\s|^|\\G)(color)((\\[))\\s*(\"[^\"]*\"|'[^']*')\\s*((\\]))\\s*(=)[ \\t]*","end":"(?=\\s*(?:$|#))","patterns":[{"include":"#colourValue"}],"beginCaptures":{"1":{"name":"storage.type.colour.gtkrc"},"2":{"name":"punctuation.definition.colour.begin.gtkrc"},"3":{"name":"brackethighlighter.square"},"4":{"patterns":[{"include":"#styleName"}]},"5":{"name":"punctuation.definition.colour.end.gtkrc"},"6":{"name":"brackethighlighter.square"},"7":{"patterns":[{"include":"etc#eql"}]}}},"colourRef":{"name":"variable.colour-name.gtkrc","match":"(?:\\G|(?\u003c=,)\\s*)(@)\\w+","captures":{"1":{"name":"punctuation.definition.colour-name.gtkrc"}}},"colourValue":{"patterns":[{"include":"#colourRef"},{"match":"(?i)(?:\\G|(?\u003c=,)\\s*)((\"|')(#)([0-9A-F]{12}|[0-9A-F]{9}|[0-9A-F]{6}|[0-9A-F]{3})(\\2))","captures":{"1":{"name":"string.quoted.colour-value.gtkrc"},"2":{"name":"punctuation.definition.colour-value.begin.gtkrc"},"3":{"name":"punctuation.definition.constant.gtkrc"},"4":{"name":"constant.other.colour.rgb-value.hex.gtkrc"},"5":{"name":"punctuation.definition.colour-value.end.gtkrc"}}},{"name":"meta.triplet.colour-value.gtkrc","begin":"(?:\\G|(?\u003c=,)\\s*)({)","end":"(})","patterns":[{"include":"etc#num"},{"include":"etc#comma"}],"captures":{"1":{"patterns":[{"include":"#brackets"}]}}},{"name":"meta.function.colour.$1.gtkrc","begin":"(?:\\G|(?\u003c=,)\\s*)(mix|shade|lighter|darker)\\s*(?=\\()","end":"(?!\\G)","patterns":[{"name":"meta.parameters.gtkrc","begin":"\\G(\\()","end":"(\\))","patterns":[{"include":"etc#num"},{"include":"etc#comma"},{"include":"#colourValue"}],"beginCaptures":{"0":{"name":"punctuation.definition.list.begin.bracket.round.gtkrc"},"1":{"name":"brackethighlighter.round"}},"endCaptures":{"0":{"name":"punctuation.definition.list.end.bracket.round.gtkrc"},"1":{"name":"brackethighlighter.round"}}}],"beginCaptures":{"1":{"name":"keyword.other.function.expression.gtkrc"}}}]},"engine":{"name":"meta.definition.engine.${4:/downcase}.gtkrc","begin":"(?\u003c=\\s|^|\\G)(engine)\\s*((\"|')((?:(?!\\3).)++)(\\3))","end":"(?\u003c=})","patterns":[{"name":"meta.block.engine-config.gtkrc","begin":"{","end":"}","patterns":[{"include":"#engineInnards"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}},{"include":"etc#comment"}],"beginCaptures":{"1":{"name":"storage.type.colour.gtkrc"},"2":{"name":"entity.name.engine.gtkrc"},"3":{"name":"punctuation.definition.engine.begin.gtkrc"},"5":{"name":"punctuation.definition.engine.end.gtkrc"}}},"engineInnards":{"patterns":[{"include":"#engineNestedBlock"},{"include":"#style"},{"include":"#styleCustom"},{"include":"#setting"},{"include":"etc#comment"},{"match":"^\\s*(image|boxfill)(?=\\s*(?:$|#))","captures":{"1":{"name":"storage.type.block.label.gtkrc"}}}]},"engineKnown":{"name":"entity.name.engine.known.gtkrc","match":"(?xi)(?\u003c!-)\\b (adwaita|anachron|aurora|bluecurve|blueprint|candido|carbon-gtk|cleanice |clean|clearlooks|crux-engine|crux|default-theme|dwerg|dyndyn|engradient |equinox|excelsior|experience|galaxy|gflat|glide|hcengine|hc|ia_ora|industrial |lighthouseblue|lua|macstyle|maigre|metal|mgicchikn|mist|moblin-netbook-engine |moblin|moko-engine|murrine|nimbus|nodoka|notif|oxygen-gtk|pixbuf|pixmap |qt4engine|qtcurve|quartz|raleigh|redmond95|redmond|rezlooks|sapwood|smooth |step|sugar|svg|thinice|ubuntulooks|uebergau|vyatta|whistler|wimp|wonderland |xamarin|xeno|xfce)\\b(?!-)"},"engineNestedBlock":{"name":"meta.block.${1:/downcase}.gtkrc","begin":"(?\u003c=\\s|^|\\G)(?:((?!\\d)\\w+(?:[-_]\\w+)*+))?\\s*({)","end":"}","patterns":[{"include":"#engineInnards"}],"beginCaptures":{"1":{"name":"storage.type.block.label.gtkrc"},"2":{"patterns":[{"include":"#brackets"}]}},"endCaptures":{"0":{"patterns":[{"include":"#brackets"}]}}},"include":{"begin":"(?\u003c=\\s|^|\\G)(include)(?=$|\\s|\"|')","end":"\\s*(?:(\"[^\"]*\")|('[^']*'))|(?=\\s*#)","beginCaptures":{"1":{"name":"keyword.control.directive.include.gtkrc"}},"endCaptures":{"1":{"patterns":[{"include":"etc#strDouble"}]},"2":{"patterns":[{"include":"etc#strSingle"}]}}},"main":{"patterns":[{"include":"etc#comment"},{"include":"#attachment"},{"include":"#include"},{"include":"#paths"},{"include":"#bindingBlock"},{"include":"#styleBlock"},{"include":"#setting"},{"include":"#colourDef"},{"include":"#stock"},{"include":"#engine"}]},"miscValues":{"patterns":[{"include":"#colourValue"},{"include":"#stateDefinedOnly"},{"include":"etc#comma"},{"include":"etc#num"},{"include":"etc#str"},{"include":"etc#comment"},{"match":"(?:(?\u003c==|\\G|^|,)\\s*)(true|false|TRUE|FALSE)(?=\\s*(?:$|#))","captures":{"1":{"patterns":[{"include":"etc#bool"}]}}},{"name":"string.unquoted.bareword.gtkrc","match":"(?!\\d)[^\"'\\s\\(\\),]"}]},"paths":{"patterns":[{"begin":"(?\u003c=\\s|^|\\G)((module|pixmap)_path)(?=$|\\s)","end":"\\s+(\"[^\"]*\"|'[^']*')|(?=\\s*#)","beginCaptures":{"1":{"name":"keyword.operator.set-path.$2.gtkrc"}},"endCaptures":{"1":{"patterns":[{"name":"string.quoted.path-list.gtkrc","begin":"(\"|')","end":"\\1","patterns":[{"name":"punctuation.delimiter.separator.path.colon.gtkrc","match":":"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.gtkrc"}}}]}}},{"begin":"(?\u003c=\\s|^|\\G)(im_module_path)(?=$|\\s)","end":"\\s+(?:(\"[^\"]*\")|('[^']*'))|(?=\\s*#)","beginCaptures":{"1":{"name":"keyword.operator.set-path.im-module.gtkrc"}},"endCaptures":{"1":{"patterns":[{"include":"etc#strDouble"}]},"2":{"patterns":[{"include":"etc#strSingle"}]}}}]},"setting":{"name":"meta.setting.gtkrc","begin":"^\\s*(?!\\d)([-\\w]+)\\s*(=)[ \\t]*","end":"(?=\\s*(?:$|#))","patterns":[{"include":"#miscValues"}],"beginCaptures":{"1":{"name":"variable.assignment.setting.gtkrc"},"2":{"patterns":[{"include":"etc#eql"}]}}},"state":{"patterns":[{"include":"#stateDefinedOnly"},{"name":"invalid.unimplemented.state.gtkrc","match":"\\w+"}]},"stateDefinedOnly":{"name":"constant.language.state.gtkrc","match":"\\b(NORMAL|ACTIVE|PRELIGHT|SELECTED|INSENSITIVE)\\b"},"stock":{"name":"meta.definition.stock-icon.gtkrc","begin":"(?\u003c=\\s|^|\\G)(stock)((\\[))\\s*(\"[^\"]*\"|'[^']*')\\s*((\\]))\\s*(=)[ \\t]*","end":"(?\u003c=})","patterns":[{"begin":"\\G(?=\\s*$)","end":"\\s*(?=\\S)"},{"name":"meta.block.icon-sources.gtkrc","begin":"{","end":"}","patterns":[{"name":"meta.block.icon-source.gtkrc","begin":"{","end":"}","patterns":[{"include":"etc#comma"},{"begin":"\\G\\s*(?=@?[\"'])","end":"(?!\\G)","patterns":[{"name":"string.quoted.filename.gtkrc","begin":"\\G(\"|')","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.gtkrc"}}},{"name":"variable.icon-name.gtkrc","begin":"\\G(@(\"|'))","end":"\\2","beginCaptures":{"1":{"name":"punctuation.definition.icon-name.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.icon-name.end.gtkrc"}}}]},{"match":"(?:(?:^|(?\u003c=,))\\s*)(LTR|RTL)(?=\\s*(?:$|[,}#]))","captures":{"1":{"name":"constant.language.text-direction.$1.gtkrc"}}},{"match":"(?:(?:^|(?\u003c=,))\\s*)(\\*)(?=\\s*(?:$|[,}#]))","captures":{"1":{"patterns":[{"include":"etc#globSimple"}]}}},{"match":"(?:(?:^|(?\u003c=,))\\s*)((\"|')(?:(?!\\2).)*+(\\2))","captures":{"1":{"name":"constant.language.icon-size.gtkrc"},"2":{"name":"punctuation.definition.icon-size.begin.gtkrc"},"3":{"name":"punctuation.definition.icon-size.end.gtkrc"}}},{"include":"etc#comment"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}},{"include":"etc#comma"},{"include":"etc#comment"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}}],"beginCaptures":{"1":{"name":"storage.type.icon.gtkrc"},"2":{"name":"punctuation.definition.icon.begin.gtkrc"},"3":{"name":"brackethighlighter.square"},"4":{"patterns":[{"include":"#styleName"}]},"5":{"name":"punctuation.definition.icon.end.gtkrc"},"6":{"name":"brackethighlighter.square"},"7":{"patterns":[{"include":"etc#eql"}]}}},"style":{"patterns":[{"include":"#colourDef"},{"include":"#stock"},{"name":"meta.property.$1.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*([fb]g|(?:fore|back)ground|base|text)(((\\[))\\s*(\\w+)\\s*((\\])))\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"include":"#colourValue"}],"beginCaptures":{"1":{"name":"support.type.property-name.gtkrc"},"2":{"name":"meta.state.gtkrc"},"3":{"name":"punctuation.definition.state.begin.gtkrc"},"4":{"name":"brackethighlighter.square"},"5":{"patterns":[{"include":"#state"}]},"6":{"name":"punctuation.definition.state.end.gtkrc"},"7":{"name":"brackethighlighter.square"},"8":{"patterns":[{"include":"etc#eql"}]}}},{"name":"meta.property.$1.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*([xy]thickness)\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"include":"etc#num"}],"beginCaptures":{"1":{"name":"support.type.property-name.gtkrc"},"2":{"patterns":[{"include":"etc#eql"}]}}},{"name":"meta.property.$1.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*(font(?:set|_name)?)\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"name":"meta.pango-font.gtkrc","begin":"\\G(\"|')","end":"\\1|(?=\\s*$)","patterns":[{"include":"source.xlfd"},{"match":"\\G(?:(?\u003c=(\"|'))((?!\\1)\\S(?:(?!\\1).)*))\\s+(\\d+(?:\\.\\d+)?)(?=\\1)","captures":{"2":{"name":"constant.other.font-family.gtkrc"},"3":{"name":"constant.numeric.font-size.gtkrc"}}},{"match":"\\G(?\u003c=(\"|'))(?:(?=(?:\\d+(?:\\.\\d+)?|\\.\\d+)\\1)([.\\d+]{1,27})|((?:(?!\\1)\\S){1,27}))(?=\\1)","captures":{"2":{"name":"constant.numeric.font-size.gtkrc"},"3":{"name":"constant.other.font-name.gtkrc"}}},{"include":"etc#comma"}],"beginCaptures":{"0":{"name":"punctuation.definition.font.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.font.end.gtkrc"}}}],"beginCaptures":{"1":{"name":"support.type.property-name.gtkrc"},"2":{"patterns":[{"include":"etc#eql"}]}}},{"name":"meta.property.$1.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*(bg_pixmap)(((\\[))\\s*(\\w+)\\s*((\\])))\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"begin":"\\G\\s*(?=\"|')","end":"(?!\\G)","patterns":[{"name":"string.quoted.pixmap.gtkrc","match":"\\G(\"|')((\u003c)(parent|none)(\u003e))(\\1)","captures":{"1":{"name":"punctuation.definition.string.begin.gtkrc"},"2":{"name":"keyword.other.pixmap-spec.$4.gtkrc"},"3":{"name":"punctuation.definition.keyword.begin.gtkrc"},"5":{"name":"punctuation.definition.keyword.end.gtkrc"},"6":{"name":"punctuation.definition.string.end.gtkrc"}}},{"name":"string.quoted.pixmap.gtkrc","begin":"(\"|')","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.gtkrc"}}}]}],"beginCaptures":{"1":{"name":"support.type.property-name.gtkrc"},"2":{"name":"meta.state.gtkrc"},"3":{"name":"punctuation.definition.state.begin.gtkrc"},"4":{"name":"brackethighlighter.square"},"5":{"patterns":[{"include":"#state"}]},"6":{"name":"punctuation.definition.state.end.gtkrc"},"7":{"name":"brackethighlighter.square"},"8":{"patterns":[{"include":"etc#eql"}]}}},{"include":"#classProperty"}]},"styleBlock":{"name":"meta.style.gtkrc","begin":"(?\u003c=\\s|^|\\G)style(?=$|\\s)","end":"(?\u003c=})","patterns":[{"begin":"\\G\\s*(?=[\"'])","end":"(?!\\G)","patterns":[{"include":"#styleName"}]},{"name":"meta.parent-style.gtkrc","begin":"=","end":"\\s*(\"[^\"]*\"|'[^']*')|(?=\\s*{)","beginCaptures":{"0":{"name":"keyword.operator.assignment.parent.gtkrc"}},"endCaptures":{"1":{"patterns":[{"include":"#styleName"}]}}},{"name":"meta.block.gtkrc","begin":"{","end":"}","patterns":[{"include":"#style"},{"include":"#engine"},{"include":"etc#comment"}],"captures":{"0":{"patterns":[{"include":"#brackets"}]}}}],"beginCaptures":{"0":{"name":"storage.type.style.gtkrc"}}},"styleCustom":{"name":"meta.property.custom.gtkrc","begin":"(?\u003c=\\s|^|\\G)\\s*((?!\\d)[-\\w]+)(?=\\[\\s*[^\\s\\[\\]]+\\s*\\])","end":"$|(?=\\s*#)","patterns":[{"name":"meta.item-access.gtkrc","begin":"(?:\\G|(?\u003c=\\]))((\\[))\\s*","end":"\\s*((\\]))","patterns":[{"include":"#stateDefinedOnly"},{"include":"etc#num"},{"include":"etc#bool"},{"name":"constant.other.qualifier.gtkrc","match":"\\w+"}],"beginCaptures":{"1":{"name":"punctuation.definition.accessor.begin.bracket.square.gtkrc"},"2":{"name":"brackethighlighter.square"}},"endCaptures":{"1":{"name":"punctuation.definition.accessor.begin.bracket.square.gtkrc"},"2":{"name":"brackethighlighter.square"}}},{"begin":"(?\u003c=\\])\\s*(=)[ \\t]*","end":"$|(?=\\s*#)","patterns":[{"include":"#miscValues"}],"beginCaptures":{"1":{"patterns":[{"include":"etc#eql"}]}}}],"beginCaptures":{"1":{"name":"support.type.property-name.gtkrc"}}},"styleName":{"name":"entity.name.style.gtkrc","begin":"(\"|')","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.style.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.style.end.gtkrc"}}},"widgetPath":{"name":"constant.other.selector.widget.gtkrc","begin":"(\"|')","end":"\\1","patterns":[{"name":"meta.separator.gtkrc","match":"\\.","captures":{"0":{"name":"punctuation.separator.parent.selector.gtkrc"}}},{"name":"entity.name.class.gtkrc","match":"(\u003c)\\w+(\u003e)","captures":{"1":{"name":"punctuation.definition.class.begin.gtkrc"},"2":{"name":"punctuation.definition.class.end.gtkrc"}}},{"include":"etc#globSimple"}],"beginCaptures":{"0":{"name":"punctuation.definition.selector.begin.gtkrc"}},"endCaptures":{"0":{"name":"punctuation.definition.selector.end.gtkrc"}}}}}
|