@shikijs/langs-precompiled 1.26.0 → 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/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/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.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/clojure.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +2 -6
- 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/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.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/genie.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 +10 -2
- 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/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/index.d.mts +3 -1
- package/dist/index.mjs +90 -6
- 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/jssm.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -1
- package/dist/kusto.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/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/markdown.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/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/python.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.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/ruby.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +2 -4
- package/dist/scala.mjs +1 -1
- package/dist/scheme.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/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/system-verilog.mjs +1 -1
- package/dist/systemd.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 +4 -4
package/dist/riscv.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmulatedRegExp } from 'oniguruma-to-es'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"RISC-V",fileTypes:["S","s","riscv","asm"],name:"riscv",patterns:[{comment:"ok actually this are instructions, but one also could call them funtions…",match:/\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r\|w\|s\|c]|csr[w\|s\|c]i)\b/dgv,name:"support.function.pseudo.riscv"},{match:/\b(add|addw|auipc|lui|jalr|beq|bne|blt|bge|bltu|bgeu|lb|lh|lw|ld|lbu|lhu|sb|sh|sw|sd|addi|addiw|slti|sltiu|xori|ori|andi|slli|slliw|srli|srliw|srai|sraiw|sub|subw|sll|sllw|slt|sltu|xor|srl|srlw|sra|sraw|or|and|fence|fence\.i|csrrw|csrrs|csrrc|csrrwi|csrrsi|csrrci)\b/dgv,name:"support.function.riscv"},{comment:"priviledged instructions",match:/\b(ecall|ebreak|sfence\.vma|mret|sret|uret|wfi)\b/dgv,name:"support.function.riscv.privileged"},{comment:"M extension (multiplication and division)",match:/\b(mul|mulh|mulhsu|mulhu|div|divu|rem|remu|mulw|divw|divuw|remw|remuw)\b/dgv,name:"support.function.riscv.m"},{comment:"C extension (compressed instructions)",match:/\b(c\.addi4spn|c\.fld|c\.lq|c\.lw|c\.flw|c\.ld|c\.fsd|c\.sq|c\.sw|c\.fsw|c\.sd|c\.nop|c\.addi|c\.jal|c\.addiw|c\.li|c\.addi16sp|c\.lui|c\.srli|c\.srli64|c\.srai|c\.srai64|c\.andi|c\.sub|c\.xor|c\.or|c\.and|c\.subw|c\.addw|c\.j|c\.beqz|c\.bnez)\b/dgv,name:"support.function.riscv.c"},{comment:"A extension (atomic instructions)",match:/\b(lr\.[w\|d]|sc\.[w\|d]|amoswap\.[w\|d]|amoadd\.[w\|d]|amoxor\.[w\|d]|amoand\.[w\|d]|amoor\.[w\|d]|amomin\.[w\|d]|amomax\.[w\|d]|amominu\.[w\|d]|amomaxu\.[w\|d])\b/dgv,name:"support.function.riscv.a"},{comment:"F extension (single precision floating point)",match:/\b(flw|fsw|fmadd\.s|fmsub\.s|fnmsub\.s|fnmadd\.s|fadd\.s|fsub\.s|fmul\.s|fdiv\.s|fsqrt\.s|fsgnj\.s|fsgnjn\.s|fsgnjx\.s|fmin\.s|fmax\.s|fcvt\.w\.s|fcvt\.wu\.s|fmv\.x\.w|feq\.s|flt\.s|fle\.s|fclass\.s|fcvt\.s\.w|fcvt\.s\.wu|fmv\.w\.x|fcvt\.l\.s|fcvt\.lu\.s|fcvt\.s\.l|fcvt\.s\.lu)\b/dgv,name:"support.function.riscv.f"},{comment:"D extension (double precision floating point)",match:/\b(fld|fsd|fmadd\.d|fmsub\.d|fnmsub\.d|fnmadd\.d|fadd\.d|fsub\.d|fmul\.d|fdiv\.d|fsqrt\.d|fsgnj\.d|fsgnjn\.d|fsgnjx\.d|fmin\.d|fmax\.d|fcvt\.s\.d|fcvt\.d\.s|feq\.d|flt\.d|fle\.d|fclass\.d|fcvt\.w\.d|fcvt\.wu\.d|fcvt\.d\.w|fcvt\.d\.wu|fcvt\.l\.d|fcvt\.lu\.d|fmv\.x\.d|fcvt\.d\.l|fcvt\.d\.lu|fmv\.d\.x)\b/dgv,name:"support.function.riscv.d"},{match:/\.(skip|ascii|asciiz|byte|[2\|4\|8]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\p{space}*(noat|at)|[s\|u]leb128|string|incbin|zero|rodata|comm|common)\b/dgv,name:"storage.type.riscv"},{match:/\.(balign|align|p2align|extern|globl|global|local|pushsection|section|bss|insn|option|type|equ|macro|endm|file|ident)\b/dgv,name:"storage.modifier.riscv"},{captures:{"1":{name:"entity.name.function.label.riscv"}},match:/\b([A-Za-z0-9_]+):/dgv,name:"meta.function.label.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(x(
|
|
3
|
+
const lang = Object.freeze({displayName:"RISC-V",fileTypes:["S","s","riscv","asm"],name:"riscv",patterns:[{comment:"ok actually this are instructions, but one also could call them funtions…",match:/\b(la|lb|lh|lw|ld|nop|li|mv|not|neg|negw|sext\.w|seqz|snez|sltz|sgtz|beqz|bnez|blez|bgez|bltz|bgtz|bgt|ble|bgtu|bleu|j|jal|jr|ret|call|tail|fence|csr[r\|w\|s\|c]|csr[w\|s\|c]i)\b/dgv,name:"support.function.pseudo.riscv"},{match:/\b(add|addw|auipc|lui|jalr|beq|bne|blt|bge|bltu|bgeu|lb|lh|lw|ld|lbu|lhu|sb|sh|sw|sd|addi|addiw|slti|sltiu|xori|ori|andi|slli|slliw|srli|srliw|srai|sraiw|sub|subw|sll|sllw|slt|sltu|xor|srl|srlw|sra|sraw|or|and|fence|fence\.i|csrrw|csrrs|csrrc|csrrwi|csrrsi|csrrci)\b/dgv,name:"support.function.riscv"},{comment:"priviledged instructions",match:/\b(ecall|ebreak|sfence\.vma|mret|sret|uret|wfi)\b/dgv,name:"support.function.riscv.privileged"},{comment:"M extension (multiplication and division)",match:/\b(mul|mulh|mulhsu|mulhu|div|divu|rem|remu|mulw|divw|divuw|remw|remuw)\b/dgv,name:"support.function.riscv.m"},{comment:"C extension (compressed instructions)",match:/\b(c\.addi4spn|c\.fld|c\.lq|c\.lw|c\.flw|c\.ld|c\.fsd|c\.sq|c\.sw|c\.fsw|c\.sd|c\.nop|c\.addi|c\.jal|c\.addiw|c\.li|c\.addi16sp|c\.lui|c\.srli|c\.srli64|c\.srai|c\.srai64|c\.andi|c\.sub|c\.xor|c\.or|c\.and|c\.subw|c\.addw|c\.j|c\.beqz|c\.bnez)\b/dgv,name:"support.function.riscv.c"},{comment:"A extension (atomic instructions)",match:/\b(lr\.[w\|d]|sc\.[w\|d]|amoswap\.[w\|d]|amoadd\.[w\|d]|amoxor\.[w\|d]|amoand\.[w\|d]|amoor\.[w\|d]|amomin\.[w\|d]|amomax\.[w\|d]|amominu\.[w\|d]|amomaxu\.[w\|d])\b/dgv,name:"support.function.riscv.a"},{comment:"F extension (single precision floating point)",match:/\b(flw|fsw|fmadd\.s|fmsub\.s|fnmsub\.s|fnmadd\.s|fadd\.s|fsub\.s|fmul\.s|fdiv\.s|fsqrt\.s|fsgnj\.s|fsgnjn\.s|fsgnjx\.s|fmin\.s|fmax\.s|fcvt\.w\.s|fcvt\.wu\.s|fmv\.x\.w|feq\.s|flt\.s|fle\.s|fclass\.s|fcvt\.s\.w|fcvt\.s\.wu|fmv\.w\.x|fcvt\.l\.s|fcvt\.lu\.s|fcvt\.s\.l|fcvt\.s\.lu)\b/dgv,name:"support.function.riscv.f"},{comment:"D extension (double precision floating point)",match:/\b(fld|fsd|fmadd\.d|fmsub\.d|fnmsub\.d|fnmadd\.d|fadd\.d|fsub\.d|fmul\.d|fdiv\.d|fsqrt\.d|fsgnj\.d|fsgnjn\.d|fsgnjx\.d|fmin\.d|fmax\.d|fcvt\.s\.d|fcvt\.d\.s|feq\.d|flt\.d|fle\.d|fclass\.d|fcvt\.w\.d|fcvt\.wu\.d|fcvt\.d\.w|fcvt\.d\.wu|fcvt\.l\.d|fcvt\.lu\.d|fmv\.x\.d|fcvt\.d\.l|fcvt\.d\.lu|fmv\.d\.x)\b/dgv,name:"support.function.riscv.d"},{match:/\.(skip|ascii|asciiz|byte|[2\|4\|8]byte|data|double|float|half|kdata|ktext|space|text|word|dword|dtprelword|dtpreldword|set\p{space}*(noat|at)|[s\|u]leb128|string|incbin|zero|rodata|comm|common)\b/dgv,name:"storage.type.riscv"},{match:/\.(balign|align|p2align|extern|globl|global|local|pushsection|section|bss|insn|option|type|equ|macro|endm|file|ident)\b/dgv,name:"storage.modifier.riscv"},{captures:{"1":{name:"entity.name.function.label.riscv"}},match:/\b([A-Za-z0-9_]+):/dgv,name:"meta.function.label.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(x([0-9]|1[0-9]|2[0-9]|3[0-1]))\b/dgv,name:"variable.other.register.usable.by-number.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(zero|ra|sp|gp|tp|t[0-6]|a[0-7]|s[0-9]|fp|s1[0-1])\b/dgv,name:"variable.other.register.usable.by-name.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\b(([umsh]|vs)status|([umsh]|vs)ie|([ums]|vs)tvec|([ums]|vs)scratch|([ums]|vs)epc|([ums]|vs)cause|([umsh]|vs)tval|([umsh]|vs)ip|fflags|frm|fcsr|m?cycleh?|timeh?|m?instreth?|m?hpmcounter([3-9]|[12][0-9]|3[01])h?|[msh][ei]deleg|[msh]counteren|v?satp|hgeie|hgeip|[hm]tinst|hvip|hgatp|htimedeltah?|mvendorid|marchid|mimpid|mhartid|misa|mstatush|mtval2|pmpcfg[0-3]|pmpaddr([0-9]|1[0-5])|mcountinhibit|mhpmevent([3-9]|[12][0-9]|3[01])|tselect|tdata[1-3]|dcsr|dpc|dscratch[0-1])\b/dgv,name:"variable.other.csr.names.riscv"},{captures:{"1":{name:"punctuation.definition.variable.riscv"}},match:/\bf([0-9]|1[0-9]|2[0-9]|3[0-1])\b/dgv,name:"variable.other.register.usable.floating-point.riscv"},{match:/\b\p{Nd}+\.\p{Nd}+\b/dgv,name:"constant.numeric.float.riscv"},{match:/\b(\p{Nd}+|0(x|X)[a-fA-F0-9]+)\b/dgv,name:"constant.numeric.integer.riscv"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.double.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.riscv"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.riscv"}},name:"string.quoted.single.riscv",patterns:[{match:/\\[rnt\\"]/dgv,name:"constant.character.escape.riscv"}]},{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block"},{begin:/\/\//dgv,end:/\n/dgv,name:"comment.line.double-slash"},{begin:new EmulatedRegExp("(?<=^|\\n(?!$))\\p{space}*#\\p{space}*(define)\\p{space}+((?<id>[a-zA-Z_][a-zA-Z0-9_]*))(?:(\\()(\\p{space}*($3$E$[a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*((,)\\p{space}*($3$E$[a-zA-Z_][a-zA-Z0-9_]*)\\p{space}*)*(?:\\.\\.\\.)?)(\\)))?","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.import.define.c"},"2":{name:"entity.name.function.preprocessor.c"},"4":{name:"punctuation.definition.parameters.c"},"5":{name:"variable.parameter.preprocessor.c"},"7":{name:"punctuation.separator.parameters.c"},"8":{name:"punctuation.definition.parameters.c"}},end:/(?=(?:\/\/|\/\*))|(?=$|\n)/dgv,name:"meta.preprocessor.macro.c",patterns:[{match:new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"},{include:"$base"}]},{begin:/(?<=^|\n(?!$))\p{space}*#\p{space}*(error|warning)\b/dgv,captures:{"1":{name:"keyword.control.import.error.c"}},end:/(?=$|\n)/dgv,name:"meta.preprocessor.diagnostic.c",patterns:[{match:new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"}]},{begin:/(?<=^|\n(?!$))\p{space}*#\p{space}*(include|import)\b\p{space}+/dgv,captures:{"1":{name:"keyword.control.import.include.c"}},end:/(?=(?:\/\/|\/\*))|(?=$|\n)/dgv,name:"meta.preprocessor.c.include",patterns:[{match:new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.double.include.c"},{begin:/</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.c"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.c"}},name:"string.quoted.other.lt-gt.include.c"}]},{begin:/(?<=^|\n(?!$))\p{space}*#\p{space}*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef|endif)\b/dgv,captures:{"1":{name:"keyword.control.import.c"}},end:/(?=(?:\/\/|\/\*))|(?=$|\n)/dgv,name:"meta.preprocessor.c",patterns:[{match:new EmulatedRegExp("(?:(?=($E$\\\\\\p{space}*\\n))\\1)","dgv",{"useEmulationGroups":true}),name:"punctuation.separator.continuation.c"}]},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.riscv"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/#|(\/\/)/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.riscv"}},end:/\n/dgv,name:"comment.line.number-sign.riscv"}]}],scopeName:"source.riscv",embeddedLangs:undefined,aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
lang
|
package/dist/ruby.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import shellscript from './shellscript.mjs'
|
|
|
12
12
|
import lua from './lua.mjs'
|
|
13
13
|
import yaml from './yaml.mjs'
|
|
14
14
|
|
|
15
|
-
const lang = Object.freeze({displayName:"Ruby",name:"ruby",patterns:[{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"entity.name.type.class.ruby"},"5":{name:"punctuation.separator.namespace.ruby"},"7":{name:"punctuation.separator.inheritance.ruby"},"8":{name:"entity.other.inherited-class.ruby"},"11":{name:"punctuation.separator.namespace.ruby"}},comment:"class Namespace::ClassName < OtherNamespace::OtherClassName",match:/\x08(class)\p{space}+(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*)\p{space}*((<)\p{space}*(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*))?/dgv,name:"meta.class.ruby"},{captures:{"1":{name:"keyword.control.module.ruby"},"2":{name:"entity.name.type.module.ruby"},"5":{name:"punctuation.separator.namespace.ruby"}},match:/\x08(module)\p{space}+(([\p{L}\p{M}\p{N}\p{Pc}]+)((::)[\p{L}\p{M}\p{N}\p{Pc}]+)*)/dgv,name:"meta.module.ruby"},{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"punctuation.separator.inheritance.ruby"}},match:/\x08(class)\p{space}*(<<)\p{space}*/dgv,name:"meta.class.ruby"},{comment:"else if is a common mistake carried over from other languages. it works if you put in a second end, but it’s never what you want.",match:/(?<!\.)\belse(\p{space})+if\b/dgv,name:"invalid.deprecated.ruby"},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment (+=, -=, *=, /=)",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"variable.ruby"}},comment:"A local variable assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"}},comment:"A local variable assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"punctuation.definition.constant.hashkey.ruby"}},comment:"symbols as hash key (1.9 syntax)",match:new EmulatedRegExp("(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols as hash key (1.8 syntax)",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\3)?))\\2)(?=\\p{space}*=>)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{comment:"everything being a reserved word, not a value and needing a 'end' is a..",match:/(?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![\?\!])/dgv,name:"keyword.control.ruby"},{comment:"contextual smart pair support for block parameters",match:/(?<!\.)\bdo\b/dgv,name:"keyword.control.start-block.ruby"},{comment:"contextual smart pair support",match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.ruby.start-block"},{match:/(?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![\?\!])|\bdefined\?|\b(block_given|iterator)\?/dgv,name:"keyword.control.pseudo-method.ruby"},{match:/\bnil\b(?![\?\!])/dgv,name:"constant.language.nil.ruby"},{match:/\b(true|false)\b(?![\?\!])/dgv,name:"constant.language.boolean.ruby"},{match:/\b(__(FILE|LINE)__)\b(?![\?\!])/dgv,name:"variable.language.ruby"},{match:/\bself\b(?![\?\!])/dgv,name:"variable.language.self.ruby"},{comment:" everything being a method but having a special function is a..",match:/\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\b(?![\?\!])/dgv,name:"keyword.other.special-method.ruby"},{begin:/\b(?<!\.|::)(require|require_relative)\b(?![\?\!])/dgv,captures:{"1":{name:"keyword.other.special-method.ruby"}},end:/(?=$|\n)|(?=#|\})/dgv,name:"meta.require.ruby",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)(!|@|&|`|'|\+|\p{Nd}+|~|=|\/|\\|,|;|\.|<|>|_|\*|\$|\?|:|"|-[0adFiIlpv])/dgv,name:"variable.other.readwrite.global.pre-defined.ruby"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.ruby"}},end:/\]/dgv,name:"meta.environment-variable.ruby",patterns:[{include:"$self"}]},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=((\.|::)[A-Za-z]|\[))/dgv,name:"support.class.ruby"},{match:/\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|print|printf|proc|putc|puts|rand|readline|readlines|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\b(?![\?\!])|autoload\?|exit!)/dgv,name:"support.function.kernel.ruby"},{match:/\b[_A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.constant.ruby"},{begin:/(->)\(/dgv,beginCaptures:{"1":{name:"support.function.kernel.ruby"}},comment:"Lambda parameters.",end:/\)/dgv,patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\4)))\\3)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\6)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"},"3":{name:"punctuation.definition.parameters.ruby"}},comment:"The method pattern comes from the symbol pattern. See there for an explanation.",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.ruby"}},name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\4)))\\3)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\6)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))[ \\t](?=[ \\t]*[^\\p{space}\\#\\;])","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"}},comment:"same as the previous rule, but without parentheses around the arguments",end:/(?=;)|(?<=[\p{L}\p{M}\p{N}\p{Pc}\]\)\}\`'"\!\?])(?=\p{space}*#|\p{space}*(?=$|\n))/dgv,name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=,|;|\p{space}*#|\p{space}*(?=$|\n))/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{captures:{"1":{name:"keyword.control.def.ruby"},"3":{name:"entity.name.function.ruby"}},comment:" the optional name is just to catch the def also without a method-name",match:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\b(\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\5)))\\4)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\7)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\6)))?","dgv",{"useEmulationGroups":true}),name:"meta.function.method.without-arguments.ruby"},{match:new EmulatedRegExp("\\b([\\p{Nd}](?:(?=($E$_?\\p{Nd}))\\2)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=($E$_?\\p{Nd}))\\4)*)?([eE][\\-\\+]?\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\6)*)?|0(?:[xX]\\p{AHex}(?:(?=($E$_?\\p{AHex}))\\7)*|[oO]?[0-7](?:(?=($E$_?[0-7]))\\8)*|[bB][01](?:(?=($E$_?[01]))\\9)*|[dD]\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\10)*))\\b","dgv",{"useEmulationGroups":true}),name:"constant.numeric.ruby"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},comment:"symbol literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.ruby"}},comment:"symbol literal with \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{comment:"Needs higher precedence than regular expressions.",match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.ruby"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.single.ruby",patterns:[{match:/\\'|\\\\/dgv,name:"constant.character.escape.ruby"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with interpolation and \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.double.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<!\.)`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"execute string (allows for interpolation)",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\)])((/))(?![\\?\\*\\+])(?=(?:(?=($E$(?:\\\\/|[^\\/])*))\\3)/[eimnosux]*\\p{space}*(?:[\\)\\]\\}\\#\\.\\,\\?\\:]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|(?=$|\\n)|if|else|elsif|then|do|end|unless|while|until|or|and)|(?=$|\\n))","dgv",{"useEmulationGroups":true}),captures:{"1":{name:"string.regexp.interpolated.ruby"},"2":{name:"punctuation.section.regexp.ruby"}},comment:"regular expression literal with interpolation",contentName:"string.regexp.interpolated.ruby",end:/((\/[eimnosux]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\}[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\][eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\)[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/>[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\1[eimnosux]*()/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"}]},{begin:/%I\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%I\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%I</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%I\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%I([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%i\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%i\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%i</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%i\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%i([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%W\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%W\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%W</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%W\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%W([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%w\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%w\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%w</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%w\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%w([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%[Qx]?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%[Qx]?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%[Qx]?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%[Qx]?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%[Qx]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%([^\p{L}\p{M}\p{N}\p{Pc}\p{space}\=])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%q\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%q</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%q\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%q\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%q([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%s\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%s</dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%s\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%s\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%s([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[\\$a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?![\\>\\=])))\\3)?|===?|<=>|>[\\>\\=]?|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?|@@?[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.ruby"},{begin:/(?<=^|\n(?!$))=begin/dgv,captures:{"0":{name:"punctuation.definition.comment.ruby"}},comment:"multiline comments",end:/(?<=^|\n(?!$))=end/dgv,name:"comment.block.documentation.ruby"},{include:"#yard"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ruby"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/\n/dgv,name:"comment.line.number-sign.ruby"}]},{comment:"\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2nd alternation = octal):\n\t\t\t?\\0 ?\\07 ?\\017\n\n\t\t\texamples (3rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (4th alternation = meta-ctrl):\n\t\t\t?\\C-a ?\\M-a ?\\C-\\M-\\C-\\M-a\n\n\t\t\texamples (4th alternation = normal):\n\t\t\t?a ?A ?0 \n\t\t\t?* ?\" ?( \n\t\t\t?. ?#\n\t\t\t\n\t\t\t\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x\p{AHex}{1,2}(?!\p{AHex})\b|0[0-7]{0,2}(?![0-7])\b|[^x0MC])|(\\[MC]-)+[\p{L}\p{M}\p{N}\p{Pc}]|[^\p{space}\\])/dgv,name:"constant.numeric.ruby"},{begin:/(?<=^|\n(?!$))__END__\n/dgv,captures:{"0":{name:"string.unquoted.program-block.ruby"}},comment:"__END__ marker",contentName:"text.plain",end:/(?=not)impossible/dgv,patterns:[{begin:/(?=<?xml|<[Hh][Tt][Mm][Ll]\b|!DOCTYPE [Hh][Tt][Mm][Ll]\b)/dgv,end:/(?=not)impossible/dgv,name:"text.html.embedded.ruby",patterns:[{include:"text.html.basic"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HTML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.html",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.html.basic"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.haml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.haml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.haml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded XML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.xml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.xml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded SQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.sql",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.sql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.sql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded GraphQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.graphql",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.graphql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.graphql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded CSS",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.css",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.css"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C++",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.cpp",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.cpp",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.cpp"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.c",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.c",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.c"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded jQuery Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js.jquery",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.js.jquery",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js.jquery"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Shell",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.shell",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.shell"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Lua",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.lua",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.lua"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Ruby",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.ruby",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.ruby"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded YAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.yaml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.yaml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Slim",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.slim",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.slim",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.slim"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?:(?=($E$=\\p{space}*<<([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/(?<=^|\n(?!$))\2(?=$|\n)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$((<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\4,\\p{space}?)*<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\6)))\\1)([^\\n]*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.string.begin.ruby"},"7":{patterns:[{include:"source.ruby"}]}},comment:"heredoc with multiple inputs and indented terminator",end:/(?<=^|\n(?!$))\p{space}*\6(?=$|\n)()()()()()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}|[^A-Za-z0-9_\:\@\$]do|(?<=^|\n(?!$))do|[^A-Za-z0-9_\:\@\$]do\p{space}|(?<=^|\n(?!$))do\p{space})(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.ruby"}},end:/(?<!\|)(\|)(?!\|)/dgv,name:"meta.block.parameters.ruby",patterns:[{begin:/(?![\p{space}\,\|\(])/dgv,end:/(?=,|\|\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"variable.other.block.ruby"},"3":{name:"variable.other.block.unused.ruby variable.other.constant.ruby"}},match:/([\&\*]?)([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}_]*)|(_[\p{L}\p{M}\p{N}\p{Pc}_]*)/dgv}]},{match:/,/dgv,name:"punctuation.separator.variable.ruby"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.ruby"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.ruby"},{match:/<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?/dgv,name:"keyword.operator.comparison.ruby"},{match:/(?<!\.)\b(and|not|or)\b(?![\?\!])/dgv,name:"keyword.operator.logical.ruby"},{match:/(?<=(?<=^|\n(?!$))|[ \t\!])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.ruby"},{captures:{"1":{name:"keyword.operator.logical.ruby"}},comment:"Safe navigation operator",match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/(%|&|\*\*|\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.ruby"},{match:/=/dgv,name:"keyword.operator.assignment.ruby"},{match:/\||~|>>/dgv,name:"keyword.operator.other.ruby"},{match:/;/dgv,name:"punctuation.separator.statement.ruby"},{match:/,/dgv,name:"punctuation.separator.object.ruby"},{captures:{"1":{name:"punctuation.separator.namespace.ruby"}},comment:"Mark as namespace separator if double colons followed by capital letter",match:/(::)\p{space}*(?=[A-Z])/dgv},{captures:{"1":{name:"punctuation.separator.method.ruby"}},comment:"Mark as method separator if double colons not followed by capital letter",match:/(\.|::)\p{space}*(?![A-Z])/dgv},{comment:"Must come after method and constant separators to prefer double colons",match:/:/dgv,name:"punctuation.separator.other.ruby"},{match:/\{/dgv,name:"punctuation.section.scope.begin.ruby"},{match:/\}/dgv,name:"punctuation.section.scope.end.ruby"},{match:/\[/dgv,name:"punctuation.section.array.begin.ruby"},{match:/\]/dgv,name:"punctuation.section.array.end.ruby"},{match:/\(|\)/dgv,name:"punctuation.section.function.ruby"},{begin:/(?<=[^\.]\.|::)(?=[a-zA-Z][a-zA-Z0-9_\!\?]*[^a-zA-Z0-9_\!\?])/dgv,end:/(?<=[a-zA-Z0-9_\!\?])(?=[^a-zA-Z0-9_\!\?])/dgv,name:"meta.function-call.ruby",patterns:[{match:/([a-zA-Z][a-zA-Z0-9_\!\?]*)(?=[^a-zA-Z0-9_\!\?])/dgv,name:"entity.name.function.ruby"}]},{begin:/([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ruby"},"2":{name:"punctuation.section.function.ruby"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.ruby"}},name:"meta.function-call.ruby",patterns:[{include:"$self"}]}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x[\p{Nd}a-fA-F]{1,2}|[^\n])/dgv,name:"constant.character.escape.ruby"},heredoc:{begin:/(?<=^|\n(?!$))<<[\-\~]?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=$|\n)/dgv,patterns:[{include:"$self"}]},interpolated_ruby:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.ruby"}},contentName:"source.ruby",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.ruby"}},name:"meta.embedded.line.ruby",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"}]},method_parameters:{patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"#params"},{include:"$self"}],repository:{braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},params:{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{name:"punctuation.definition.constant.ruby"},"4":{name:"variable.parameter.function.ruby"}},match:/(&|\*\*?)?(?:([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\?\!]?(:))|([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.function.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]}}},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.ruby"},"3":{name:"punctuation.definition.arbitrary-repetition.ruby"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.ruby"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.ruby"}},end:/\]/dgv,name:"string.regexp.character-class.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(\?#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.ruby"}},name:"comment.line.number-sign.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.ruby"}},end:/\)/dgv,name:"string.regexp.group.ruby",patterns:[{include:"#regex_sub"}]},{begin:/(?<=(?<=^|\n(?!$))|\p{space})(#)\p{space}(?=[a-zA-Z0-9\,\. \t\?\!\-[^\x00-\x7F]]*(?=$|\n))/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.ruby"}},comment:"We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",end:/(?=$|\n)\n?/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},name:"comment.line.number-sign.ruby"}]},yard:{patterns:[{include:"#yard_comment"},{include:"#yard_param_types"},{include:"#yard_option"},{include:"#yard_tag"},{include:"#yard_types"},{include:"#yard_directive"},{include:"#yard_see"},{include:"#yard_macro_attribute"}]},yard_comment:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that follow the tag-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_continuation:{match:/(?<=^|\n(?!$))\p{space}*#/dgv,name:"punctuation.definition.comment.ruby"},yard_directive:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(endgroup|group|method|parse|scope|visibility)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD directives",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_macro_attribute:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(attribute|macro)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})(\p{space}+([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*:?))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"11":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for attribute and macro tags because name goes after []",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_option:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(option)(?=\\p{space})(?:(?=($E$\\p{space}+([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\6)?(?:(?=($E$\\p{space}+((\\[)[^\\n]+(\\]))))\\8)?(?:(?=($E$\\p{space}+((\\P{space}*))))\\12)?(?:(?=($E$\\p{space}+((\\()[^\\n]+(\\)))))\\15)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.keyword.yard.ruby"},"11":{name:"comment.line.hashkey.yard.ruby"},"12":{name:"comment.line.defaultvalue.yard.ruby"},"13":{name:"comment.line.punctuation.yard.ruby"},"14":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD option tag that follow the tag-name-types-key-(value)-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_param_types:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\p{space})(?:(?=($E$\\p{space}+(?:(?=($E$([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)|((\\[)[^\\n]+(\\]))))\\7)))\\6)?(?:(?=($E$\\p{space}+(?:(?=($E$((\\[)[^\\n]+(\\]))|([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\13)))\\12)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.type.yard.ruby"},"11":{name:"comment.line.punctuation.yard.ruby"},"12":{name:"comment.line.punctuation.yard.ruby"},"13":{name:"comment.line.parameter.yard.ruby"}},comment:"For YARD tags that follow the tag-name-types-description or tag-types-name-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_see:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(see)(?=\p{space})(\p{space}+([^\n]+?))?(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for @see because name could contain url",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_tag:{captures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that are just the tag",match:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(private)(?=$|\n)/dgv,name:"comment.line.number-sign.ruby"},yard_types:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(raise|return|yield(?:return)?)(?=\p{space})(\p{space}+((\[)[^\n]+(\])))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD tags that follow the tag-types-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]}},scopeName:"source.ruby",embeddedLangs:["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],aliases:["rb"]})
|
|
15
|
+
const lang = Object.freeze({displayName:"Ruby",name:"ruby",patterns:[{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"entity.name.type.class.ruby"},"5":{name:"punctuation.separator.namespace.ruby"},"7":{name:"punctuation.separator.inheritance.ruby"},"8":{name:"entity.other.inherited-class.ruby"},"11":{name:"punctuation.separator.namespace.ruby"}},comment:"class Namespace::ClassName < OtherNamespace::OtherClassName",match:/\x08(class)\p{space}+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)\p{space}*((<)\p{space}*(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*))?/dgv,name:"meta.class.ruby"},{captures:{"1":{name:"keyword.control.module.ruby"},"2":{name:"entity.name.type.module.ruby"},"5":{name:"punctuation.separator.namespace.ruby"}},match:/\x08(module)\p{space}+(([a-zA-Z0-9_]+)((::)[a-zA-Z0-9_]+)*)/dgv,name:"meta.module.ruby"},{captures:{"1":{name:"keyword.control.class.ruby"},"2":{name:"punctuation.separator.inheritance.ruby"}},match:/\x08(class)\p{space}*(<<)\p{space}*/dgv,name:"meta.class.ruby"},{comment:"else if is a common mistake carried over from other languages. it works if you put in a second end, but it’s never what you want.",match:/(?<!\.)\belse(\p{space})+if\b/dgv,name:"invalid.deprecated.ruby"},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable and/or assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((&&|\|\|)=)/dgv},{captures:{"1":{name:"variable.ruby"},"3":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment (+=, -=, *=, /=)",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"},"5":{name:"keyword.operator.assignment.augmented.ruby"}},comment:"A local variable operation assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*((\+|\*|-|\/|%|\*\*|&|\||\^|<<|>>)=)/dgv},{captures:{"1":{name:"variable.ruby"}},comment:"A local variable assignment",match:/(?<=^|\n(?!$))\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"keyword.control.ruby"},"3":{name:"variable.ruby"}},comment:"A local variable assignment in a condition",match:/(?<!\.)\b(case|if|elsif|unless|until|while)\b\p{space}*(\()*?\p{space}*([a-z]([A-Za-z0-9_])*)\p{space}*=[^\=\>]/dgv},{captures:{"1":{name:"punctuation.definition.constant.hashkey.ruby"}},comment:"symbols as hash key (1.9 syntax)",match:new EmulatedRegExp("(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\2)?))\\1)(:)(?!:)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols as hash key (1.8 syntax)",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]))\\3)?))\\2)(?=\\p{space}*=>)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.hashkey.ruby"},{comment:"everything being a reserved word, not a value and needing a 'end' is a..",match:/(?<!\.)\b(BEGIN|begin|case|class|else|elsif|END|end|ensure|for|if|in|module|rescue|then|unless|until|when|while)\b(?![\?\!])/dgv,name:"keyword.control.ruby"},{comment:"contextual smart pair support for block parameters",match:/(?<!\.)\bdo\b/dgv,name:"keyword.control.start-block.ruby"},{comment:"contextual smart pair support",match:/(?<=\{)(\p{space}+)/dgv,name:"meta.syntax.ruby.start-block"},{match:/(?<!\.)\b(alias|alias_method|break|next|redo|retry|return|super|undef|yield)\b(?![\?\!])|\bdefined\?|\b(block_given|iterator)\?/dgv,name:"keyword.control.pseudo-method.ruby"},{match:/\bnil\b(?![\?\!])/dgv,name:"constant.language.nil.ruby"},{match:/\b(true|false)\b(?![\?\!])/dgv,name:"constant.language.boolean.ruby"},{match:/\b(__(FILE|LINE)__)\b(?![\?\!])/dgv,name:"variable.language.ruby"},{match:/\bself\b(?![\?\!])/dgv,name:"variable.language.self.ruby"},{comment:" everything being a method but having a special function is a..",match:/\b(initialize|new|loop|include|extend|prepend|raise|fail|attr_reader|attr_writer|attr_accessor|attr|catch|throw|private|private_class_method|module_function|public|public_class_method|protected|refine|using)\b(?![\?\!])/dgv,name:"keyword.other.special-method.ruby"},{begin:/\b(?<!\.|::)(require|require_relative)\b(?![\?\!])/dgv,captures:{"1":{name:"keyword.other.special-method.ruby"}},end:/(?=$|\n)|(?=#|\})/dgv,name:"meta.require.ruby",patterns:[{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(\$)(!|@|&|`|'|\+|\p{Nd}+|~|=|\/|\\|,|;|\.|<|>|_|\*|\$|\?|:|"|-[0adFiIlpv])/dgv,name:"variable.other.readwrite.global.pre-defined.ruby"},{begin:/\b(ENV)\[/dgv,beginCaptures:{"1":{name:"variable.other.constant.ruby"}},end:/\]/dgv,name:"meta.environment-variable.ruby",patterns:[{include:"$self"}]},{match:/\b[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*(?=((\.|::)[A-Za-z]|\[))/dgv,name:"support.class.ruby"},{match:/\b((abort|at_exit|autoload|binding|callcc|caller|caller_locations|chomp|chop|eval|exec|exit|fork|format|gets|global_variables|gsub|lambda|load|local_variables|open|p|print|printf|proc|putc|puts|rand|readline|readlines|select|set_trace_func|sleep|spawn|sprintf|srand|sub|syscall|system|test|trace_var|trap|untrace_var|warn)\b(?![\?\!])|autoload\?|exit!)/dgv,name:"support.function.kernel.ruby"},{match:/\b[_A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"variable.other.constant.ruby"},{begin:/(->)\(/dgv,beginCaptures:{"1":{name:"support.function.kernel.ruby"}},comment:"Lambda parameters.",end:/\)/dgv,patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\4)))\\3)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\6)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))\\p{space}*(\\()","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"},"3":{name:"punctuation.definition.parameters.ruby"}},comment:"The method pattern comes from the symbol pattern. See there for an explanation.",end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.parameters.ruby"}},name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=[\,\)])/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{begin:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\4)))\\3)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\6)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\5))[ \\t](?=[ \\t]*[^\\p{space}\\#\\;])","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"keyword.control.def.ruby"},"2":{name:"entity.name.function.ruby"}},comment:"same as the previous rule, but without parentheses around the arguments",end:/(?=;)|(?<=[\p{L}\p{M}\p{N}\p{Pc}\]\)\}\`'"\!\?])(?=\p{space}*#|\p{space}*(?=$|\n))/dgv,name:"meta.function.method.with-arguments.ruby",patterns:[{begin:/(?=[\&\*_a-zA-Z])/dgv,end:/(?=,|;|\p{space}*#|\p{space}*(?=$|\n))/dgv,patterns:[{include:"#method_parameters"}]},{include:"#method_parameters"}]},{captures:{"1":{name:"keyword.control.def.ruby"},"3":{name:"entity.name.function.ruby"}},comment:" the optional name is just to catch the def also without a method-name",match:new EmulatedRegExp("(?=def\\b)(?<=(?<=^|\\n(?!$))|\\p{space})(def)\\b(\\p{space}+((?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$\\.|::))\\5)))\\4)?(?:(?=($E$[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?!>)))\\7)?|===?|!=|>[\\>\\=]?|<=>|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?))\\6)))?","dgv",{"useEmulationGroups":true}),name:"meta.function.method.without-arguments.ruby"},{match:new EmulatedRegExp("\\b([\\p{Nd}](?:(?=($E$_?\\p{Nd}))\\2)*(\\.(?![^\\p{space}\\p{Nd}])(?:(?=($E$_?\\p{Nd}))\\4)*)?([eE][\\-\\+]?\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\6)*)?|0(?:[xX]\\p{AHex}(?:(?=($E$_?\\p{AHex}))\\7)*|[oO]?[0-7](?:(?=($E$_?[0-7]))\\8)*|[bB][01](?:(?=($E$_?[01]))\\9)*|[dD]\\p{Nd}(?:(?=($E$_?\\p{Nd}))\\10)*))\\b","dgv",{"useEmulationGroups":true}),name:"constant.numeric.ruby"},{begin:/:'/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},comment:"symbol literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\['\\]/dgv,name:"constant.character.escape.ruby"}]},{begin:/:"/dgv,beginCaptures:{"0":{name:"punctuation.section.symbol.begin.ruby"}},comment:"symbol literal with \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.section.symbol.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{comment:"Needs higher precedence than regular expressions.",match:/(?<!\()\/=/dgv,name:"keyword.operator.assignment.augmented.ruby"},{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with '' delimiter",end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.single.ruby",patterns:[{match:/\\'|\\\\/dgv,name:"constant.character.escape.ruby"}]},{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"string literal with interpolation and \"\" delimiter",end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.double.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<!\.)`/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},comment:"execute string (allows for interpolation)",end:/`/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?<![\\p{L}\\p{M}\\p{N}\\p{Pc}\\)])((/))(?![\\?\\*\\+])(?=(?:(?=($E$(?:\\\\/|[^\\/])*))\\3)/[eimnosux]*\\p{space}*(?:[\\)\\]\\}\\#\\.\\,\\?\\:]|\\|\\||&&|<=>|=>|==|=~|!~|!=|;|(?=$|\\n)|if|else|elsif|then|do|end|unless|while|until|or|and)|(?=$|\\n))","dgv",{"useEmulationGroups":true}),captures:{"1":{name:"string.regexp.interpolated.ruby"},"2":{name:"punctuation.section.regexp.ruby"}},comment:"regular expression literal with interpolation",contentName:"string.regexp.interpolated.ruby",end:/((\/[eimnosux]*))/dgv,patterns:[{include:"#regex_sub"}]},{begin:/%r\{/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\}[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},{begin:/%r\[/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\][eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},{begin:/%r\(/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\)[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},{begin:/%r</dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/>[eimnosux]*/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},{begin:/%r([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.regexp.begin.ruby"}},end:/\1[eimnosux]*()/dgv,endCaptures:{"0":{name:"punctuation.section.regexp.end.ruby"}},name:"string.regexp.interpolated.ruby",patterns:[{include:"#regex_sub"}]},{begin:/%I\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%I\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%I</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%I\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%I([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%i\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%i\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%i</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%i\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%i([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%W\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%W\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%W</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%W\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%W([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%w\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%w\(/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%w</dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%w\{/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%w([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%[Qx]?\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},{begin:/%[Qx]?\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},{begin:/%[Qx]?\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},{begin:/%[Qx]?</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},{begin:/%[Qx]([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%([^\p{L}\p{M}\p{N}\p{Pc}\p{space}\=])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.interpolated.ruby",patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/%q\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%q</dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%q\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%q\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%q([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.quoted.other.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{begin:/%s\(/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\)|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_parens"}]},{begin:/%s</dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/>/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\>|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_ltgt"}]},{begin:/%s\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\]|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_brackets"}]},{begin:/%s\{/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{match:/\\\}|\\\\/dgv,name:"constant.character.escape.ruby"},{include:"#nest_curly"}]},{begin:/%s([^\p{L}\p{M}\p{N}\p{Pc}])/dgv,beginCaptures:{"0":{name:"punctuation.definition.symbol.begin.ruby"}},end:/\1()/dgv,endCaptures:{"0":{name:"punctuation.definition.symbol.end.ruby"}},name:"constant.language.symbol.ruby",patterns:[{comment:"Cant be named because its not necessarily an escape.",match:/\\[^\n]/dgv}]},{captures:{"1":{name:"punctuation.definition.constant.ruby"}},comment:"symbols",match:new EmulatedRegExp("(?<!:)(:)(?:(?=($E$[\\$a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*(?:(?=($E$[\\?\\!]|=(?![\\>\\=])))\\3)?|===?|<=>|>[\\>\\=]?|<[\\<\\=]?|[\\%\\&\\`\\/\\|]|\\*\\*?|=?~|[\\-\\+]@?|\\[\\]=?|@@?[a-zA-Z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*))\\2)","dgv",{"useEmulationGroups":true}),name:"constant.language.symbol.ruby"},{begin:/(?<=^|\n(?!$))=begin/dgv,captures:{"0":{name:"punctuation.definition.comment.ruby"}},comment:"multiline comments",end:/(?<=^|\n(?!$))=end/dgv,name:"comment.block.documentation.ruby"},{include:"#yard"},{begin:/((?<=^|\n(?!$))[ \t]+)?(?=#)/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.ruby"}},end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),patterns:[{begin:/#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},end:/\n/dgv,name:"comment.line.number-sign.ruby"}]},{comment:"\n\t\t\tmatches questionmark-letters.\n\n\t\t\texamples (1st alternation = hex):\n\t\t\t?\\x1 ?\\x61\n\n\t\t\texamples (2nd alternation = octal):\n\t\t\t?\\0 ?\\07 ?\\017\n\n\t\t\texamples (3rd alternation = escaped):\n\t\t\t?\\n ?\\b\n\n\t\t\texamples (4th alternation = meta-ctrl):\n\t\t\t?\\C-a ?\\M-a ?\\C-\\M-\\C-\\M-a\n\n\t\t\texamples (4th alternation = normal):\n\t\t\t?a ?A ?0 \n\t\t\t?* ?\" ?( \n\t\t\t?. ?#\n\t\t\t\n\t\t\t\n\t\t\tthe negative lookbehind prevents against matching\n\t\t\tp(42.tainted?)\n\t\t\t",match:/(?<![\p{L}\p{M}\p{N}\p{Pc}])\?(\\(x\p{AHex}{1,2}(?!\p{AHex})\b|0[0-7]{0,2}(?![0-7])\b|[^x0MC])|(\\[MC]-)+[\p{L}\p{M}\p{N}\p{Pc}]|[^\p{space}\\])/dgv,name:"constant.numeric.ruby"},{begin:/(?<=^|\n(?!$))__END__\n/dgv,captures:{"0":{name:"string.unquoted.program-block.ruby"}},comment:"__END__ marker",contentName:"text.plain",end:/(?=not)impossible/dgv,patterns:[{begin:/(?=<?xml|<[Hh][Tt][Mm][Ll]\b|!DOCTYPE [Hh][Tt][Mm][Ll]\b)/dgv,end:/(?=not)impossible/dgv,name:"text.html.embedded.ruby",patterns:[{include:"text.html.basic"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HTML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.html",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HTML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.html",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.html.basic"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded HAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.haml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)HAML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.haml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.haml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded XML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.xml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)XML)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.xml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.xml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded SQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.sql",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SQL)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.sql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.sql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded GraphQL",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.graphql",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:GRAPHQL|GQL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.graphql",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.graphql"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded CSS",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.css",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CSS)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.css",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.css"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C++",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.cpp",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)CPP)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.cpp",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.cpp"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded C",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.c",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)C)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.c",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.c"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:JS|JAVASCRIPT))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.js",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded jQuery Javascript",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.js.jquery",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)JQUERY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.js.jquery",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.js.jquery"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Shell",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.shell",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:SH|SHELL))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.shell",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.shell"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Lua",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.lua",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)LUA)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.lua",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.lua"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Ruby",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.ruby",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)RUBY)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.ruby",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.ruby"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded YAML",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.yaml",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)(?:YAML|YML))\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"source.yaml",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"source.yaml"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?=(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1))","dgv",{"useEmulationGroups":true}),comment:"Heredoc with embedded Slim",end:new EmulatedRegExp("","dgv",{"strategy":"not_search_start"}),name:"meta.embedded.block.slim",patterns:[{begin:new EmulatedRegExp("(?:(?=($E$<<[\\-\\~]([\"'\\`]?)((?:[_\\p{L}\\p{M}\\p{N}\\p{Pc}]+_|)SLIM)\\b\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},contentName:"text.slim",end:/(?<=^|\n(?!$))\p{space}*\2(?=$|\n)\n?()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"text.slim"},{include:"#escaped_char"}]}]},{begin:new EmulatedRegExp("(?:(?=($E$=\\p{space}*<<([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\2))\\1)","dgv",{"useEmulationGroups":true}),beginCaptures:{"0":{name:"punctuation.definition.string.begin.ruby"}},end:/(?<=^|\n(?!$))\2(?=$|\n)()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:new EmulatedRegExp("(?:(?=($E$((<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\4,\\p{space}?)*<<[\\-\\~]([\"'\\`]?)([\\p{L}\\p{M}\\p{N}\\p{Pc}]+)\\6)))\\1)([^\\n]*)","dgv",{"useEmulationGroups":true}),beginCaptures:{"1":{name:"punctuation.definition.string.begin.ruby"},"7":{patterns:[{include:"source.ruby"}]}},comment:"heredoc with multiple inputs and indented terminator",end:/(?<=^|\n(?!$))\p{space}*\6(?=$|\n)()()()()()()/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.ruby"}},name:"string.unquoted.heredoc.ruby",patterns:[{include:"#heredoc"},{include:"#interpolated_ruby"},{include:"#escaped_char"}]},{begin:/(?<=\{|\{\p{space}|[^A-Za-z0-9_\:\@\$]do|(?<=^|\n(?!$))do|[^A-Za-z0-9_\:\@\$]do\p{space}|(?<=^|\n(?!$))do\p{space})(\|)/dgv,captures:{"1":{name:"punctuation.separator.variable.ruby"}},end:/(?<!\|)(\|)(?!\|)/dgv,name:"meta.block.parameters.ruby",patterns:[{begin:/(?![\p{space}\,\|\(])/dgv,end:/(?=,|\|\p{space}*)/dgv,patterns:[{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"variable.other.block.ruby"},"3":{name:"variable.other.block.unused.ruby variable.other.constant.ruby"}},match:/([\&\*]?)([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}_]*)|(_[\p{L}\p{M}\p{N}\p{Pc}_]*)/dgv}]},{match:/,/dgv,name:"punctuation.separator.variable.ruby"}]},{match:/=>/dgv,name:"punctuation.separator.key-value"},{match:/->/dgv,name:"support.function.kernel.ruby"},{match:/<<=|%=|&{1,2}=|\*=|\*\*=|\+=|-=|\^=|\|{1,2}=|<</dgv,name:"keyword.operator.assignment.augmented.ruby"},{match:/<=>|<(?!<|=)|>(?!<|=|>)|<=|>=|===|==|=~|!=|!~|(?<=[ \t])\?/dgv,name:"keyword.operator.comparison.ruby"},{match:/(?<!\.)\b(and|not|or)\b(?![\?\!])/dgv,name:"keyword.operator.logical.ruby"},{match:/(?<=(?<=^|\n(?!$))|[ \t\!])!|&&|\|\||\^/dgv,name:"keyword.operator.logical.ruby"},{captures:{"1":{name:"keyword.operator.logical.ruby"}},comment:"Safe navigation operator",match:/(&\.)\p{space}*(?![A-Z])/dgv},{match:/(%|&|\*\*|\*|\+|-|\/)/dgv,name:"keyword.operator.arithmetic.ruby"},{match:/=/dgv,name:"keyword.operator.assignment.ruby"},{match:/\||~|>>/dgv,name:"keyword.operator.other.ruby"},{match:/;/dgv,name:"punctuation.separator.statement.ruby"},{match:/,/dgv,name:"punctuation.separator.object.ruby"},{captures:{"1":{name:"punctuation.separator.namespace.ruby"}},comment:"Mark as namespace separator if double colons followed by capital letter",match:/(::)\p{space}*(?=[A-Z])/dgv},{captures:{"1":{name:"punctuation.separator.method.ruby"}},comment:"Mark as method separator if double colons not followed by capital letter",match:/(\.|::)\p{space}*(?![A-Z])/dgv},{comment:"Must come after method and constant separators to prefer double colons",match:/:/dgv,name:"punctuation.separator.other.ruby"},{match:/\{/dgv,name:"punctuation.section.scope.begin.ruby"},{match:/\}/dgv,name:"punctuation.section.scope.end.ruby"},{match:/\[/dgv,name:"punctuation.section.array.begin.ruby"},{match:/\]/dgv,name:"punctuation.section.array.end.ruby"},{match:/\(|\)/dgv,name:"punctuation.section.function.ruby"},{begin:/(?<=[^\.]\.|::)(?=[a-zA-Z][a-zA-Z0-9_\!\?]*[^a-zA-Z0-9_\!\?])/dgv,end:/(?<=[a-zA-Z0-9_\!\?])(?=[^a-zA-Z0-9_\!\?])/dgv,name:"meta.function-call.ruby",patterns:[{match:/([a-zA-Z][a-zA-Z0-9_\!\?]*)(?=[^a-zA-Z0-9_\!\?])/dgv,name:"entity.name.function.ruby"}]},{begin:/([a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\!\?]?)(\()/dgv,beginCaptures:{"1":{name:"entity.name.function.ruby"},"2":{name:"punctuation.section.function.ruby"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.section.function.ruby"}},name:"meta.function-call.ruby",patterns:[{include:"$self"}]}],repository:{escaped_char:{match:/\\(?:[0-7]{1,3}|x[\p{Nd}a-fA-F]{1,2}|[^\n])/dgv,name:"constant.character.escape.ruby"},heredoc:{begin:/(?<=^|\n(?!$))<<[\-\~]?[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,end:/(?=$|\n)/dgv,patterns:[{include:"$self"}]},interpolated_ruby:{patterns:[{begin:/#\{/dgv,beginCaptures:{"0":{name:"punctuation.section.embedded.begin.ruby"}},contentName:"source.ruby",end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.embedded.end.ruby"}},name:"meta.embedded.line.ruby",patterns:[{include:"#nest_curly_and_self"},{include:"$self"}]},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.instance.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#@@)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.class.ruby"},{captures:{"1":{name:"punctuation.definition.variable.ruby"}},match:/(#\$)[a-zA-Z_][\p{L}\p{M}\p{N}\p{Pc}]*/dgv,name:"variable.other.readwrite.global.ruby"}]},method_parameters:{patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"#params"},{include:"$self"}],repository:{braces:{begin:/\{/dgv,beginCaptures:{"0":{name:"punctuation.section.scope.begin.ruby"}},end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.scope.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},brackets:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.section.array.begin.ruby"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.section.array.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]},params:{captures:{"1":{name:"storage.type.variable.ruby"},"2":{name:"constant.other.symbol.hashkey.parameter.function.ruby"},"3":{name:"punctuation.definition.constant.ruby"},"4":{name:"variable.parameter.function.ruby"}},match:/(&|\*\*?)?(?:([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*[\?\!]?(:))|([_a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*))/dgvy},parens:{begin:/\(/dgv,beginCaptures:{"0":{name:"punctuation.section.function.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.section.function.end.ruby"}},patterns:[{include:"#parens"},{include:"#braces"},{include:"#brackets"},{include:"$self"}]}}},nest_brackets:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#nest_brackets"}]},nest_brackets_i:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_brackets_i"}]},nest_brackets_r:{begin:/\[/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\]/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_brackets_r"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},nest_curly_and_self:{patterns:[{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#nest_curly_and_self"}]},{include:"$self"}]},nest_curly_i:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_curly_i"}]},nest_curly_r:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\}/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_curly_r"}]},nest_ltgt:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#nest_ltgt"}]},nest_ltgt_i:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_ltgt_i"}]},nest_ltgt_r:{begin:/</dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/>/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_ltgt_r"}]},nest_parens:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#nest_parens"}]},nest_parens_i:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{include:"#nest_parens_i"}]},nest_parens_r:{begin:/\(/dgv,captures:{"0":{name:"punctuation.section.scope.ruby"}},end:/\)/dgv,patterns:[{include:"#regex_sub"},{include:"#nest_parens_r"}]},regex_sub:{patterns:[{include:"#interpolated_ruby"},{include:"#escaped_char"},{captures:{"1":{name:"punctuation.definition.arbitrary-repetition.ruby"},"3":{name:"punctuation.definition.arbitrary-repetition.ruby"}},match:/(\{)\p{Nd}+(,\p{Nd}+)?(\})/dgv,name:"string.regexp.arbitrary-repetition.ruby"},{begin:/\[(?:\^?\])?/dgv,captures:{"0":{name:"punctuation.definition.character-class.ruby"}},end:/\]/dgv,name:"string.regexp.character-class.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(\?#/dgv,beginCaptures:{"0":{name:"punctuation.definition.comment.begin.ruby"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.end.ruby"}},name:"comment.line.number-sign.ruby",patterns:[{include:"#escaped_char"}]},{begin:/\(/dgv,captures:{"0":{name:"punctuation.definition.group.ruby"}},end:/\)/dgv,name:"string.regexp.group.ruby",patterns:[{include:"#regex_sub"}]},{begin:/(?<=(?<=^|\n(?!$))|\p{space})(#)\p{space}(?=[a-zA-Z0-9\,\. \t\?\!\-[^\x00-\x7F]]*(?=$|\n))/dgv,beginCaptures:{"1":{name:"punctuation.definition.comment.ruby"}},comment:"We are restrictive in what we allow to go after the comment character to avoid false positives, since the availability of comments depend on regexp flags.",end:/(?=$|\n)\n?/dgv,endCaptures:{"0":{name:"punctuation.definition.comment.ruby"}},name:"comment.line.number-sign.ruby"}]},yard:{patterns:[{include:"#yard_comment"},{include:"#yard_param_types"},{include:"#yard_option"},{include:"#yard_tag"},{include:"#yard_types"},{include:"#yard_directive"},{include:"#yard_see"},{include:"#yard_macro_attribute"}]},yard_comment:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(abstract|api|author|deprecated|example|macro|note|overload|since|todo|version)(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that follow the tag-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_continuation:{match:/(?<=^|\n(?!$))\p{space}*#/dgv,name:"punctuation.definition.comment.ruby"},yard_directive:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(endgroup|group|method|parse|scope|visibility)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD directives",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_macro_attribute:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@!)(attribute|macro)(\p{space}+((\[)[^\n]+(\])))?(?=\p{space})(\p{space}+([a-z_][\p{L}\p{M}\p{N}\p{Pc}]*:?))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"11":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for attribute and macro tags because name goes after []",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_option:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(option)(?=\\p{space})(?:(?=($E$\\p{space}+([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\6)?(?:(?=($E$\\p{space}+((\\[)[^\\n]+(\\]))))\\8)?(?:(?=($E$\\p{space}+((\\P{space}*))))\\12)?(?:(?=($E$\\p{space}+((\\()[^\\n]+(\\)))))\\15)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.keyword.yard.ruby"},"11":{name:"comment.line.hashkey.yard.ruby"},"12":{name:"comment.line.defaultvalue.yard.ruby"},"13":{name:"comment.line.punctuation.yard.ruby"},"14":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD option tag that follow the tag-name-types-key-(value)-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_param_types:{begin:new EmulatedRegExp("(?<=^|\\n(?!$))(\\p{space}*)(#)(\\p{space}*)(@)(attr|attr_reader|attr_writer|yieldparam|param)(?=\\p{space})(?:(?=($E$\\p{space}+(?:(?=($E$([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)|((\\[)[^\\n]+(\\]))))\\7)))\\6)?(?:(?=($E$\\p{space}+(?:(?=($E$((\\[)[^\\n]+(\\]))|([a-z_][\\p{L}\\p{M}\\p{N}\\p{Pc}]*:?)))\\13)))\\12)?","dgv",{"useEmulationGroups":true}),beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"6":{name:"comment.line.parameter.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"},"10":{name:"comment.line.type.yard.ruby"},"11":{name:"comment.line.punctuation.yard.ruby"},"12":{name:"comment.line.punctuation.yard.ruby"},"13":{name:"comment.line.parameter.yard.ruby"}},comment:"For YARD tags that follow the tag-name-types-description or tag-types-name-description pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_see:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(see)(?=\p{space})(\p{space}+([^\n]+?))?(?=\p{space}|(?=$|\n))/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.parameter.yard.ruby"}},comment:"separate rule for @see because name could contain url",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]},yard_tag:{captures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"}},comment:"For YARD tags that are just the tag",match:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(private)(?=$|\n)/dgv,name:"comment.line.number-sign.ruby"},yard_types:{begin:/(?<=^|\n(?!$))(\p{space}*)(#)(\p{space}*)(@)(raise|return|yield(?:return)?)(?=\p{space})(\p{space}+((\[)[^\n]+(\])))?/dgv,beginCaptures:{"2":{name:"punctuation.definition.comment.ruby"},"4":{name:"comment.line.keyword.punctuation.yard.ruby"},"5":{name:"comment.line.keyword.yard.ruby"},"7":{name:"comment.line.type.yard.ruby"},"8":{name:"comment.line.punctuation.yard.ruby"},"9":{name:"comment.line.punctuation.yard.ruby"}},comment:"For YARD tags that follow the tag-types-comment pattern",contentName:"comment.line.string.yard.ruby",end:/(?<=^|\n(?!$))(?!\p{space}*#\3\p{space}{2,}|\p{space}*#\p{space}*(?=$|\n))()()()/dgv,name:"comment.line.number-sign.ruby",patterns:[{include:"#yard"},{include:"#yard_continuation"}]}},scopeName:"source.ruby",embeddedLangs:["html","haml","xml","sql","graphql","css","cpp","c","javascript","shellscript","lua","yaml"],aliases:["rb"]})
|
|
16
16
|
|
|
17
17
|
export default [
|
|
18
18
|
...html,
|
package/dist/sas.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import sql from './sql.mjs'
|
|
2
2
|
|
|
3
|
-
const lang = Object.freeze({displayName:"SAS",fileTypes:["sas"],foldingStartMarker:/(proc|data|%macro)[^\n]*;(?=$|\n)/dgiv,foldingStopMarker:/(run|quit|%mend)\p{space}?;/dgiv,name:"sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"},{begin:/\b(data)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.other.sas"}},comment:"Begins a DATA step and provides names for any output SAS data sets, views, or programs.",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"},{captures:{"1":{name:"keyword.other.sas"},"2":{name:"keyword.other.sas"}},match:/(?:(stack|pgm|view|source)\p{space}?=\p{space}?|(debug|nesting|nolist))/dgiv}]},{begin:/\b(set|update|modify|merge)\p{space}+/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"entity.name.class.sas"},"3":{name:"entity.name.class.sas"}},comment:"DATA set File-Handling Statements for DATA step",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"}]},{match:/\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\b/dgiv,name:"keyword.control.sas"},{captures:{"1":{name:"support.class.sas"},"3":{name:"entity.name.function.sas"}},match:/(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]*)/dgiv,name:"keyword.other.sas"},{begin:/\b(proc\p{space}*(sql))\b/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},comment:"Looks like for this to work there must be a *name* as well as the patterns/include bit.",end:/\b(quit)\p{space}*;/dgiv,endCaptures:{"1":{name:"keyword.control.sas"}},name:"meta.sql.sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"source.sql"}]},{match:/\b(by|label|format)\b/dgiv,name:"keyword.datastep.sas"},{captures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},match:/\b(proc ([\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgiv,name:"meta.function-call.sas"},{match:/\b(_n_|_error_)\b/dgiv,name:"variable.language.sas"},{captures:{"1":{name:"support.class.sas"}},match:/\b(_all_|_character_|_cmd_|_freq_|_i_|_infile_|_last_|_msg_|_null_|_numeric_|_temporary_|_type_|abort|abs|addr|adjrsq|airy|alpha|alter|altlog|altprint|and|arcos|array|arsin|as|atan|attrc|attrib|attrn|authserver|autoexec|awscontrol|awsdef|awsmenu|awsmenumerge|awstitle|backward|band|base|betainv|between|blocksize|blshift|bnot|bor|brshift|bufno|bufsize|bxor|by|byerr|byline|byte|calculated|call|cards|cards4|case|catcache|cbufno|cdf|ceil|center|cexist|change|chisq|cinv|class|cleanup|close|cnonct|cntllev|coalesce|codegen|col|collate|collin|column|comamid|comaux1|comaux2|comdef|compbl|compound|compress|config|continue|convert|cos|cosh|cpuid|create|cross|crosstab|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|datalines|datalines4|date|datejul|datepart|datetime|day|dbcslang|dbcstype|dclose|ddm|delete|delimiter|depdb|depdbsl|depsl|depsyd|deptab|dequote|descending|descript|design=|device|dflang|dhms|dif|digamma|dim|dinfo|display|distinct|dkricond|dkrocond|dlm|dnum|do|dopen|doptname|doptnum|dread|drop|dropnote|dsname|dsnferr|echo|else|emaildlg|emailid|emailpw|emailserver|emailsys|encrypt|end|endsas|engine|eof|eov|erf|erfc|error|errorcheck|errors|exist|exp|fappend|fclose|fcol|fdelete|feedback|fetch|fetchobs|fexist|fget|file|fileclose|fileexist|filefmt|filename|fileref|filevar|finfo|finv|fipname|fipnamel|fipstate|first|firstobs|floor|fmterr|fmtsearch|fnonct|fnote|font|fontalias|footnote[1-9]?|fopen|foptname|foptnum|force|formatted|formchar|formdelim|formdlim|forward|fpoint|fpos|fput|fread|frewind|frlen|from|fsep|full|fullstimer|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|go|goto|group|gwindow|hbar|hbound|helpenv|helploc|hms|honorappearance|hosthelp|hostprint|hour|hpct|html|hvar|ibessel|ibr|id|if|index|indexc|indexw|infile|informat|initcmd|initstmt|inner|input|inputc|inputn|inr|insert|int|intck|intnx|into|intrr|invaliddata|irr|is|jbessel|join|juldate|keep|kentb|kurtosis|label|lag|last|lbound|leave|left|length|levels|lgamma|lib|libname|library|libref|line|linesize|link|list|log|log10|log2|logpdf|logpmf|logsdf|lostcard|lowcase|lrecl|ls|macro|macrogen|maps|mautosource|max|maxdec|maxr|mdy|mean|measures|median|memtype|merge|merror|min|minute|missing|missover|mlogic|mod|mode|model|modify|month|mopen|mort|mprint|mrecall|msglevel|msymtabmax|mvarsize|myy|n|nest|netpv|new|news|nmiss|no|nobatch|nobs|nocaps|nocardimage|nocenter|nocharcode|nocmdmac|nocol|nocum|nodate|nodbcs|nodetails|nodmr|nodms|nodmsbatch|nodup|nodupkey|noduplicates|noechoauto|noequals|noerrorabend|noexitwindows|nofullstimer|noicon|noimplmac|noint|nolist|noloadlist|nomiss|nomlogic|nomprint|nomrecall|nomsgcase|nomstored|nomultenvappl|nonotes|nonumber|noobs|noovp|nopad|nopercent|noprint|noprintinit|normal|norow|norsasuser|nosetinit|nosource|nosource2|nosplash|nosymbolgen|note|notes|notitle|notitles|notsorted|noverbose|noxsync|noxwait|npv|null|number|numkeys|nummousekeys|nway|obs|ods|on|open|option|order|ordinal|otherwise|out|outer|outp=|output|over|ovp|p(1|5|10|25|50|75|90|95|99)|pad|pad2|page|pageno|pagesize|paired|parm|parmcards|path|pathdll|pathname|pdf|peek|peekc|pfkey|pmf|point|poisson|poke|position|printer|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probsig|probt|procleave|project|prt|propcase|prxmatch|prxparse|prxchange|prxposn|ps|put|putc|putn|pw|pwreq|qtr|quote|r|ranbin|rancau|ranexp|rangam|range|ranks|rannor|ranpoi|rantbl|rantri|ranuni|read|recfm|register|regr|remote|remove|rename|repeat|replace|resolve|retain|return|reuse|reverse|rewind|right|round|rsquare|rtf|rtrace|rtraceloc|s|s2|samploc|sasautos|sascontrol|sasfrscr|sashelp|sasmsg|sasmstore|sasscript|sasuser|saving|scan|sdf|second|select|selection|separated|seq|serror|set|setcomm|setot|sign|simple|sin|sinh|siteinfo|skewness|skip|sle|sls|sortedby|sortpgm|sortseq|sortsize|soundex|source2|spedis|splashlocation|split|spool|sqrt|start|std|stderr|stdin|stfips|stimer|stname|stnamel|stop|stopover|strip|subgroup|subpopn|substr|sum|sumwgt|symbol|symbolgen|symget|symput|sysget|sysin|sysleave|sysmsg|sysparm|sysprint|sysprintfont|sysprod|sysrc|system|t|table|tables|tan|tanh|tapeclose|tbufsize|terminal|test|then|time|timepart|tinv|title[1-9]?|tnonct|to|today|tol|tooldef|totper|transformout|translate|trantab|tranwrd|trigamma|trim|trimn|trunc|truncover|type|unformatted|uniform|union|until|upcase|update|user|usericon|uss|validate|value|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vnferr|vtype|vtypex|weekday|weight|when|where|while|wincharset|window|work|workinit|workterm|write|wsum|wsumx|x|xsync|xwait|year|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate)\b/dgiv,name:"support.function.sas"}],repository:{blockComment:{patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.slashstar.sas"}]},constant:{patterns:[{comment:"numeric constant",match:/(?<![\&\}])\b
|
|
3
|
+
const lang = Object.freeze({displayName:"SAS",fileTypes:["sas"],foldingStartMarker:/(proc|data|%macro)[^\n]*;(?=$|\n)/dgiv,foldingStopMarker:/(run|quit|%mend)\p{space}?;/dgiv,name:"sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"},{begin:/\b(data)\p{space}+/dgiv,beginCaptures:{"1":{name:"keyword.other.sas"}},comment:"Begins a DATA step and provides names for any output SAS data sets, views, or programs.",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"},{captures:{"1":{name:"keyword.other.sas"},"2":{name:"keyword.other.sas"}},match:/(?:(stack|pgm|view|source)\p{space}?=\p{space}?|(debug|nesting|nolist))/dgiv}]},{begin:/\b(set|update|modify|merge)\p{space}+/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"entity.name.class.sas"},"3":{name:"entity.name.class.sas"}},comment:"DATA set File-Handling Statements for DATA step",end:/(;)/dgv,patterns:[{include:"#blockComment"},{include:"#dataSet"}]},{match:/\b(if|while|until|for|do|end|then|else|run|quit|cancel|options)\b/dgiv,name:"keyword.control.sas"},{captures:{"1":{name:"support.class.sas"},"3":{name:"entity.name.function.sas"}},match:/(%(bquote|do|else|end|eval|global|goto|if|inc|include|index|input|length|let|list|local|lowcase|macro|mend|nrbquote|nrquote|nrstr|put|qscan|qsysfunc|quote|run|scan|str|substr|syscall|sysevalf|sysexec|sysfunc|sysrc|then|to|unquote|upcase|until|while|window)\b)\p{space}*([\p{L}\p{M}\p{N}\p{Pc}]*)/dgiv,name:"keyword.other.sas"},{begin:/\b(proc\p{space}*(sql))\b/dgiv,beginCaptures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},comment:"Looks like for this to work there must be a *name* as well as the patterns/include bit.",end:/\b(quit)\p{space}*;/dgiv,endCaptures:{"1":{name:"keyword.control.sas"}},name:"meta.sql.sas",patterns:[{include:"#starComment"},{include:"#blockComment"},{include:"source.sql"}]},{match:/\b(by|label|format)\b/dgiv,name:"keyword.datastep.sas"},{captures:{"1":{name:"support.function.sas"},"2":{name:"support.class.sas"}},match:/\b(proc ([\p{L}\p{M}\p{N}\p{Pc}]+))\b/dgiv,name:"meta.function-call.sas"},{match:/\b(_n_|_error_)\b/dgiv,name:"variable.language.sas"},{captures:{"1":{name:"support.class.sas"}},match:/\b(_all_|_character_|_cmd_|_freq_|_i_|_infile_|_last_|_msg_|_null_|_numeric_|_temporary_|_type_|abort|abs|addr|adjrsq|airy|alpha|alter|altlog|altprint|and|arcos|array|arsin|as|atan|attrc|attrib|attrn|authserver|autoexec|awscontrol|awsdef|awsmenu|awsmenumerge|awstitle|backward|band|base|betainv|between|blocksize|blshift|bnot|bor|brshift|bufno|bufsize|bxor|by|byerr|byline|byte|calculated|call|cards|cards4|case|catcache|cbufno|cdf|ceil|center|cexist|change|chisq|cinv|class|cleanup|close|cnonct|cntllev|coalesce|codegen|col|collate|collin|column|comamid|comaux1|comaux2|comdef|compbl|compound|compress|config|continue|convert|cos|cosh|cpuid|create|cross|crosstab|css|curobs|cv|daccdb|daccdbsl|daccsl|daccsyd|dacctab|dairy|datalines|datalines4|date|datejul|datepart|datetime|day|dbcslang|dbcstype|dclose|ddm|delete|delimiter|depdb|depdbsl|depsl|depsyd|deptab|dequote|descending|descript|design=|device|dflang|dhms|dif|digamma|dim|dinfo|display|distinct|dkricond|dkrocond|dlm|dnum|do|dopen|doptname|doptnum|dread|drop|dropnote|dsname|dsnferr|echo|else|emaildlg|emailid|emailpw|emailserver|emailsys|encrypt|end|endsas|engine|eof|eov|erf|erfc|error|errorcheck|errors|exist|exp|fappend|fclose|fcol|fdelete|feedback|fetch|fetchobs|fexist|fget|file|fileclose|fileexist|filefmt|filename|fileref|filevar|finfo|finv|fipname|fipnamel|fipstate|first|firstobs|floor|fmterr|fmtsearch|fnonct|fnote|font|fontalias|footnote[1-9]?|fopen|foptname|foptnum|force|formatted|formchar|formdelim|formdlim|forward|fpoint|fpos|fput|fread|frewind|frlen|from|fsep|full|fullstimer|fuzz|fwrite|gaminv|gamma|getoption|getvarc|getvarn|go|goto|group|gwindow|hbar|hbound|helpenv|helploc|hms|honorappearance|hosthelp|hostprint|hour|hpct|html|hvar|ibessel|ibr|id|if|index|indexc|indexw|infile|informat|initcmd|initstmt|inner|input|inputc|inputn|inr|insert|int|intck|intnx|into|intrr|invaliddata|irr|is|jbessel|join|juldate|keep|kentb|kurtosis|label|lag|last|lbound|leave|left|length|levels|lgamma|lib|libname|library|libref|line|linesize|link|list|log|log10|log2|logpdf|logpmf|logsdf|lostcard|lowcase|lrecl|ls|macro|macrogen|maps|mautosource|max|maxdec|maxr|mdy|mean|measures|median|memtype|merge|merror|min|minute|missing|missover|mlogic|mod|mode|model|modify|month|mopen|mort|mprint|mrecall|msglevel|msymtabmax|mvarsize|myy|n|nest|netpv|new|news|nmiss|no|nobatch|nobs|nocaps|nocardimage|nocenter|nocharcode|nocmdmac|nocol|nocum|nodate|nodbcs|nodetails|nodmr|nodms|nodmsbatch|nodup|nodupkey|noduplicates|noechoauto|noequals|noerrorabend|noexitwindows|nofullstimer|noicon|noimplmac|noint|nolist|noloadlist|nomiss|nomlogic|nomprint|nomrecall|nomsgcase|nomstored|nomultenvappl|nonotes|nonumber|noobs|noovp|nopad|nopercent|noprint|noprintinit|normal|norow|norsasuser|nosetinit|nosource|nosource2|nosplash|nosymbolgen|note|notes|notitle|notitles|notsorted|noverbose|noxsync|noxwait|npv|null|number|numkeys|nummousekeys|nway|obs|ods|on|open|option|order|ordinal|otherwise|out|outer|outp=|output|over|ovp|p(1|5|10|25|50|75|90|95|99)|pad|pad2|page|pageno|pagesize|paired|parm|parmcards|path|pathdll|pathname|pdf|peek|peekc|pfkey|pmf|point|poisson|poke|position|printer|probbeta|probbnml|probchi|probf|probgam|probhypr|probit|probnegb|probnorm|probsig|probt|procleave|project|prt|propcase|prxmatch|prxparse|prxchange|prxposn|ps|put|putc|putn|pw|pwreq|qtr|quote|r|ranbin|rancau|ranexp|rangam|range|ranks|rannor|ranpoi|rantbl|rantri|ranuni|read|recfm|register|regr|remote|remove|rename|repeat|replace|resolve|retain|return|reuse|reverse|rewind|right|round|rsquare|rtf|rtrace|rtraceloc|s|s2|samploc|sasautos|sascontrol|sasfrscr|sashelp|sasmsg|sasmstore|sasscript|sasuser|saving|scan|sdf|second|select|selection|separated|seq|serror|set|setcomm|setot|sign|simple|sin|sinh|siteinfo|skewness|skip|sle|sls|sortedby|sortpgm|sortseq|sortsize|soundex|source2|spedis|splashlocation|split|spool|sqrt|start|std|stderr|stdin|stfips|stimer|stname|stnamel|stop|stopover|strip|subgroup|subpopn|substr|sum|sumwgt|symbol|symbolgen|symget|symput|sysget|sysin|sysleave|sysmsg|sysparm|sysprint|sysprintfont|sysprod|sysrc|system|t|table|tables|tan|tanh|tapeclose|tbufsize|terminal|test|then|time|timepart|tinv|title[1-9]?|tnonct|to|today|tol|tooldef|totper|transformout|translate|trantab|tranwrd|trigamma|trim|trimn|trunc|truncover|type|unformatted|uniform|union|until|upcase|update|user|usericon|uss|validate|value|var|varfmt|varinfmt|varlabel|varlen|varname|varnum|varray|varrayx|vartype|verify|vformat|vformatd|vformatdx|vformatn|vformatnx|vformatw|vformatwx|vformatx|vinarray|vinarrayx|vinformat|vinformatd|vinformatdx|vinformatn|vinformatnx|vinformatw|vinformatwx|vinformatx|vlabel|vlabelx|vlength|vlengthx|vname|vnamex|vnferr|vtype|vtypex|weekday|weight|when|where|while|wincharset|window|work|workinit|workterm|write|wsum|wsumx|x|xsync|xwait|year|yearcutoff|yes|yyq|zipfips|zipname|zipnamel|zipstate)\b/dgiv,name:"support.function.sas"}],repository:{blockComment:{patterns:[{begin:/\/\*/dgv,end:/\*\//dgv,name:"comment.block.slashstar.sas"}]},constant:{patterns:[{comment:"numeric constant",match:/(?<![\&\}])\b[0-9]*\.?[0-9]+([eEdD][\-\+]?[0-9]+)?\b/dgv,name:"constant.numeric.sas"},{comment:"single quote numeric-type constant",match:/(')([^']+)(')(dt|[dt])/dgv,name:"constant.numeric.quote.single.sas"},{comment:"double quote numeric-type constant",match:/(")([^"]+)(")(dt|[dt])/dgv,name:"constant.numeric.quote.double.sas"}]},dataSet:{patterns:[{begin:/(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}?\(/dgv,beginCaptures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set with options",end:/\)/dgv,patterns:[{include:"#dataSetOptions"},{include:"#blockComment"},{include:"#macro"},{include:"#constant"},{include:"#quote"},{include:"#operator"}]},{captures:{"2":{name:"entity.name.class.libref.sas"},"3":{name:"entity.name.class.dsname.sas"}},comment:"data set without options",match:/\b(([\p{L}\p{M}\p{N}\p{Pc}]+)\.)?([\p{L}\p{M}\p{N}\p{Pc}]+)\b/dgv}]},dataSetOptions:{patterns:[{match:/(?<=\p{space}|\(|\))(?:ALTER|BUFNO|BUFSIZE|CNTLLEV|COMPRESS|DLDMGACTION|ENCRYPT|ENCRYPTKEY|EXTENDOBSCOUNTER|GENMAX|GENNUM|INDEX|LABEL|OBSBUF|OUTREP|PW|PWREQ|READ|REPEMPTY|REPLACE|REUSE|ROLE|SORTEDBY|SPILL|TOBSNO|TYPE|WRITE|FILECLOSE|FIRSTOBS|IN|OBS|POINTOBS|WHERE|WHEREUP|IDXNAME|IDXWHERE|DROP|KEEP|RENAME)\p{space}?=/dgiv,name:"keyword.other.sas"}]},macro:{patterns:[{match:/(&+[a-z_]([a-z0-9_]+)?(\.+)?)\b/dgiv,name:"variable.other.macro.sas"}]},operator:{patterns:[{match:/([\+\-\*\^\/])/dgv,name:"keyword.operator.arithmetic.sas"},{match:/\b(eq|ne|gt|lt|ge|le|in|not|&|and|or|min|max)\b/dgiv,name:"keyword.operator.comparison.sas"},{match:/([¬\<\>\^\~]?=(:)?|>|<|\||!|¦|¬|(?<=^|\n(?!$))|~|<>|><|\|\|)/dgv,name:"keyword.operator.sas"}]},quote:{patterns:[{begin:/(?<!%)(')/dgv,comment:"single quoted string block",end:/(')([bx])?/dgv,name:"string.quoted.single.sas"},{begin:/(")/dgv,comment:"double quoted string block",end:/(")([bx])?/dgv,name:"string.quoted.double.sas"}]},starComment:{patterns:[{include:"#blockcomment"},{begin:/(?<=;)[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.inline.star.sas"},{begin:/(?<=^|\n(?!$))[\p{space}\%]*\*/dgv,end:/;/dgv,name:"comment.line.start.sas"}]}},scopeName:"source.sas",embeddedLangs:["sql"],aliases:undefined})
|
|
4
4
|
|
|
5
5
|
export default [
|
|
6
6
|
...sql,
|
package/dist/sass.mjs
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
export default []
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
lang
|
|
5
|
-
]
|
|
3
|
+
throw new Error("sass is not supported due to the grammar limits")
|