@shikijs/langs 1.26.1 → 1.26.2
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.
- package/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-let-declaration.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bibtex.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/edge.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/git-commit.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -1
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/log.mjs +1 -1
- package/dist/logo.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +1 -1
- package/dist/python.mjs +1 -1
- package/dist/qml.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/swift.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/turtle.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +3 -3
package/dist/move.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Move\",\"name\":\"move\",\"patterns\":[{\"include\":\"#address\"},{\"include\":\"#comments\"},{\"include\":\"#module\"},{\"include\":\"#script\"},{\"include\":\"#annotation\"},{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}],\"repository\":{\"=== DEPRECATED_BELOW ===\":{},\"abilities\":{\"comment\":\"Ability\",\"match\":\"\\\\b(store|key|drop|copy)\\\\b\",\"name\":\"support.type.ability.move\"},\"address\":{\"begin\":\"\\\\b(address)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.address.keyword.move\"}},\"comment\":\"Address block\",\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"comment\":\"Address value/const\",\"end\":\"(?=[{])\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Named Address\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"\\\\]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"comment\":\"Annotation name\",\"match\":\"\\\\b(\\\\w+)\\\\s*(?==)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"comment\":\"Annotation value\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"comment\":\"Keyword as (highlighted)\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"comment\":\"Keyword as in import statement; not highlighted\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[\\\\*!](?![\\\\*/])\",\"comment\":\"Block documentation comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"comment\":\"Block comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"comment\":\"MyType - capitalized type name\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.use.move\"},\"comments\":{\"name\":\"meta.comments.move\",\"patterns\":[{\"include\":\"#doc-comments\"},{\"include\":\"#line-comments\"},{\"include\":\"#block-comments\"}]},\"const\":{\"begin\":\"\\\\b(const)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.const.move\"}},\"end\":\";\",\"name\":\"meta.const.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#primitives\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"match\":\"\\\\b([A-Z][A-Z_0-9]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"}]},\"control\":{\"comment\":\"Control flow\",\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"comment\":\"Documentation comment\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"comment\":\"Escaped member / link\",\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"comment\":\"entry\",\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"comment\":\"Enum syntax\",\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"comment\":\"Enum name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b(?=\\\\s*\\\\()\",\"name\":\"entity.name.function.enum.move\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.tuple.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]}]}]},\"error_const\":{\"match\":\"\\\\b(E[A-Z][A-Za-z0-9_]*)\\\\b\",\"name\":\"variable.other.error.const.move\"},\"escaped_identifier\":{\"begin\":\"`\",\"comment\":\"Escaped variable\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"comment\":\"Aggregate Expression\",\"name\":\"meta.expression.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#packed_field\"},{\"include\":\"#import\"},{\"include\":\"#as\"},{\"include\":\"#mut\"},{\"include\":\"#let\"},{\"include\":\"#types\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#move_copy\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#label\"},{\"include\":\"#macro_call\"},{\"include\":\"#local_call\"},{\"include\":\"#method_call\"},{\"include\":\"#path_access\"},{\"include\":\"#match_expression\"},{\"match\":\"\\\\$(?=[a-z])\",\"name\":\"keyword.operator.macro.dollar.move\"},{\"match\":\"(?<=[$])[a-z][A-Z_0-9a-z]*\",\"name\":\"variable.other.meta.move\"},{\"comment\":\"ALL_CONST_CAPS\",\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"comment\":\"CustomType\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"include\":\"#paren\"},{\"include\":\"#block\"}]},\"expr_generic\":{\"begin\":\"<(?=([\\\\sa-z_,0-9A-Z<>]+>))\",\"comment\":\"< angle brackets >\",\"end\":\">\",\"name\":\"meta.expression.generic.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"},{\"include\":\"#capitalized\"},{\"include\":\"#expr_generic\"}]},\"friend\":{\"begin\":\"\\\\b(friend)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.friend.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b([a-zA-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.module.move\"}]},\"fun\":{\"patterns\":[{\"include\":\"#fun_signature\"},{\"include\":\"#block\"}]},\"fun_body\":{\"begin\":\"{\",\"comment\":\"Function body\",\"end\":\"(?<=})\",\"name\":\"meta.fun_body.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"fun_call\":{\"begin\":\"\\\\b(\\\\w+)\\\\s*(?:<[\\\\w\\\\s,]+>)?\\\\s*[(]\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Function call\",\"end\":\"[)]\",\"name\":\"meta.fun_call.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#move_copy\"},{\"include\":\"#literals\"},{\"include\":\"#fun_call\"},{\"include\":\"#block\"},{\"include\":\"#mut\"},{\"include\":\"#as\"}]},\"fun_signature\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"Function signature\",\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"comment\":\"Function name\",\"end\":\"(?=[<(])\",\"name\":\"meta.function_name.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]},{\"include\":\"#type_param\"},{\"begin\":\"[(]\",\"comment\":\"Parentheses\",\"end\":\"[)]\",\"name\":\"meta.parentheses.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"}]},{\"comment\":\"Keyword acquires\",\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"comment\":\"Has Abilities\",\"match\":\"\\\\b(has)\\\\b\",\"name\":\"keyword.control.ability.has.move\"},\"has_ability\":{\"begin\":\"(?<=[})])\\\\s+(has)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.has.ability.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#abilities\"}]},\"ident\":{\"match\":\"\\\\b([a-zA-Z][A-Z_a-z0-9]*)\\\\b\",\"name\":\"meta.identifier.move\"},\"import\":{\"begin\":\"\\\\b(use)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.import.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#use_fun\"},{\"include\":\"#address_literal\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"{\",\"comment\":\"Module members\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"comment\":\"inline\",\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"comment\":\"Label\",\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"comment\":\"Keyword let\",\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"comment\":\"Single-line comment\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"comment\":\"Literals supported in Move\",\"name\":\"meta.literal.move\",\"patterns\":[{\"comment\":\"base16 address literal\",\"match\":\"@0x[A-F0-9a-f]+\",\"name\":\"support.constant.address.base16.move\"},{\"comment\":\"named address literal @[ident]\",\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"comment\":\"Hex literal\",\"match\":\"0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"comment\":\"Numeric literal\",\"match\":\"(?<!(?:\\\\w|(?:(?<!\\\\.)\\\\.)))\\\\d[_0-9]*(?:\\\\.(?!\\\\.)(?:\\\\d[_0-9]*)?)?(?:[eE][+\\\\-]?[_0-9]+)?(?:[u](?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.move\"},{\"begin\":\"\\\\bb\\\"\",\"comment\":\"vector ascii bytestring literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"comment\":\"character escape\",\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"Special symbol escape\",\"match\":\"\\\\\\\\[nrt\\\\0\\\"]\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"HEX Escape\",\"match\":\"\\\\\\\\x[a-fA-F0-9][A-Fa-f0-9]\",\"name\":\"constant.character.escape.hex.move\"},{\"comment\":\"ASCII Character\",\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"comment\":\"vector hex literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"comment\":\"vector hex literal\",\"match\":\"[A-Fa-f0-9]+\",\"name\":\"constant.character.move\"}]},{\"comment\":\"bool literal\",\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"comment\":\"vector literal (macro?)\",\"end\":\"\\\\]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"comment\":\"call to a local / imported fun\",\"match\":\"\\\\b([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"entity.name.function.call.local.move\"},\"macro\":{\"begin\":\"\\\\b(macro)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.macro.move\"}},\"comment\":\"macro fun [ident] {}\",\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"comment\":\"Macro fun call\",\"match\":\"(\\\\b|\\\\.)([a-z][A-Za-z0-9_]*)!\",\"name\":\"meta.macro.call\"},\"match_expression\":{\"begin\":\"\\\\b(match)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.match.move\"}},\"comment\":\"enum pattern matching\",\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"comment\":\"arrow operator\",\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"comment\":\"<expr>.[ident]<>?() call\",\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"comment\":\"Module definition\",\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"comment\":\"Module name\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"{\",\"comment\":\"Module scope\",\"end\":\"}\",\"name\":\"meta.module_scope.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}]}]},\"module_access\":{\"captures\":{\"1\":{\"name\":\"meta.entity.name.type.accessed.module.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of module type or method\",\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"comment\":\"Module label, inline module definition\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"comment\":\"Keywords move and copy\",\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"comment\":\"Mutable reference and let mut\",\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"comment\":\"native\",\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"comment\":\"[ident]: \",\"match\":\"[a-z][a-z0-9_]+\\\\s*:\\\\s*(?=\\\\s)\",\"name\":\"meta.struct.field.move\"},\"paren\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.paren.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"path_access\":{\"comment\":\"<expr>.[ident] access\",\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"comment\":\"Keyword phantom inside type parameters\",\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"comment\":\"Primitive types\",\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"comment\":\"public\",\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"comment\":\"public (friend/script/package)\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"comment\":\"Methods to work with resource\",\"match\":\"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b\",\"name\":\"support.function.typed.move\"},\"script\":{\"begin\":\"\\\\b(script)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.script.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.script.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"{\",\"comment\":\"Script scope\",\"end\":\"}\",\"name\":\"meta.script_scope.move\",\"patterns\":[{\"include\":\"#const\"},{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#fun\"}]}]},\"self_access\":{\"captures\":{\"1\":{\"name\":\"variable.language.self.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of Self\",\"match\":\"\\\\b(Self)::(\\\\w+)\\\\b\",\"name\":\"meta.self_access.move\"},\"spec\":{\"begin\":\"\\\\b(spec)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.spec.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.spec.move\",\"patterns\":[{\"comment\":\"Spec target\",\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"comment\":\"Spec define inline\",\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"comment\":\"Target name\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#spec_define\"},{\"include\":\"#spec_keywords\"},{\"include\":\"#control\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]}]},\"spec_block\":{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"name\":\"meta.spec_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]},\"spec_define\":{\"begin\":\"\\\\b(define)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.move.spec\"}},\"comment\":\"Spec define keyword\",\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"comment\":\"Function name\",\"end\":\"(?=[(])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]}]},\"spec_keywords\":{\"match\":\"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b\",\"name\":\"keyword.control.move.spec\"},\"spec_types\":{\"comment\":\"Spec-only types\",\"match\":\"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b\",\"name\":\"support.type.vector.move\"},\"struct\":{\"begin\":\"\\\\b(struct)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[};)])\",\"name\":\"meta.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"comment\":\"Struct name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"comment\":\"Positional fields\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"comment\":\"Simple struct\",\"end\":\"(?<=[)])\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"comment\":\"Struct body\",\"end\":\"}\",\"name\":\"meta.struct.body.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#has_ability\"}]},\"struct_pack\":{\"begin\":\"(?<=[A-Za-z0-9_>])\\\\s*{\",\"comment\":\"Struct { field: value... }; identified as generic / ident followed by curly's\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"comment\":\"Generic type param\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"comment\":\"Built-in types + vector\",\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"use { fun } internals\",\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"comment\":\"as keyword\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"comment\":\"Self keyword\",\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"comment\":\"Function name\",\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"comment\":\"vector type\",\"match\":\"\\\\b(vector)\\\\b\",\"name\":\"support.type.vector.move\"}},\"scopeName\":\"source.move\"}"))
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Move\",\"name\":\"move\",\"patterns\":[{\"include\":\"#address\"},{\"include\":\"#comments\"},{\"include\":\"#module\"},{\"include\":\"#script\"},{\"include\":\"#annotation\"},{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}],\"repository\":{\"=== DEPRECATED_BELOW ===\":{},\"abilities\":{\"comment\":\"Ability\",\"match\":\"\\\\b(store|key|drop|copy)\\\\b\",\"name\":\"support.type.ability.move\"},\"address\":{\"begin\":\"\\\\b(address)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.address.keyword.move\"}},\"comment\":\"Address block\",\"end\":\"(?<=})\",\"name\":\"meta.address_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=address)\",\"comment\":\"Address value/const\",\"end\":\"(?=[{])\",\"name\":\"meta.address.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Named Address\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"include\":\"#module\"}]},\"annotation\":{\"begin\":\"#\\\\[\",\"end\":\"\\\\]\",\"name\":\"support.constant.annotation.move\",\"patterns\":[{\"comment\":\"Annotation name\",\"match\":\"\\\\b(\\\\w+)\\\\s*(?=\\\\=)\",\"name\":\"meta.annotation.name.move\"},{\"begin\":\"=\",\"comment\":\"Annotation value\",\"end\":\"(?=[,\\\\]])\",\"name\":\"meta.annotation.value.move\",\"patterns\":[{\"include\":\"#literals\"}]}]},\"as\":{\"comment\":\"Keyword as (highlighted)\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},\"as-import\":{\"comment\":\"Keyword as in import statement; not highlighted\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"meta.import.as.move\"},\"block\":{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.block.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"block-comments\":{\"patterns\":[{\"begin\":\"/\\\\*[\\\\*!](?![\\\\*/])\",\"comment\":\"Block documentation comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.documentation.move\"},{\"begin\":\"/\\\\*\",\"comment\":\"Block comment\",\"end\":\"\\\\*/\",\"name\":\"comment.block.move\"}]},\"capitalized\":{\"comment\":\"MyType - capitalized type name\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.use.move\"},\"comments\":{\"name\":\"meta.comments.move\",\"patterns\":[{\"include\":\"#doc-comments\"},{\"include\":\"#line-comments\"},{\"include\":\"#block-comments\"}]},\"const\":{\"begin\":\"\\\\b(const)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.const.move\"}},\"end\":\";\",\"name\":\"meta.const.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#primitives\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"match\":\"\\\\b([A-Z][A-Z_0-9]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"}]},\"control\":{\"comment\":\"Control flow\",\"match\":\"\\\\b(return|while|loop|if|else|break|continue|abort)\\\\b\",\"name\":\"keyword.control.move\"},\"doc-comments\":{\"begin\":\"///\",\"comment\":\"Documentation comment\",\"end\":\"$\",\"name\":\"comment.block.documentation.move\",\"patterns\":[{\"captures\":{\"1\":{\"name\":\"markup.underline.link.move\"}},\"comment\":\"Escaped member / link\",\"match\":\"`(\\\\w+)`\"}]},\"entry\":{\"comment\":\"entry\",\"match\":\"\\\\b(entry)\\\\b\",\"name\":\"storage.modifier.visibility.entry.move\"},\"enum\":{\"begin\":\"\\\\b(enum)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.enum.move\"}},\"comment\":\"Enum syntax\",\"end\":\"(?<=})\",\"name\":\"meta.enum.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#type_param\"},{\"comment\":\"Enum name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.definition.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b(?=\\\\s*\\\\()\",\"name\":\"entity.name.function.enum.move\"},{\"match\":\"\\\\b([A-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.enum.move\"},{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.tuple.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"end\":\"}\",\"name\":\"meta.enum.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]}]}]},\"error_const\":{\"match\":\"\\\\b(E[A-Z][A-Za-z0-9_]*)\\\\b\",\"name\":\"variable.other.error.const.move\"},\"escaped_identifier\":{\"begin\":\"`\",\"comment\":\"Escaped variable\",\"end\":\"`\",\"name\":\"variable.language.escaped.move\"},\"expr\":{\"comment\":\"Aggregate Expression\",\"name\":\"meta.expression.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#expr_generic\"},{\"include\":\"#packed_field\"},{\"include\":\"#import\"},{\"include\":\"#as\"},{\"include\":\"#mut\"},{\"include\":\"#let\"},{\"include\":\"#types\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#move_copy\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#label\"},{\"include\":\"#macro_call\"},{\"include\":\"#local_call\"},{\"include\":\"#method_call\"},{\"include\":\"#path_access\"},{\"include\":\"#match_expression\"},{\"match\":\"\\\\$(?=[a-z])\",\"name\":\"keyword.operator.macro.dollar.move\"},{\"match\":\"(?<=[$])[a-z][A-Z_0-9a-z]*\",\"name\":\"variable.other.meta.move\"},{\"comment\":\"ALL_CONST_CAPS\",\"match\":\"\\\\b([A-Z][A-Z_]+)\\\\b\",\"name\":\"constant.other.move\"},{\"include\":\"#error_const\"},{\"comment\":\"CustomType\",\"match\":\"\\\\b([A-Z][a-zA-Z_0-9]*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"include\":\"#paren\"},{\"include\":\"#block\"}]},\"expr_generic\":{\"begin\":\"<(?=([\\\\sa-z_,0-9A-Z<>]+>))\",\"comment\":\"< angle brackets >\",\"end\":\">\",\"name\":\"meta.expression.generic.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"},{\"include\":\"#capitalized\"},{\"include\":\"#expr_generic\"}]},\"friend\":{\"begin\":\"\\\\b(friend)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.friend.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#address_literal\"},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b([a-zA-Z][A-Za-z_0-9]*)\\\\b\",\"name\":\"entity.name.type.module.move\"}]},\"fun\":{\"patterns\":[{\"include\":\"#fun_signature\"},{\"include\":\"#block\"}]},\"fun_body\":{\"begin\":\"{\",\"comment\":\"Function body\",\"end\":\"(?<=})\",\"name\":\"meta.fun_body.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"fun_call\":{\"begin\":\"\\\\b(\\\\w+)\\\\s*(?:<[\\\\w\\\\s,]+>)?\\\\s*[(]\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Function call\",\"end\":\"[)]\",\"name\":\"meta.fun_call.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#resource_methods\"},{\"include\":\"#self_access\"},{\"include\":\"#module_access\"},{\"include\":\"#move_copy\"},{\"include\":\"#literals\"},{\"include\":\"#fun_call\"},{\"include\":\"#block\"},{\"include\":\"#mut\"},{\"include\":\"#as\"}]},\"fun_signature\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"Function signature\",\"end\":\"(?=[;{])\",\"name\":\"meta.fun_signature.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"},{\"begin\":\"(?<=\\\\bfun)\",\"comment\":\"Function name\",\"end\":\"(?=[<(])\",\"name\":\"meta.function_name.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]},{\"include\":\"#type_param\"},{\"begin\":\"[(]\",\"comment\":\"Parentheses\",\"end\":\"[)]\",\"name\":\"meta.parentheses.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"},{\"include\":\"#mut\"}]},{\"comment\":\"Keyword acquires\",\"match\":\"\\\\b(acquires)\\\\b\",\"name\":\"storage.modifier\"}]},\"has\":{\"comment\":\"Has Abilities\",\"match\":\"\\\\b(has)\\\\b\",\"name\":\"keyword.control.ability.has.move\"},\"has_ability\":{\"begin\":\"(?<=[})])\\\\s+(has)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.has.ability.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#abilities\"}]},\"ident\":{\"match\":\"\\\\b([a-zA-Z][A-Z_a-z0-9]*)\\\\b\",\"name\":\"meta.identifier.move\"},\"import\":{\"begin\":\"\\\\b(use)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\";\",\"name\":\"meta.import.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#use_fun\"},{\"include\":\"#address_literal\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"},{\"begin\":\"{\",\"comment\":\"Module members\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#as-import\"},{\"comment\":\"Uppercase entities\",\"match\":\"\\\\b([A-Z]\\\\w*)\\\\b\",\"name\":\"entity.name.type.move\"}]},{\"comment\":\"Name of the imported module\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"meta.entity.name.type.module.move\"}]},\"inline\":{\"comment\":\"inline\",\"match\":\"\\\\b(inline)\\\\b\",\"name\":\"storage.modifier.visibility.inline.move\"},\"label\":{\"comment\":\"Label\",\"match\":\"'[a-z][a-z_0-9]*\",\"name\":\"string.quoted.single.label.move\"},\"let\":{\"comment\":\"Keyword let\",\"match\":\"\\\\b(let)\\\\b\",\"name\":\"keyword.control.move\"},\"line-comments\":{\"begin\":\"//\",\"comment\":\"Single-line comment\",\"end\":\"$\",\"name\":\"comment.line.double-slash.move\"},\"literals\":{\"comment\":\"Literals supported in Move\",\"name\":\"meta.literal.move\",\"patterns\":[{\"comment\":\"base16 address literal\",\"match\":\"@0x[A-F0-9a-f]+\",\"name\":\"support.constant.address.base16.move\"},{\"comment\":\"named address literal @[ident]\",\"match\":\"@[a-zA-Z][a-zA-Z_0-9]*\",\"name\":\"support.constant.address.name.move\"},{\"comment\":\"Hex literal\",\"match\":\"0x[_a-fA-F0-9]+(?:u(?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.hex.move\"},{\"comment\":\"Numeric literal\",\"match\":\"(?<!(?:\\\\w|(?:(?<!\\\\.)\\\\.)))[0-9][_0-9]*(?:\\\\.(?!\\\\.)(?:[0-9][_0-9]*)?)?(?:[eE][+\\\\-]?[_0-9]+)?(?:[u](?:8|16|32|64|128|256))?\",\"name\":\"constant.numeric.move\"},{\"begin\":\"\\\\bb\\\"\",\"comment\":\"vector ascii bytestring literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.ascii.move\",\"patterns\":[{\"comment\":\"character escape\",\"match\":\"\\\\\\\\.\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"Special symbol escape\",\"match\":\"\\\\\\\\[nrt\\\\0\\\"]\",\"name\":\"constant.character.escape.move\"},{\"comment\":\"HEX Escape\",\"match\":\"\\\\\\\\x[a-fA-F0-9][A-Fa-f0-9]\",\"name\":\"constant.character.escape.hex.move\"},{\"comment\":\"ASCII Character\",\"match\":\"[\\\\x00-\\\\x7F]\",\"name\":\"string.quoted.double.raw.move\"}]},{\"begin\":\"x\\\"\",\"comment\":\"vector hex literal\",\"end\":\"\\\"\",\"name\":\"meta.vector.literal.hex.move\",\"patterns\":[{\"comment\":\"vector hex literal\",\"match\":\"[A-Fa-f0-9]+\",\"name\":\"constant.character.move\"}]},{\"comment\":\"bool literal\",\"match\":\"\\\\b(?:true|false)\\\\b\",\"name\":\"constant.language.boolean.move\"},{\"begin\":\"vector\\\\[\",\"comment\":\"vector literal (macro?)\",\"end\":\"\\\\]\",\"name\":\"meta.vector.literal.macro.move\",\"patterns\":[{\"include\":\"#expr\"}]}]},\"local_call\":{\"comment\":\"call to a local / imported fun\",\"match\":\"\\\\b([a-z][_a-z0-9]*)(?=[<\\\\(])\",\"name\":\"entity.name.function.call.local.move\"},\"macro\":{\"begin\":\"\\\\b(macro)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.macro.move\"}},\"comment\":\"macro fun [ident] {}\",\"end\":\"(?<=})\",\"name\":\"meta.macro.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#fun\"}]},\"macro_call\":{\"captures\":{\"2\":{\"name\":\"support.function.macro.move\"}},\"comment\":\"Macro fun call\",\"match\":\"(\\\\b|\\\\.)([a-z][A-Za-z0-9_]*)!\",\"name\":\"meta.macro.call\"},\"match_expression\":{\"begin\":\"\\\\b(match)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.match.move\"}},\"comment\":\"enum pattern matching\",\"end\":\"(?<=})\",\"name\":\"meta.match.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#types\"},{\"begin\":\"{\",\"comment\":\"Block expression or definition\",\"end\":\"}\",\"name\":\"meta.match.block.move\",\"patterns\":[{\"comment\":\"arrow operator\",\"match\":\"\\\\b(=>)\\\\b\",\"name\":\"operator.match.move\"},{\"include\":\"#expr\"}]},{\"include\":\"#expr\"}]},\"method_call\":{\"captures\":{\"1\":{\"name\":\"entity.name.function.call.path.move\"}},\"comment\":\"<expr>.[ident]<>?() call\",\"match\":\"\\\\.([a-z][_a-z0-9]*)(?=[<\\\\(])\",\"name\":\"meta.path.call.move\"},\"module\":{\"begin\":\"\\\\b(module)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"comment\":\"Module definition\",\"end\":\"(?<=[;}])\",\"name\":\"meta.module.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"(?<=\\\\b(module)\\\\b)\",\"comment\":\"Module name\",\"end\":\"(?=[;{])\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\b(module))\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s;{])\",\"name\":\"entity.name.type.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"}]}]},{\"begin\":\"{\",\"comment\":\"Module scope\",\"end\":\"}\",\"name\":\"meta.module_scope.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#annotation\"},{\"include\":\"#entry\"},{\"include\":\"#public-scope\"},{\"include\":\"#public\"},{\"include\":\"#native\"},{\"include\":\"#import\"},{\"include\":\"#friend\"},{\"include\":\"#const\"},{\"include\":\"#struct\"},{\"include\":\"#has_ability\"},{\"include\":\"#enum\"},{\"include\":\"#macro\"},{\"include\":\"#fun\"},{\"include\":\"#spec\"}]}]},\"module_access\":{\"captures\":{\"1\":{\"name\":\"meta.entity.name.type.accessed.module.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of module type or method\",\"match\":\"\\\\b(\\\\w+)::(\\\\w+)\\\\b\",\"name\":\"meta.module_access.move\"},\"module_label\":{\"begin\":\"^\\\\s*(module)\\\\b\",\"comment\":\"Module label, inline module definition\",\"end\":\";\\\\s*$\",\"name\":\"meta.module.label.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"begin\":\"(?<=\\\\bmodule\\\\b)\",\"comment\":\"Module namespace / address\",\"end\":\"(?=[(::){])\",\"name\":\"constant.other.move\"},{\"begin\":\"(?<=::)\",\"comment\":\"Module name\",\"end\":\"(?=[\\\\s{])\",\"name\":\"entity.name.type.move\"}]},\"move_copy\":{\"comment\":\"Keywords move and copy\",\"match\":\"\\\\b(move|copy)\\\\b\",\"name\":\"variable.language.move\"},\"mut\":{\"comment\":\"Mutable reference and let mut\",\"match\":\"\\\\b(mut)\\\\b\",\"name\":\"storage.modifier.mut.move\"},\"native\":{\"comment\":\"native\",\"match\":\"\\\\b(native)\\\\b\",\"name\":\"storage.modifier.visibility.native.move\"},\"packed_field\":{\"comment\":\"[ident]: \",\"match\":\"[a-z][a-z0-9_]+\\\\s*:\\\\s*(?=\\\\s)\",\"name\":\"meta.struct.field.move\"},\"paren\":{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.paren.move\",\"patterns\":[{\"include\":\"#expr\"}]},\"path_access\":{\"comment\":\"<expr>.[ident] access\",\"match\":\"\\\\.[a-z][_a-z0-9]*\\\\b\",\"name\":\"meta.path.access.move\"},\"phantom\":{\"comment\":\"Keyword phantom inside type parameters\",\"match\":\"\\\\b(phantom)\\\\b\",\"name\":\"keyword.control.phantom.move\"},\"primitives\":{\"comment\":\"Primitive types\",\"match\":\"\\\\b(u8|u16|u32|u64|u128|u256|address|bool|signer)\\\\b\",\"name\":\"support.type.primitives.move\"},\"public\":{\"comment\":\"public\",\"match\":\"\\\\b(public)\\\\b\",\"name\":\"storage.modifier.visibility.public.move\"},\"public-scope\":{\"begin\":\"(?<=\\\\b(public))\\\\s*\\\\(\",\"comment\":\"public (friend/script/package)\",\"end\":\"\\\\)\",\"name\":\"meta.public.scoped.move\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(friend|script|package)\\\\b\",\"name\":\"keyword.control.public.scope.move\"}]},\"resource_methods\":{\"comment\":\"Methods to work with resource\",\"match\":\"\\\\b(borrow_global|borrow_global_mut|exists|move_from|move_to_sender|move_to)\\\\b\",\"name\":\"support.function.typed.move\"},\"script\":{\"begin\":\"\\\\b(script)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.script.move\"}},\"end\":\"(?<=})\",\"name\":\"meta.script.move\",\"patterns\":[{\"include\":\"#comments\"},{\"begin\":\"{\",\"comment\":\"Script scope\",\"end\":\"}\",\"name\":\"meta.script_scope.move\",\"patterns\":[{\"include\":\"#const\"},{\"include\":\"#comments\"},{\"include\":\"#import\"},{\"include\":\"#fun\"}]}]},\"self_access\":{\"captures\":{\"1\":{\"name\":\"variable.language.self.move\"},\"2\":{\"name\":\"entity.name.function.call.move\"}},\"comment\":\"Use of Self\",\"match\":\"\\\\b(Self)::(\\\\w+)\\\\b\",\"name\":\"meta.self_access.move\"},\"spec\":{\"begin\":\"\\\\b(spec)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.spec.move\"}},\"end\":\"(?<=[;}])\",\"name\":\"meta.spec.move\",\"patterns\":[{\"comment\":\"Spec target\",\"match\":\"\\\\b(module|schema|struct|fun)\",\"name\":\"storage.modifier.spec.target.move\"},{\"comment\":\"Spec define inline\",\"match\":\"\\\\b(define)\",\"name\":\"storage.modifier.spec.define.move\"},{\"comment\":\"Target name\",\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"},{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#spec_define\"},{\"include\":\"#spec_keywords\"},{\"include\":\"#control\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]}]},\"spec_block\":{\"begin\":\"{\",\"comment\":\"Spec block\",\"end\":\"}\",\"name\":\"meta.spec_block.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_block\"},{\"include\":\"#spec_types\"},{\"include\":\"#fun_call\"},{\"include\":\"#literals\"},{\"include\":\"#control\"},{\"include\":\"#types\"},{\"include\":\"#let\"}]},\"spec_define\":{\"begin\":\"\\\\b(define)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.move.spec\"}},\"comment\":\"Spec define keyword\",\"end\":\"(?=[;{])\",\"name\":\"meta.spec_define.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#spec_types\"},{\"include\":\"#types\"},{\"begin\":\"(?<=\\\\bdefine)\",\"comment\":\"Function name\",\"end\":\"(?=[(])\",\"patterns\":[{\"include\":\"#comments\"},{\"match\":\"\\\\b(\\\\w+)\\\\b\",\"name\":\"entity.name.function.move\"}]}]},\"spec_keywords\":{\"match\":\"\\\\b(global|pack|unpack|pragma|native|include|ensures|requires|invariant|apply|aborts_if|modifies)\\\\b\",\"name\":\"keyword.control.move.spec\"},\"spec_types\":{\"comment\":\"Spec-only types\",\"match\":\"\\\\b(range|num|vector|bool|u8|u16|u32|u64|u128|u256|address)\\\\b\",\"name\":\"support.type.vector.move\"},\"struct\":{\"begin\":\"\\\\b(struct)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.type.move\"}},\"end\":\"(?<=[};\\\\)])\",\"name\":\"meta.struct.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#has\"},{\"include\":\"#abilities\"},{\"comment\":\"Struct name (ident)\",\"match\":\"\\\\b[A-Z][a-zA-Z_0-9]*\\\\b\",\"name\":\"entity.name.type.struct.move\"},{\"begin\":\"\\\\(\",\"comment\":\"Positional fields\",\"end\":\"\\\\)\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#type_param\"},{\"begin\":\"\\\\(\",\"comment\":\"Simple struct\",\"end\":\"(?<=[)])\",\"name\":\"meta.struct.paren.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#types\"}]},{\"begin\":\"{\",\"comment\":\"Struct body\",\"end\":\"}\",\"name\":\"meta.struct.body.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#self_access\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#module_access\"},{\"include\":\"#expr_generic\"},{\"include\":\"#capitalized\"},{\"include\":\"#types\"}]},{\"include\":\"#has_ability\"}]},\"struct_pack\":{\"begin\":\"(?<=[A-Za-z0-9_>])\\\\s*{\",\"comment\":\"Struct { field: value... }; identified as generic / ident followed by curly's\",\"end\":\"}\",\"name\":\"meta.struct.pack.move\",\"patterns\":[{\"include\":\"#comments\"}]},\"type_param\":{\"begin\":\"<\",\"comment\":\"Generic type param\",\"end\":\">\",\"name\":\"meta.generic_param.move\",\"patterns\":[{\"include\":\"#comments\"},{\"include\":\"#phantom\"},{\"include\":\"#capitalized\"},{\"include\":\"#module_access\"},{\"include\":\"#abilities\"}]},\"types\":{\"comment\":\"Built-in types + vector\",\"name\":\"meta.types.move\",\"patterns\":[{\"include\":\"#primitives\"},{\"include\":\"#vector\"}]},\"use_fun\":{\"begin\":\"\\\\b(fun)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"storage.modifier.fun.move\"}},\"comment\":\"use { fun } internals\",\"end\":\"(?=;)\",\"name\":\"meta.import.fun.move\",\"patterns\":[{\"include\":\"#comments\"},{\"comment\":\"as keyword\",\"match\":\"\\\\b(as)\\\\b\",\"name\":\"keyword.control.as.move\"},{\"comment\":\"Self keyword\",\"match\":\"\\\\b(Self)\\\\b\",\"name\":\"variable.language.self.use.fun.move\"},{\"comment\":\"Function name\",\"match\":\"\\\\b(_______[a-z][a-z_0-9]+)\\\\b\",\"name\":\"entity.name.function.use.move\"},{\"include\":\"#types\"},{\"include\":\"#escaped_identifier\"},{\"include\":\"#capitalized\"}]},\"vector\":{\"comment\":\"vector type\",\"match\":\"\\\\b(vector)\\\\b\",\"name\":\"support.type.vector.move\"}},\"scopeName\":\"source.move\"}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/nextflow.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nextflow\",\"name\":\"nextflow\",\"patterns\":[{\"include\":\"#nextflow\"}],\"repository\":{\"enum-def\":{\"begin\":\"^\\\\s*(enum)\\\\s+(\\\\w+)\\\\s*{\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.nextflow\"},\"2\":{\"name\":\"storage.type.groovy\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nextflow-groovy#comments\"},{\"include\":\"#enum-values\"}]},\"enum-values\":{\"patterns\":[{\"begin\":\"(?<=;|^)\\\\s*\\\\b([A-Z0-9_]+)(?=\\\\s*(?:,|}|\\\\(|$))\",\"beginCaptures\":{\"1\":{\"name\":\"constant.enum.name.groovy\"}},\"end\":\",|(?=})|^(?!\\\\s*\\\\w+\\\\s*(?:,|$))\",\"patterns\":[{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.value.groovy\",\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.definition.seperator.parameter.groovy\"},{\"include\":\"#groovy-code\"}]}]}]},\"function-body\":{\"patterns\":[{\"match\":\"\\\\s\"},{\"begin\":\"(?=(?:\\\\w|<)[
|
|
1
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nextflow\",\"name\":\"nextflow\",\"patterns\":[{\"include\":\"#nextflow\"}],\"repository\":{\"enum-def\":{\"begin\":\"^\\\\s*(enum)\\\\s+(\\\\w+)\\\\s*{\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.nextflow\"},\"2\":{\"name\":\"storage.type.groovy\"}},\"end\":\"}\",\"patterns\":[{\"include\":\"source.nextflow-groovy#comments\"},{\"include\":\"#enum-values\"}]},\"enum-values\":{\"patterns\":[{\"begin\":\"(?<=;|^)\\\\s*\\\\b([A-Z0-9_]+)(?=\\\\s*(?:,|}|\\\\(|$))\",\"beginCaptures\":{\"1\":{\"name\":\"constant.enum.name.groovy\"}},\"end\":\",|(?=})|^(?!\\\\s*\\\\w+\\\\s*(?:,|$))\",\"patterns\":[{\"begin\":\"\\\\(\",\"end\":\"\\\\)\",\"name\":\"meta.enum.value.groovy\",\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.definition.seperator.parameter.groovy\"},{\"include\":\"#groovy-code\"}]}]}]},\"function-body\":{\"patterns\":[{\"match\":\"\\\\s\"},{\"begin\":\"(?=(?:\\\\w|<)[^\\\\(]*\\\\s+(?:[\\\\w$]|<)+\\\\s*\\\\()\",\"end\":\"(?=[\\\\w$]+\\\\s*\\\\()\",\"name\":\"meta.method.return-type.java\",\"patterns\":[{\"include\":\"source.nextflow-groovy#types\"}]},{\"begin\":\"([\\\\w$]+)\\\\s*\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"entity.name.function.nextflow\"}},\"end\":\"\\\\)\",\"name\":\"meta.definition.method.signature.java\",\"patterns\":[{\"begin\":\"(?=[^)])\",\"end\":\"(?=\\\\))\",\"name\":\"meta.method.parameters.groovy\",\"patterns\":[{\"begin\":\"(?=[^,)])\",\"end\":\"(?=,|\\\\))\",\"name\":\"meta.method.parameter.groovy\",\"patterns\":[{\"match\":\",\",\"name\":\"punctuation.definition.separator.groovy\"},{\"begin\":\"=\",\"beginCaptures\":{\"0\":{\"name\":\"keyword.operator.assignment.groovy\"}},\"end\":\"(?=,|\\\\))\",\"name\":\"meta.parameter.default.groovy\",\"patterns\":[{\"include\":\"source.nextflow-groovy#groovy-code\"}]},{\"include\":\"source.nextflow-groovy#parameters\"}]}]}]},{\"begin\":\"(?=<)\",\"end\":\"(?=\\\\s)\",\"name\":\"meta.method.paramerised-type.groovy\",\"patterns\":[{\"begin\":\"<\",\"end\":\">\",\"name\":\"storage.type.parameters.groovy\",\"patterns\":[{\"include\":\"source.nextflow-groovy#types\"},{\"match\":\",\",\"name\":\"punctuation.definition.seperator.groovy\"}]}]},{\"begin\":\"{\",\"end\":\"(?=})\",\"name\":\"meta.method.body.java\",\"patterns\":[{\"include\":\"source.nextflow-groovy#groovy-code\"}]}]},\"function-def\":{\"applyEndPatternLast\":1,\"begin\":\"(?:(?<=;|^|{)(?=\\\\s*(?:(?:def)|(?:(?:(?:boolean|byte|char|short|int|float|long|double)|(?:@?(?:[a-zA-Z]\\\\w*\\\\.)*[A-Z]+\\\\w*))[\\\\[\\\\]]*(?:<.*>)?)n)\\\\s+([^=]+\\\\s+)?\\\\w+\\\\s*\\\\())\",\"end\":\"}|(?=[^{])\",\"name\":\"meta.definition.method.groovy\",\"patterns\":[{\"include\":\"#function-body\"}]},\"include-decl\":{\"patterns\":[{\"match\":\"^\\\\b(include)\\\\b\",\"name\":\"keyword.nextflow\"},{\"match\":\"\\\\b(from)\\\\b\",\"name\":\"keyword.nextflow\"}]},\"nextflow\":{\"patterns\":[{\"include\":\"#enum-def\"},{\"include\":\"#function-def\"},{\"include\":\"#process-def\"},{\"include\":\"#workflow-def\"},{\"include\":\"#output-def\"},{\"include\":\"#include-decl\"},{\"include\":\"source.nextflow-groovy\"}]},\"output-def\":{\"begin\":\"^\\\\s*(output)\\\\s*{\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.nextflow\"}},\"end\":\"}\",\"name\":\"output.nextflow\",\"patterns\":[{\"include\":\"source.nextflow-groovy#groovy\"}]},\"process-body\":{\"patterns\":[{\"match\":\"(?:input|output|when|script|shell|exec):\",\"name\":\"constant.block.nextflow\"},{\"match\":\"\\\\b(val|env|file|path|stdin|stdout|tuple)(\\\\(|\\\\s)\",\"name\":\"entity.name.function.nextflow\"},{\"include\":\"source.nextflow-groovy#groovy\"}]},\"process-def\":{\"begin\":\"^\\\\s*(process)\\\\s+(\\\\w+)\\\\s*{\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.nextflow\"},\"2\":{\"name\":\"entity.name.function.nextflow\"}},\"end\":\"}\",\"name\":\"process.nextflow\",\"patterns\":[{\"include\":\"#process-body\"}]},\"workflow-body\":{\"patterns\":[{\"match\":\"(?:take|main|emit|publish):\",\"name\":\"constant.block.nextflow\"},{\"include\":\"source.nextflow-groovy#groovy\"}]},\"workflow-def\":{\"begin\":\"^\\\\s*(workflow)(?:\\\\s+(\\\\w+))?\\\\s*{\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.nextflow\"},\"2\":{\"name\":\"entity.name.function.nextflow\"}},\"end\":\"}\",\"name\":\"workflow.nextflow\",\"patterns\":[{\"include\":\"#workflow-body\"}]}},\"scopeName\":\"source.nextflow\",\"aliases\":[\"nf\"]}"))
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|
package/dist/nginx.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import lua from './lua.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nginx\",\"fileTypes\":[\"conf.erb\",\"conf\",\"ngx\",\"nginx.conf\",\"mime.types\",\"fastcgi_params\",\"scgi_params\",\"uwsgi_params\"],\"foldingStartMarker\":\"\\\\{\\\\s*$\",\"foldingStopMarker\":\"^\\\\s*\\\\}\",\"name\":\"nginx\",\"patterns\":[{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"},{\"begin\":\"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua(?:_block)?)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"contentName\":\"meta.embedded.block.lua\",\"end\":\"\\\\}\",\"name\":\"meta.context.lua.nginx\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua)\\\\s*'\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"contentName\":\"meta.embedded.block.lua\",\"end\":\"'\",\"name\":\"meta.context.lua.nginx\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"\\\\b(events) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.events.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(http) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.http.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(mail) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.mail.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(stream) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.stream.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(server) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.server.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(location) +([\\\\^]?~[\\\\*]?|=) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"keyword.operator.nginx\"},\"3\":{\"name\":\"string.regexp.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.location.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(location) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"entity.name.context.location.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.location.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(limit_except) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.limit_except.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(if) +\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.nginx\"}},\"end\":\"\\\\)\",\"name\":\"meta.context.if.nginx\",\"patterns\":[{\"include\":\"#if_condition\"}]},{\"begin\":\"\\\\b(upstream) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"entity.name.context.location.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.upstream.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(types) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.types.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(map) +(\\\\$)([A-Za-z0-9_]+) +(\\\\$)([A-Za-z0-9_]+) *\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"punctuation.definition.variable.nginx\"},\"3\":{\"name\":\"variable.parameter.nginx\"},\"4\":{\"name\":\"punctuation.definition.variable.nginx\"},\"5\":{\"name\":\"variable.other.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.map.nginx\",\"patterns\":[{\"include\":\"#values\"},{\"match\":\";\",\"name\":\"punctuation.terminator.nginx\"},{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"}]},{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"name\":\"meta.block.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(return)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.nginx\"}},\"end\":\";\",\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b(rewrite)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\"(last|break|redirect|permanent)?(;)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.other.nginx\"},\"2\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b(server)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#server_parameters\"}]},{\"begin\":\"\\\\b(internal|empty_gif|f4f|flv|hls|mp4|break|status|stub_status|ip_hash|ntlm|least_conn|upstream_conf|least_conn|zone_sync)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\"(;|$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}}},{\"begin\":\"([\\\"'\\\\s]|^)(accept_)(mutex|mutex_delay)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(debug_)(connection|points)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(error_)(log|page)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ssl_)(engine|buffer_size|certificate|certificate_key|ciphers|client_certificate|conf_command|crl|dhparam|early_data|ecdh_curve|ocsp|ocsp_cache|ocsp_responder|password_file|prefer_server_ciphers|protocols|reject_handshake|session_cache|session_ticket_key|session_tickets|session_timeout|stapling|stapling_file|stapling_responder|stapling_verify|trusted_certificate|verify_client|verify_depth|alpn|handshake_timeout|preread)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(worker_)(aio_requests|connections|cpu_affinity|priority|processes|rlimit_core|rlimit_nofile|shutdown_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(auth_)(delay|basic|basic_user_file|jwt|jwt_claim_set|jwt_header_set|jwt_key_cache|jwt_key_file|jwt_key_request|jwt_leeway|jwt_type|jwt_require|request|request_set|http|http_header|http_pass_client_cert|http_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(client_)(body_buffer_size|body_in_file_only|body_in_single_buffer|body_temp_path|body_timeout|header_buffer_size|header_timeout|max_body_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(keepalive_)(disable|requests|time|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(limit_)(rate|rate_after|conn|conn_dry_run|conn_log_level|conn_status|conn_zone|zone|req|req_dry_run|req_log_level|req_status|req_zone)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(lingering_)(close|time|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(log_)(not_found|subrequest|format)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(max_)(ranges|errors)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(msie_)(padding|refresh)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(open_)(file_cache|file_cache_errors|file_cache_min_uses|file_cache_valid|log_file_cache)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(send_)(lowat|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(server_)(name|name_in_redirect|names_hash_bucket_size|names_hash_max_size|tokens)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(tcp_)(nodelay|nopush)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(types_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(variables_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(add_)(before_body|after_body|header|trailer)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(status_)(zone|format)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(autoindex_)(exact_size|format|localtime)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ancient_)(browser|browser_value)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(modern_)(browser|browser_value)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(charset_)(map|types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(dav_)(access|methods)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(fastcgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|catch_stderr|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|index|intercept_errors|keep_conn|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_lowat|send_timeout|socket_keepalive|split_path_info|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(geoip_)(country|city|org|proxy|proxy_recursive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(grpc_)(bind|buffer_size|connect_timeout|hide_header|ignore_headers|intercept_errors|next_upstream|next_upstream_timeout|next_upstream_tries|pass|pass_header|read_timeout|send_timeout|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(gzip_)(buffers|comp_level|disable|http_version|min_length|proxied|types|vary|static)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(hls_)(buffers|forward_args|fragment|mp4_buffer_size|mp4_max_buffer_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(image_)(filter|filter_buffer|filter_interlace|filter_jpeg_quality|filter_sharpen|filter_transparency|filter_webp_quality)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(map_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(memcached_)(bind|buffer_size|connect_timeout|gzip_flag|next_upstream|next_upstream_timeout|next_upstream_tries|pass|read_timeout|send_timeout|socket_keepalive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(mp4_)(buffer_size|max_buffer_size|limit_rate|limit_rate_after|start_key_frame)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(perl_)(modules|require|set)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(proxy_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_convert_head|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|cookie_domain|cookie_flags|cookie_path|force_ranges|headers_hash_bucket_size|headers_hash_max_size|hide_header|http_version|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|method|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|redirect|request_buffering|send_lowat|send_timeout|set_body|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path|buffer|pass_error_message|protocol|smtp_auth|timeout|protocol_timeout|download_rate|half_close|requests|responses|session_drop|ssl|upload_rate)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(real_)(ip_header|ip_recursive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(referer_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(scgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(secure_)(link|link_md5|link_secret)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(session_)(log|log_format|log_zone)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ssi_)(last_modified|min_file_chunk|silent_errors|types|value_length)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(sub_)(filter|filter_last_modified|filter_once|filter_types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(health_)(check|check_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(userid_)(domain|expires|flags|mark|name|p3p|path|service)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(uwsgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|modifier1|modifier2|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(http2_)(body_preread_size|chunk_size|idle_timeout|max_concurrent_pushes|max_concurrent_streams|max_field_size|max_header_size|max_requests|push|push_preload|recv_buffer_size|recv_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(http3_)(hq|max_concurrent_streams|stream_buffer_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(quic_)(active_connection_id_limit|bpf|gso|host_key|retry)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(xslt_)(last_modified|param|string_param|stylesheet|types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(imap_)(auth|capabilities|client_buffer)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(pop3_)(auth|capabilities)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(smtp_)(auth|capabilities|client_buffer|greeting_delay)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(preread_)(buffer_size|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(mqtt_)(preread|buffers|rewrite_buffer_size|set_connect)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(zone_)(sync_buffers|sync_connect_retry_interval|sync_connect_timeout|sync_interval|sync_recv_buffer_size|sync_server|sync_ssl|sync_ssl_certificate|sync_ssl_certificate_key|sync_ssl_ciphers|sync_ssl_conf_command|sync_ssl_crl|sync_ssl_name|sync_ssl_password_file|sync_ssl_protocols|sync_ssl_server_name|sync_ssl_trusted_certificate|sync_ssl_verify|sync_ssl_verify_depth|sync_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(otel_)(exporter|service_name|trace|trace_context|span_name|span_attr)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(js_)(body_filter|content|fetch_buffer_size|fetch_ciphers|fetch_max_response_buffer_size|fetch_protocols|fetch_timeout|fetch_trusted_certificate|fetch_verify|fetch_verify_depth|header_filter|import|include|path|periodic|preload_object|set|shared_dict_zone|var|access|filter|preread)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(daemon|env|include|pid|use|user|aio|alias|directio|etag|listen|resolver|root|satisfy|sendfile|allow|deny|api|autoindex|charset|geo|gunzip|gzip|expires|index|keyval|mirror|perl|set|slice|ssi|ssl|zone|state|hash|keepalive|queue|random|sticky|match|userid|http2|http3|protocol|timeout|xclient|starttls|mqtt|load_module|lock_file|master_process|multi_accept|pcre_jit|thread_pool|timer_resolution|working_directory|absolute_redirect|aio_write|chunked_transfer_encoding|connection_pool_size|default_type|directio_alignment|disable_symlinks|if_modified_since|ignore_invalid_headers|large_client_header_buffers|merge_slashes|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver_timeout|sendfile_max_chunk|subrequest_output_buffer_size|try_files|underscores_in_headers|addition_types|override_charset|source_charset|create_full_put_path|min_delete_depth|f4f_buffer_size|gunzip_buffers|internal_redirect|keyval_zone|access_log|mirror_request_body|random_index|set_real_ip_from|valid_referers|rewrite_log|uninitialized_variable_warn|split_clients|least_time|sticky_cookie_insert|xml_entities|google_perftools_profiles)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b(\\\\w+)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.unknown.nginx\"}},\"end\":\"(;|$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b([a-z]+\\\\/[A-Za-z0-9\\\\-\\\\.+]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.mediatype.nginx\"}},\"end\":\"(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]}],\"repository\":{\"if_condition\":{\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"!?\\\\~\\\\*?\\\\s\",\"name\":\"keyword.operator.nginx\"},{\"match\":\"!?-[fdex]\\\\s\",\"name\":\"keyword.operator.nginx\"},{\"match\":\"!?=[^=]\",\"name\":\"keyword.operator.nginx\"},{\"include\":\"#regexp_and_string\"}]},\"regexp_and_string\":{\"patterns\":[{\"match\":\"\\\\^.*?\\\\$\",\"name\":\"string.regexp.nginx\"},{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.nginx\",\"patterns\":[{\"match\":\"\\\\\\\\[\\\"'nt\\\\\\\\]\",\"name\":\"constant.character.escape.nginx\"},{\"include\":\"#variables\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.nginx\",\"patterns\":[{\"match\":\"\\\\\\\\[\\\"'nt\\\\\\\\]\",\"name\":\"constant.character.escape.nginx\"},{\"include\":\"#variables\"}]}]},\"server_parameters\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nginx\"},\"2\":{\"name\":\"keyword.operator.nginx\"},\"3\":{\"name\":\"constant.numeric.nginx\"}},\"match\":\"(?:^|\\\\s)(weight|max_conn|max_fails|fail_timeout|slow_start)(=)(\\\\d[\\\\d\\\\.]*[bBkKmMgGtTsShHdD]?)(?:\\\\s|;|$)\"},{\"include\":\"#values\"}]},\"values\":{\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"},{\"captures\":{\"1\":{\"name\":\"constant.numeric.nginx\"}},\"match\":\"(?<=\\\\G|\\\\s)(=?\\\\d[0-9\\\\.]*[bBkKmMgGtTsShHdD]?)(?=[\\\\t ;])\"},{\"match\":\"(?<=\\\\G|\\\\s)(on|off|true|false)(?=[\\\\t ;])\",\"name\":\"constant.language.nginx\"},{\"match\":\"(?<=\\\\G|\\\\s)(kqueue|rtsig|epoll|\\\\/dev\\\\/poll|select|poll|eventport|max|all|default_server|default|main|crit|error|debug|warn|notice|last)(?=[\\\\t ;])\",\"name\":\"constant.language.nginx\"},{\"match\":\"\\\\\\\\.* |\\\\~\\\\*|\\\\~|!\\\\~\\\\*|!\\\\~\",\"name\":\"keyword.operator.nginx\"},{\"include\":\"#regexp_and_string\"}]},\"variables\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.nginx\"},\"2\":{\"name\":\"variable.other.nginx\"}},\"match\":\"(\\\\$)([A-Za-z0-9_]+)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.nginx\"},\"2\":{\"name\":\"variable.other.nginx\"},\"3\":{\"name\":\"punctuation.definition.variable.nginx\"}},\"match\":\"(\\\\$\\\\{)([A-Za-z0-9_]+)(\\\\})\"}]}},\"scopeName\":\"source.nginx\",\"embeddedLangs\":[\"lua\"]}"))
|
|
3
|
+
const lang = Object.freeze(JSON.parse("{\"displayName\":\"Nginx\",\"fileTypes\":[\"conf.erb\",\"conf\",\"ngx\",\"nginx.conf\",\"mime.types\",\"fastcgi_params\",\"scgi_params\",\"uwsgi_params\"],\"foldingStartMarker\":\"\\\\{\\\\s*$\",\"foldingStopMarker\":\"^\\\\s*\\\\}\",\"name\":\"nginx\",\"patterns\":[{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"},{\"begin\":\"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua(?:_block)?)\\\\s*\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"contentName\":\"meta.embedded.block.lua\",\"end\":\"\\\\}\",\"name\":\"meta.context.lua.nginx\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"\\\\b((?:content|rewrite|access|init_worker|init|set|log|balancer|ssl_(?:client_hello|session_fetch|certificate))_by_lua)\\\\s*'\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"contentName\":\"meta.embedded.block.lua\",\"end\":\"'\",\"name\":\"meta.context.lua.nginx\",\"patterns\":[{\"include\":\"source.lua\"}]},{\"begin\":\"\\\\b(events) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.events.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(http) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.http.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(mail) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.mail.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(stream) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.stream.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(server) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.server.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(location) +([\\\\^]?~[\\\\*]?|=) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"keyword.operator.nginx\"},\"3\":{\"name\":\"string.regexp.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.location.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(location) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"entity.name.context.location.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.location.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(limit_except) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.limit_except.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(if) +\\\\(\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.nginx\"}},\"end\":\"\\\\)\",\"name\":\"meta.context.if.nginx\",\"patterns\":[{\"include\":\"#if_condition\"}]},{\"begin\":\"\\\\b(upstream) +(.*?)\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"entity.name.context.location.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.upstream.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(types) +\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.types.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(map) +(\\\\$)([A-Za-z0-9\\\\_]+) +(\\\\$)([A-Za-z0-9\\\\_]+) *\\\\{\",\"beginCaptures\":{\"1\":{\"name\":\"storage.type.directive.context.nginx\"},\"2\":{\"name\":\"punctuation.definition.variable.nginx\"},\"3\":{\"name\":\"variable.parameter.nginx\"},\"4\":{\"name\":\"punctuation.definition.variable.nginx\"},\"5\":{\"name\":\"variable.other.nginx\"}},\"end\":\"\\\\}\",\"name\":\"meta.context.map.nginx\",\"patterns\":[{\"include\":\"#values\"},{\"match\":\";\",\"name\":\"punctuation.terminator.nginx\"},{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"}]},{\"begin\":\"\\\\{\",\"end\":\"\\\\}\",\"name\":\"meta.block.nginx\",\"patterns\":[{\"include\":\"$self\"}]},{\"begin\":\"\\\\b(return)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.control.nginx\"}},\"end\":\";\",\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b(rewrite)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\"(last|break|redirect|permanent)?(;)\",\"endCaptures\":{\"1\":{\"name\":\"keyword.other.nginx\"},\"2\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b(server)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#server_parameters\"}]},{\"begin\":\"\\\\b(internal|empty_gif|f4f|flv|hls|mp4|break|status|stub_status|ip_hash|ntlm|least_conn|upstream_conf|least_conn|zone_sync)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\"(;|$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}}},{\"begin\":\"([\\\"'\\\\s]|^)(accept_)(mutex|mutex_delay)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(debug_)(connection|points)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(error_)(log|page)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ssl_)(engine|buffer_size|certificate|certificate_key|ciphers|client_certificate|conf_command|crl|dhparam|early_data|ecdh_curve|ocsp|ocsp_cache|ocsp_responder|password_file|prefer_server_ciphers|protocols|reject_handshake|session_cache|session_ticket_key|session_tickets|session_timeout|stapling|stapling_file|stapling_responder|stapling_verify|trusted_certificate|verify_client|verify_depth|alpn|handshake_timeout|preread)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(worker_)(aio_requests|connections|cpu_affinity|priority|processes|rlimit_core|rlimit_nofile|shutdown_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(auth_)(delay|basic|basic_user_file|jwt|jwt_claim_set|jwt_header_set|jwt_key_cache|jwt_key_file|jwt_key_request|jwt_leeway|jwt_type|jwt_require|request|request_set|http|http_header|http_pass_client_cert|http_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(client_)(body_buffer_size|body_in_file_only|body_in_single_buffer|body_temp_path|body_timeout|header_buffer_size|header_timeout|max_body_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(keepalive_)(disable|requests|time|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(limit_)(rate|rate_after|conn|conn_dry_run|conn_log_level|conn_status|conn_zone|zone|req|req_dry_run|req_log_level|req_status|req_zone)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(lingering_)(close|time|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(log_)(not_found|subrequest|format)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(max_)(ranges|errors)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(msie_)(padding|refresh)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(open_)(file_cache|file_cache_errors|file_cache_min_uses|file_cache_valid|log_file_cache)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(send_)(lowat|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(server_)(name|name_in_redirect|names_hash_bucket_size|names_hash_max_size|tokens)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(tcp_)(nodelay|nopush)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(types_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(variables_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(add_)(before_body|after_body|header|trailer)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(status_)(zone|format)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(autoindex_)(exact_size|format|localtime)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ancient_)(browser|browser_value)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(modern_)(browser|browser_value)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(charset_)(map|types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(dav_)(access|methods)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(fastcgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|catch_stderr|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|index|intercept_errors|keep_conn|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_lowat|send_timeout|socket_keepalive|split_path_info|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(geoip_)(country|city|org|proxy|proxy_recursive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(grpc_)(bind|buffer_size|connect_timeout|hide_header|ignore_headers|intercept_errors|next_upstream|next_upstream_timeout|next_upstream_tries|pass|pass_header|read_timeout|send_timeout|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(gzip_)(buffers|comp_level|disable|http_version|min_length|proxied|types|vary|static)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(hls_)(buffers|forward_args|fragment|mp4_buffer_size|mp4_max_buffer_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(image_)(filter|filter_buffer|filter_interlace|filter_jpeg_quality|filter_sharpen|filter_transparency|filter_webp_quality)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(map_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(memcached_)(bind|buffer_size|connect_timeout|gzip_flag|next_upstream|next_upstream_timeout|next_upstream_tries|pass|read_timeout|send_timeout|socket_keepalive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(mp4_)(buffer_size|max_buffer_size|limit_rate|limit_rate_after|start_key_frame)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(perl_)(modules|require|set)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(proxy_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_convert_head|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|cookie_domain|cookie_flags|cookie_path|force_ranges|headers_hash_bucket_size|headers_hash_max_size|hide_header|http_version|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|method|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|redirect|request_buffering|send_lowat|send_timeout|set_body|set_header|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path|buffer|pass_error_message|protocol|smtp_auth|timeout|protocol_timeout|download_rate|half_close|requests|responses|session_drop|ssl|upload_rate)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(real_)(ip_header|ip_recursive)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(referer_)(hash_bucket_size|hash_max_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(scgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(secure_)(link|link_md5|link_secret)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(session_)(log|log_format|log_zone)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(ssi_)(last_modified|min_file_chunk|silent_errors|types|value_length)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(sub_)(filter|filter_last_modified|filter_once|filter_types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(health_)(check|check_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(userid_)(domain|expires|flags|mark|name|p3p|path|service)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(uwsgi_)(bind|buffer_size|buffering|buffers|busy_buffers_size|cache|cache_background_update|cache_bypass|cache_key|cache_lock|cache_lock_age|cache_lock_timeout|cache_max_range_offset|cache_methods|cache_min_uses|cache_path|cache_purge|cache_revalidate|cache_use_stale|cache_valid|connect_timeout|force_ranges|hide_header|ignore_client_abort|ignore_headers|intercept_errors|limit_rate|max_temp_file_size|modifier1|modifier2|next_upstream|next_upstream_timeout|next_upstream_tries|no_cache|param|pass|pass_header|pass_request_body|pass_request_headers|read_timeout|request_buffering|send_timeout|socket_keepalive|ssl_certificate|ssl_certificate_key|ssl_ciphers|ssl_conf_command|ssl_crl|ssl_name|ssl_password_file|ssl_protocols|ssl_server_name|ssl_session_reuse|ssl_trusted_certificate|ssl_verify|ssl_verify_depth|store|store_access|temp_file_write_size|temp_path)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(http2_)(body_preread_size|chunk_size|idle_timeout|max_concurrent_pushes|max_concurrent_streams|max_field_size|max_header_size|max_requests|push|push_preload|recv_buffer_size|recv_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(http3_)(hq|max_concurrent_streams|stream_buffer_size)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(quic_)(active_connection_id_limit|bpf|gso|host_key|retry)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(xslt_)(last_modified|param|string_param|stylesheet|types)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(imap_)(auth|capabilities|client_buffer)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(pop3_)(auth|capabilities)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(smtp_)(auth|capabilities|client_buffer|greeting_delay)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(preread_)(buffer_size|timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(mqtt_)(preread|buffers|rewrite_buffer_size|set_connect)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(zone_)(sync_buffers|sync_connect_retry_interval|sync_connect_timeout|sync_interval|sync_recv_buffer_size|sync_server|sync_ssl|sync_ssl_certificate|sync_ssl_certificate_key|sync_ssl_ciphers|sync_ssl_conf_command|sync_ssl_crl|sync_ssl_name|sync_ssl_password_file|sync_ssl_protocols|sync_ssl_server_name|sync_ssl_trusted_certificate|sync_ssl_verify|sync_ssl_verify_depth|sync_timeout)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(otel_)(exporter|service_name|trace|trace_context|span_name|span_attr)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(js_)(body_filter|content|fetch_buffer_size|fetch_ciphers|fetch_max_response_buffer_size|fetch_protocols|fetch_timeout|fetch_trusted_certificate|fetch_verify|fetch_verify_depth|header_filter|import|include|path|periodic|preload_object|set|shared_dict_zone|var|access|filter|preread)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"},\"4\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"([\\\"'\\\\s]|^)(daemon|env|include|pid|use|user|aio|alias|directio|etag|listen|resolver|root|satisfy|sendfile|allow|deny|api|autoindex|charset|geo|gunzip|gzip|expires|index|keyval|mirror|perl|set|slice|ssi|ssl|zone|state|hash|keepalive|queue|random|sticky|match|userid|http2|http3|protocol|timeout|xclient|starttls|mqtt|load_module|lock_file|master_process|multi_accept|pcre_jit|thread_pool|timer_resolution|working_directory|absolute_redirect|aio_write|chunked_transfer_encoding|connection_pool_size|default_type|directio_alignment|disable_symlinks|if_modified_since|ignore_invalid_headers|large_client_header_buffers|merge_slashes|output_buffers|port_in_redirect|postpone_output|read_ahead|recursive_error_pages|request_pool_size|reset_timedout_connection|resolver_timeout|sendfile_max_chunk|subrequest_output_buffer_size|try_files|underscores_in_headers|addition_types|override_charset|source_charset|create_full_put_path|min_delete_depth|f4f_buffer_size|gunzip_buffers|internal_redirect|keyval_zone|access_log|mirror_request_body|random_index|set_real_ip_from|valid_referers|rewrite_log|uninitialized_variable_warn|split_clients|least_time|sticky_cookie_insert|xml_entities|google_perftools_profiles)([\\\"'\\\\s]|$)\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.nginx\"},\"2\":{\"name\":\"keyword.directive.nginx\"},\"3\":{\"name\":\"keyword.directive.nginx\"}},\"end\":\";\",\"endCaptures\":{\"0\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b([a-zA-Z0-9\\\\_]+)\\\\s+\",\"beginCaptures\":{\"1\":{\"name\":\"keyword.directive.unknown.nginx\"}},\"end\":\"(;|$)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]},{\"begin\":\"\\\\b([a-z]+\\\\/[A-Za-z0-9\\\\-\\\\.\\\\+]+)\\\\b\",\"beginCaptures\":{\"1\":{\"name\":\"constant.other.mediatype.nginx\"}},\"end\":\"(;)\",\"endCaptures\":{\"1\":{\"name\":\"punctuation.terminator.nginx\"}},\"patterns\":[{\"include\":\"#values\"}]}],\"repository\":{\"if_condition\":{\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\!?\\\\~\\\\*?\\\\s\",\"name\":\"keyword.operator.nginx\"},{\"match\":\"\\\\!?\\\\-[fdex]\\\\s\",\"name\":\"keyword.operator.nginx\"},{\"match\":\"\\\\!?=[^=]\",\"name\":\"keyword.operator.nginx\"},{\"include\":\"#regexp_and_string\"}]},\"regexp_and_string\":{\"patterns\":[{\"match\":\"\\\\^.*?\\\\$\",\"name\":\"string.regexp.nginx\"},{\"begin\":\"\\\"\",\"end\":\"\\\"\",\"name\":\"string.quoted.double.nginx\",\"patterns\":[{\"match\":\"\\\\\\\\[\\\"'nt\\\\\\\\]\",\"name\":\"constant.character.escape.nginx\"},{\"include\":\"#variables\"}]},{\"begin\":\"'\",\"end\":\"'\",\"name\":\"string.quoted.single.nginx\",\"patterns\":[{\"match\":\"\\\\\\\\[\\\"'nt\\\\\\\\]\",\"name\":\"constant.character.escape.nginx\"},{\"include\":\"#variables\"}]}]},\"server_parameters\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"variable.parameter.nginx\"},\"2\":{\"name\":\"keyword.operator.nginx\"},\"3\":{\"name\":\"constant.numeric.nginx\"}},\"match\":\"(?:^|\\\\s)(weight|max_conn|max_fails|fail_timeout|slow_start)(=)(\\\\d[\\\\d\\\\.]*[bBkKmMgGtTsShHdD]?)(?:\\\\s|;|$)\"},{\"include\":\"#values\"}]},\"values\":{\"patterns\":[{\"include\":\"#variables\"},{\"match\":\"\\\\#.*\",\"name\":\"comment.line.number-sign\"},{\"captures\":{\"1\":{\"name\":\"constant.numeric.nginx\"}},\"match\":\"(?<=\\\\G|\\\\s)(=?[0-9][0-9\\\\.]*[bBkKmMgGtTsShHdD]?)(?=[\\\\t ;])\"},{\"match\":\"(?<=\\\\G|\\\\s)(on|off|true|false)(?=[\\\\t ;])\",\"name\":\"constant.language.nginx\"},{\"match\":\"(?<=\\\\G|\\\\s)(kqueue|rtsig|epoll|\\\\/dev\\\\/poll|select|poll|eventport|max|all|default_server|default|main|crit|error|debug|warn|notice|last)(?=[\\\\t ;])\",\"name\":\"constant.language.nginx\"},{\"match\":\"\\\\\\\\.*\\\\ |\\\\~\\\\*|\\\\~|\\\\!\\\\~\\\\*|\\\\!\\\\~\",\"name\":\"keyword.operator.nginx\"},{\"include\":\"#regexp_and_string\"}]},\"variables\":{\"patterns\":[{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.nginx\"},\"2\":{\"name\":\"variable.other.nginx\"}},\"match\":\"(\\\\$)([A-Za-z0-9\\\\_]+)\\\\b\"},{\"captures\":{\"1\":{\"name\":\"punctuation.definition.variable.nginx\"},\"2\":{\"name\":\"variable.other.nginx\"},\"3\":{\"name\":\"punctuation.definition.variable.nginx\"}},\"match\":\"(\\\\$\\\\{)([A-Za-z0-9\\\\_]+)(\\\\})\"}]}},\"scopeName\":\"source.nginx\",\"embeddedLangs\":[\"lua\"]}"))
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...lua,
|