github-linguist 7.6.0 → 7.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +5 -5
  2. data/bin/github-linguist +17 -4
  3. data/grammars/annotation.liquidhaskell.haskell.json +58 -11
  4. data/grammars/etc.json +472 -4
  5. data/grammars/hidden.manref.json +29 -0
  6. data/grammars/hidden.regexp.injection-shell.json +28 -0
  7. data/grammars/hint.haskell.json +58 -11
  8. data/grammars/hint.message.haskell.json +58 -11
  9. data/grammars/hint.type.haskell.json +58 -11
  10. data/grammars/injections.etc.json +601 -1
  11. data/grammars/markdown.plantuml.codeblock.json +26 -0
  12. data/grammars/source.4dm.json +1156 -0
  13. data/grammars/source.abap.json +7 -7
  14. data/grammars/source.abl.json +685 -83
  15. data/grammars/source.abnf.json +23 -1
  16. data/grammars/source.agda.json +33 -203
  17. data/grammars/source.ahk.json +9 -5
  18. data/grammars/source.angelscript.json +1 -1
  19. data/grammars/source.ballerina.json +55 -19
  20. data/grammars/source.c++.json +4 -4
  21. data/grammars/source.c.platform.json +584 -33
  22. data/grammars/source.chapel.json +7 -4
  23. data/grammars/source.csound.json +1 -1
  24. data/grammars/source.css.json +3 -3
  25. data/grammars/source.css.scss.json +164 -15
  26. data/grammars/source.curlrc.json +869 -65
  27. data/grammars/source.d.json +2 -2
  28. data/grammars/source.dart.json +58 -32
  29. data/grammars/source.dircolors.json +137 -0
  30. data/grammars/source.direct-x.json +135 -0
  31. data/grammars/source.ebnf.json +67 -39
  32. data/grammars/source.editorconfig.json +23 -5
  33. data/grammars/source.elixir.json +51 -0
  34. data/grammars/source.elm.json +1 -1
  35. data/grammars/source.emacs.lisp.json +10 -0
  36. data/grammars/source.faust.json +119 -0
  37. data/grammars/source.futhark.json +146 -0
  38. data/grammars/source.gcode.json +166 -8
  39. data/grammars/source.gedcom.json +196 -0
  40. data/grammars/source.generic-db.json +41 -0
  41. data/grammars/source.gfm.blade.json +15 -0
  42. data/grammars/source.gfm.json +1697 -1439
  43. data/grammars/source.gitconfig.json +1 -1
  44. data/grammars/source.hack.json +200 -98
  45. data/grammars/source.haskell.json +58 -11
  46. data/grammars/source.hlsl.json +9 -5
  47. data/grammars/source.hosts.json +40 -0
  48. data/grammars/source.hsig.json +58 -11
  49. data/grammars/source.httpspec.json +1 -1
  50. data/grammars/source.hx.json +9 -5
  51. data/grammars/source.hxml.json +2 -2
  52. data/grammars/source.idris.json +1 -1
  53. data/grammars/source.igor.json +46 -2
  54. data/grammars/source.ini.npmrc.json +311 -0
  55. data/grammars/source.inno.json +133 -0
  56. data/grammars/source.inputrc.json +500 -0
  57. data/grammars/source.isabelle.root.json +1 -1
  58. data/grammars/source.jison.json +3 -0
  59. data/grammars/source.jisonlex.json +3 -0
  60. data/grammars/source.js.json +4 -4
  61. data/grammars/source.julia.json +70 -24
  62. data/grammars/source.kotlin.json +17 -51
  63. data/grammars/source.lcov.json +398 -0
  64. data/grammars/source.lean.json +20 -4
  65. data/grammars/source.lean.markdown.json +2598 -0
  66. data/grammars/source.lex.json +4 -4
  67. data/grammars/source.m2.json +125 -0
  68. data/grammars/source.m4.json +141 -99
  69. data/grammars/source.man-conf.json +47 -35
  70. data/grammars/source.matlab.json +437 -184
  71. data/grammars/source.mcfunction-snapshot.json +21388 -561
  72. data/grammars/source.mcfunction.json +55 -5
  73. data/grammars/source.meson.json +1 -1
  74. data/grammars/source.mlir.json +37 -317
  75. data/grammars/source.modula-3.json +10 -0
  76. data/grammars/source.msl.json +755 -0
  77. data/grammars/source.nasl.json +155 -0
  78. data/grammars/source.neon.json +381 -0
  79. data/grammars/source.nextflow.json +2 -2
  80. data/grammars/source.objc.platform.json +493 -35
  81. data/grammars/source.odin-ehr.json +806 -0
  82. data/grammars/source.odin.json +402 -0
  83. data/grammars/source.openbsd-pkg.contents.json +128 -0
  84. data/grammars/source.opts.json +12 -2
  85. data/grammars/source.perl6fe.json +1 -1
  86. data/grammars/source.postscript.json +358 -103
  87. data/grammars/source.prisma.json +435 -0
  88. data/grammars/source.purescript.json +29 -2
  89. data/grammars/source.python.json +52 -0
  90. data/grammars/source.q.json +150 -63
  91. data/grammars/source.qasm.json +66 -0
  92. data/grammars/source.ql.json +1408 -0
  93. data/grammars/source.r.json +4 -4
  94. data/grammars/source.reason.json +28 -16
  95. data/grammars/source.rego.json +124 -0
  96. data/grammars/source.sass.json +158 -3
  97. data/grammars/source.scala.json +53 -18
  98. data/grammars/source.sieve.json +383 -0
  99. data/grammars/source.solidity.json +1 -1
  100. data/grammars/source.ssh-config.json +1 -14
  101. data/grammars/source.swift.json +162 -2
  102. data/grammars/source.sy.json +2088 -183
  103. data/grammars/source.tags.json +266 -0
  104. data/grammars/source.terraform.json +576 -132
  105. data/grammars/source.tnsaudit.json +256 -0
  106. data/grammars/source.ts.json +246 -70
  107. data/grammars/source.tsx.json +247 -71
  108. data/grammars/source.v.json +587 -761
  109. data/grammars/source.vim-snippet.json +645 -0
  110. data/grammars/source.viml.json +6 -6
  111. data/grammars/source.webassembly.json +10 -0
  112. data/grammars/source.webidl.json +8 -0
  113. data/grammars/source.wgetrc.json +1640 -0
  114. data/grammars/source.wsd.json +781 -0
  115. data/grammars/source.x86.json +7 -3
  116. data/grammars/source.zig.json +231 -360
  117. data/grammars/text.dfy.dafny.json +188 -0
  118. data/grammars/text.html.php.blade.json +535 -528
  119. data/grammars/text.html.riot.json +788 -0
  120. data/grammars/text.muse.json +1471 -0
  121. data/grammars/text.openbsd-pkg.desc.json +78 -0
  122. data/grammars/text.roff.json +49 -1
  123. data/grammars/text.sfd.json +21 -0
  124. data/grammars/text.tex.latex.haskell.json +58 -11
  125. data/grammars/text.vim-help.json +383 -0
  126. data/grammars/text.xml.svg.json +8 -2
  127. data/grammars/version +1 -1
  128. data/lib/linguist/VERSION +1 -1
  129. data/lib/linguist/blob_helper.rb +4 -2
  130. data/lib/linguist/file_blob.rb +1 -1
  131. data/lib/linguist/generated.rb +96 -28
  132. data/lib/linguist/heuristics.yml +64 -4
  133. data/lib/linguist/languages.json +1 -1
  134. data/lib/linguist/languages.yml +408 -49
  135. data/lib/linguist/lazy_blob.rb +10 -10
  136. data/lib/linguist/linguist.bundle +0 -0
  137. data/lib/linguist/samples.json +48129 -31562
  138. data/lib/linguist/shebang.rb +5 -3
  139. data/lib/linguist/vendor.yml +71 -60
  140. metadata +48 -17
  141. data/grammars/source.LS.json +0 -85
  142. data/grammars/source.MCPOST.json +0 -54
  143. data/grammars/source.MOD.json +0 -55
  144. data/grammars/source.apt.json +0 -18
  145. data/grammars/source.jlex.json +0 -322
  146. data/grammars/source.yaml-ext.json +0 -324
  147. data/grammars/text.html.abl.json +0 -70
@@ -1,85 +0,0 @@
1
- {
2
- "name": "Fanuc (Ls)",
3
- "scopeName": "source.LS",
4
- "patterns": [
5
- {
6
- "name": "support.constant.LS",
7
- "match": "((CNT|ACC)([A-Za-z0-9_]+))|(FINE)",
8
- "captures": {
9
- "1": {
10
- "name": "support.constant.LS"
11
- }
12
- }
13
- },
14
- {
15
- "name": "support.constant.LS",
16
- "match": "([0-9]+)(:)(C|J|L|\\s)",
17
- "captures": {
18
- "1": {
19
- "name": "keyword.constant.LS"
20
- }
21
- }
22
- },
23
- {
24
- "name": "keyword.LS",
25
- "match": "(GP)([0-9]+)(:)"
26
- },
27
- {
28
- "name": "keyword.LS",
29
- "match": "(mm/sec|mm|deg|MNEDITOR)"
30
- },
31
- {
32
- "name": "constant.numeric.LS",
33
- "match": "((-)?(\\d+)((.|,)\\d)?(%)?)"
34
- },
35
- {
36
- "name": "entity.name.function.LS",
37
- "begin": "(P)(\\[)([0-9]+)",
38
- "end": "(\\])",
39
- "beginCaptures": {
40
- "1": {
41
- "name": "entity.name.function.LS"
42
- },
43
- "3": {
44
- "name": "variable.parameter.LS"
45
- }
46
- }
47
- },
48
- {
49
- "name": "comment.number-sign.LS",
50
- "match": "(!.*$)"
51
- },
52
- {
53
- "name": "support.variable.LS",
54
- "match": "\\s(READ_WRITE)"
55
- },
56
- {
57
- "name": "support.variable.LS",
58
- "match": "\\s?(UFRAME_NUM|UTOOL_NUM|CONFIG|CONTROL_CODE|DEFAULT_GROUP|PAUSE_REQUEST|ABORT_REQUEST|BUSY_LAMP_OFF|TIME_SLICE|TASK_PRIORITY|STACK_SIZE|PROTECT|MEMORY_SIZE|LINE_COUNT|VERSION|FILE_NAME|MODIFIED|CREATE|PROG_SIZE|COMMENT|OWNER)\\s"
59
- },
60
- {
61
- "name": "support.variable.LS",
62
- "match": "\\s?(X|Y|Z|W|P|R|J1|J2|J3|J4|J5|J6|UF|UT)\\s"
63
- },
64
- {
65
- "name": "keyword.LS",
66
- "match": "\\s(ABORT|Assignment|CANCEL|CONTINUE|DISABLE|ENABLE|HOLD|NOABORT|NOMESSAGE|NOPAUSE|PAUSE|Port_Id|PULSE|RESUME|SIGNAL|EVENT|SEMAPHORE|STOP|UNHOLD|UNPAUSE)\\s"
67
- },
68
- {
69
- "name": "keyword.LS",
70
- "match": "\\s(EVAL|FROM|IN|NOWAIT|UNTIL|VIA|WHEN|WITH)\\s"
71
- },
72
- {
73
- "name": "entity.name.type.LS",
74
- "match": "\\s?(ARRAY|BOOLEAN|BYTE|CONFIG|DISP_DAT_T|FILE|GROUP_ASSOC|INTEGER|JOINTPOS|PATH|POSITION|QUEUE_TYPE|REAL|SHORT|STD_PTH_NODE|STRING|VECTOR|XYZWPR|XYZWPREXT)\\s"
75
- },
76
- {
77
- "name": "string.quoted.double.LS",
78
- "match": "\".*?\""
79
- },
80
- {
81
- "name": "string.quoted.single.LS",
82
- "match": "\\'.*?\\'"
83
- }
84
- ]
85
- }
@@ -1,54 +0,0 @@
1
- {
2
- "name": "Mastercam (mcpost)",
3
- "scopeName": "source.MCPOST",
4
- "patterns": [
5
- {
6
- "name": "comment.number-sign.MCPOST",
7
- "match": "(#.*$)"
8
- },
9
- {
10
- "name": "constant.numeric.MCPOST",
11
- "match": "(\\b)(zero|one|two|three|four|five|six|seven|height|nine)(\\b)"
12
- },
13
- {
14
- "name": "constant.numeric.MCPOST",
15
- "match": "(\\b)(-?[0-9]+)(.[0-9]+)?(\\b)"
16
- },
17
- {
18
- "name": "variable.language.MCPOST",
19
- "match": "([a-zA-Z0-9]+)(\\$)"
20
- },
21
- {
22
- "name": "entity.name.function.MCPOST",
23
- "match": "([a-zA-Z0-9]+)(\\()(.*)(\\))",
24
- "beginCaptures": {
25
- "1": {
26
- "name": "entity.name.function.MCPOST"
27
- },
28
- "3": {
29
- "name": "variable.parametere.MCPOST"
30
- }
31
- }
32
- },
33
- {
34
- "name": "entity.name.function.MCPOST",
35
- "match": "(\\b)(^p[a-zA-Z]+)(_?([a-zA-Z]+)?)(_?)([a-zA-Z]+)(\\b)"
36
- },
37
- {
38
- "name": "keyword.MCPOST",
39
- "match": "^\\[[a-zA-Z0-9]((_?|\\-?)[a-zA-Z0-9\\s])*(_?|\\-?)[a-zA-Z0-9]\\]"
40
- },
41
- {
42
- "name": "keyword.control.MCPOST",
43
- "match": "(\\b)(if|else|while|for|return)(\\b)"
44
- },
45
- {
46
- "name": "string.quoted.double.MCPOST",
47
- "match": "\".*?\""
48
- },
49
- {
50
- "name": "string.quoted.single.MCPOST",
51
- "match": "\\'.*?\\'"
52
- }
53
- ]
54
- }
@@ -1,55 +0,0 @@
1
- {
2
- "name": "Kuka (MOD)",
3
- "scopeName": "source.MOD",
4
- "patterns": [
5
- {
6
- "name": "support.constant.MOD",
7
- "match": "((wob|z)([A-Za-z0-9_]))",
8
- "captures": {
9
- "1": {
10
- "name": "support.constant.MOD"
11
- }
12
- }
13
- },
14
- {
15
- "name": "constant.numeric.MOD",
16
- "match": "((-)?(\\d+)((.|,)\\d)?(%)?)"
17
- },
18
- {
19
- "name": "constant.numeric.MOD",
20
- "match": "([9])([E]\\+)([0-9]+)"
21
- },
22
- {
23
- "name": "comment.number-sign.MOD",
24
- "match": "(!.*$)"
25
- },
26
- {
27
- "name": "keyword.MOD",
28
- "match": "(PROC|ENDMODULE|MODULE|ENDPROC)\\s"
29
- },
30
- {
31
- "name": "keyword.MOD",
32
- "match": "\\s(MoveJ|MoveL|MoveAbsJ)\\s"
33
- },
34
- {
35
- "name": "keyword.MOD",
36
- "match": "(tl_|Wobj|fine)"
37
- },
38
- {
39
- "name": "keyword.MOD",
40
- "match": "\\s(IF|THEN|RETURN|PROC)\\s"
41
- },
42
- {
43
- "name": "entity.name.type.MOD",
44
- "match": "\\s?(ARRAY|BOOLEAN|BYTE|CONFIG|DISP_DAT_T|FILE|GROUP_ASSOC|INTEGER|JOINTPOS|PATH|POSITION|QUEUE_TYPE|REAL|SHORT|STD_PTH_NODE|STRING|VECTOR|XYZWPR|XYZWPREXT)\\s"
45
- },
46
- {
47
- "name": "string.quoted.double.MOD",
48
- "match": "\".*?\""
49
- },
50
- {
51
- "name": "string.quoted.single.MOD",
52
- "match": "\\'.*?\\'"
53
- }
54
- ]
55
- }
@@ -1,18 +0,0 @@
1
- {
2
- "name": "APT",
3
- "scopeName": "source.apt",
4
- "patterns": [
5
- {
6
- "name": "constant.numeric.apt",
7
- "match": "((-)?(\\d+)((.|,)\\d)?(%)?)"
8
- },
9
- {
10
- "name": "keyword.control.apt",
11
- "match": "(\\b)(AUTOPS|BSURF|CALL|CANNIN|CIRCLE|CLPRNT|CUT|CUTTER|DEBUG|DNTCUT|FINI|FROM|GO|GOBACK|GODLTA|GOFILE|GOFWD|GOLFT|GORGT|GOSUB|GOTO|IF|INDRIP|INDIRV|INPUT|INTOL|JUMPTO|LATHE|LINE|LOOPND|LOOPST|MACRO|MATRIX|NOPOST|OBTAIN|OUTTOL|PATERN|PLANE|POCKET|POINT|PRINT|PSIS|READ|REDEF|REMARK|RESERV|RETURN|SHAPE|SYN|TRMAC|THICK|TLLFT|TLOFPS|TLON|TLONPS|TLRGT|TOLER|TRACUT|TUNEUP|VECTOR|ZSURF|AAXIS|ABSF|ACOSF|ADJUST|ALL|ANGLF|ARC|ARROWS|ASINF|AT|ATAN2F|ATANF|ATANGL|AUTO|AVOID|BAKGRD|BAXIS|BEGIN|BLACK|BLKDEL|BLUE|BORE|BOTH|BRKCHP|BROWN|CAM|CANF|CAXIS|CCLW|CENTER|CHASE|CIRCUL|CLDATA|CLEAR|CLW|COARSE|COLLET|CONST|COSF|CROSS|CSINK|CTRLIN|CUTANG|CYAN|DARK|DASH|DECR||DEEP|DELTA|DELTAX|DELTAY|DELTAZ|DIAMTR|DISTF|DITTO|DMSF|DOTF|DOTTED|DOWN|DRAG|DRILL|DVALF|DWELL|DXF|ENDARC|FACE|FEDTO|FEED|FINE|FINISH|FLOOD|FRONT|GAGE|GEOMTY|GRAY|GREEN|GRID|HIGH|HOLDER|IN|INCR|INTENS|INTF|INTOF|INVERS|IPM|IPR|IVALF|JVALF|KVALF|LARGE|LAST|LAYER|LEAD|LEFT|LENGTH|LIGHT|LINCIR|LINEAR|LITE|LNTHF|LOCK|LOG10F|LOGF|LOW|MAGNTA|MAIN|MANUAL|MARK|MAXF|MAXIPM|MAXRPM|MED|MEDIUM|MILL|MINF|MINUS|MIRROR|MIST|MMPM|MMPR|MODIFY|MOTION|MULTRD|NEGX|NEGY|NEGZ|NEUTRL|NEXT|NIXIE|NOBACK|NOMORE|NORET|NORMAL|NOW|NOX|NOY|NOZ|NUMF|OFF|OMIT|ON|OPTION|ORIENT|OUT|PALLET|PARAB|PARLEL|PASS|PAST|PEN|PERPTO|PHANTM|PLUS|POSX|POSY|POSZ|QUILL|RADIUS|RANDOM|RANGE|RAPTO|REAM|REAR|RED|RETAIN|REV|RIGHT|ROTF|ROTREF|ROUGH|ROUNDF|RPM|RTHETA|RTRCTO|RVALF|SADDLE|SAME|SCALE|SCRIBE|SECNDS|SETANG|SETOOL|SFM|SIDE|SINF|SLOPE|SMALL|SMM|SOLID|SPLINE|SPRING|SQRTF|START|STEP|TABLE|TANF|TANTO|TAP|TAPKUL|THETAR|THRU|TILTF|TIMES|TO|TOOL|TPI|TRANSL|TRAV|TRFORM|TURN|TYPE|UNIT|UP|WAIT|WHITE|WINDOW|XAXIS|XCOORD|XFIRST|XLARGE|XSMALL|XVALF|XYPLAN|XYROT|XYVIEW|XYZ|YAXIS|YCOORD|YELLOW|YFIRST|YLARGE|YSMALL|YVALF|YZPLAN|YZROT|YZVIEW|ZAXIS|ZCOORD|ZIGZAG|ZLARGE|ZRAPID|ZSMALL|ZVALF|ZXPLAN|ZXROT|ZXVIEW||AIR|ARCSLP|ASLOPE|AUXFUN|BREAK|CAMERA|CHECK|CHUCK|CLAMP|CLEARP|CLRSRF|COMBIN|COOLNT|COPY|COUPLE|CUTCOM|CYCLE|DEBUGG|DELAY|DISPLY|DRAFT|DRESS|END|FEDRAT|GOHOME|HEAD|INDEX|INSERT|ISTOP|LEADER|LETTER|LINTOL|LOAD|LOADTL|LPRINT|MACHIN|MAXDPM|MAXVEL|MCHFIN|MCHTOL|MODE|NIBBLE|OPSKIP|OPSTOP|ORIGIN|OVPLOT|PARTNO|PENDWN|PENUP|PITCH|PIVOTZ|PLABEL|PLOT|PLUNGE|POSMAP|POSTN|PPLOT|PPRINT|PREFUN|PRFSEQ|RAPID|RESET|RETRCT|REVERS|REWIND|ROTABL|ROTATE|ROTHED|SAFETY|SELCTL|SELECT|SEQNO|SET|SLOWDN|SPINDL|STOP|SWITCH|THREAD|TMARK|TOOLNO|TRANS|TURRET|UNLOAD|VTLAXS|AUTOPS|CALL|CIRCLE|CLPRNT|COPY|CUT|CUTTER|DNTCUT|FINI|FROM|GO|GOBACK||GODLTA|GOFWD|GOLFT|GORGT|GOSUB|GOTO|IF|INDEX|INDIRP|INDIRV|INPUT|INTOL|JUMPTO|LINE|MACRO|MATRIX|NOPOST|OBTAIN|OUTTOL|PATERN|PLANE|POCKET|POINT|PRINT|PSSIS|READ|REDEF|REMARK|RESERV|RETURN|SYN|TERMAC|THICK|TLLFT|TLOFPS|TLON|TLONPS|TLRGT|TOLER|TRACUT|TUNEUP|VECTOR|ZSURF|UNITS|INCH|MCS|PERIMETER|MULTAX|OSETNO)(\\b)"
12
- },
13
- {
14
- "name": "comment.number-sign.apt",
15
- "match": "((\\$\\$).*$)"
16
- }
17
- ]
18
- }
@@ -1,322 +0,0 @@
1
- {
2
- "name": "JLex",
3
- "scopeName": "source.jlex",
4
- "patterns": [
5
- {
6
- "include": "#main"
7
- }
8
- ],
9
- "repository": {
10
- "comments": {
11
- "patterns": [
12
- {
13
- "name": "comment.line.double-slash.jlex",
14
- "begin": "//",
15
- "end": "$",
16
- "beginCaptures": {
17
- "0": {
18
- "name": "punctuation.definition.comment.jlex"
19
- }
20
- }
21
- },
22
- {
23
- "name": "comment.block.jlex",
24
- "begin": "/\\*",
25
- "end": "\\*/",
26
- "beginCaptures": {
27
- "0": {
28
- "name": "punctuation.definition.begin.comment.jlex"
29
- }
30
- },
31
- "endCaptures": {
32
- "0": {
33
- "name": "punctuation.definition.end.comment.jlex"
34
- }
35
- }
36
- }
37
- ]
38
- },
39
- "directive": {
40
- "patterns": [
41
- {
42
- "match": "((%)(?:class|extends|implements|extends|cupsym))\\s+(\\S.*)",
43
- "captures": {
44
- "1": {
45
- "name": "keyword.control.directive.jlex"
46
- },
47
- "2": {
48
- "name": "punctuation.definition.directive.jlex"
49
- },
50
- "3": {
51
- "name": "storage.type.class.var.jlex"
52
- }
53
- }
54
- },
55
- {
56
- "match": "((%)include)\\s*(\\S.*)(?=$|//)",
57
- "captures": {
58
- "1": {
59
- "name": "keyword.control.directive.jlex"
60
- },
61
- "2": {
62
- "name": "punctuation.definition.directive.jlex"
63
- },
64
- "3": {
65
- "patterns": [
66
- {
67
- "name": "storage.modifier.import.java",
68
- "match": "[^\\s.]+"
69
- },
70
- {
71
- "name": "punctuation.separator.java",
72
- "match": "\\."
73
- }
74
- ]
75
- }
76
- }
77
- },
78
- {
79
- "name": "meta.state-declarations.jlex",
80
- "begin": "(%)state(?=\\s)(?!$)",
81
- "end": "(?=$|/\\*)",
82
- "patterns": [
83
- {
84
- "name": "variable.other.definition.jlex",
85
- "match": "[A-Za-z_][A-Za-z_0-9]*"
86
- },
87
- {
88
- "name": "punctuation.delimiter.comma.jlex",
89
- "match": ","
90
- }
91
- ],
92
- "beginCaptures": {
93
- "0": {
94
- "name": "keyword.control.directive.jlex"
95
- },
96
- "1": {
97
- "name": "punctuation.definition.directive.jlex"
98
- }
99
- }
100
- },
101
- {
102
- "name": "meta.code-block.directive.$3.jlex",
103
- "begin": "^\\s*((%)(initthrow|init|eofthrow|eofval|eof))({)",
104
- "end": "^\\s*((%)\\3)(})",
105
- "patterns": [
106
- {
107
- "include": "source.java"
108
- }
109
- ],
110
- "beginCaptures": {
111
- "1": {
112
- "name": "keyword.control.directive.jlex"
113
- },
114
- "2": {
115
- "name": "punctuation.definition.directive.jlex"
116
- },
117
- "4": {
118
- "name": "punctuation.definition.curly.bracket.begin.jlex"
119
- }
120
- },
121
- "endCaptures": {
122
- "1": {
123
- "name": "keyword.control.directive.jlex"
124
- },
125
- "2": {
126
- "name": "punctuation.definition.directive.jlex"
127
- },
128
- "3": {
129
- "name": "punctuation.definition.curly.bracket.end.jlex"
130
- }
131
- }
132
- },
133
- {
134
- "begin": "^\\s*((%)\\w+)(\\s+\\S.*)?",
135
- "end": "(?=$)",
136
- "beginCaptures": {
137
- "1": {
138
- "name": "keyword.control.directive.jlex"
139
- },
140
- "2": {
141
- "name": "punctuation.definition.directive.jlex"
142
- },
143
- "3": {
144
- "patterns": [
145
- {
146
- "include": "#comments"
147
- },
148
- {
149
- "name": "constant.language.other.lex",
150
- "match": "\\S+"
151
- }
152
- ]
153
- }
154
- }
155
- }
156
- ]
157
- },
158
- "directives": {
159
- "name": "name.directives.jlex",
160
- "begin": "^\\s*(%%)\\s*$\\s*",
161
- "end": "^\\s*(%%)\\s*$\\s*",
162
- "patterns": [
163
- {
164
- "include": "#passthrough"
165
- },
166
- {
167
- "include": "#directive"
168
- },
169
- {
170
- "include": "#comments"
171
- },
172
- {
173
- "include": "#macro"
174
- }
175
- ],
176
- "beginCaptures": {
177
- "1": {
178
- "name": "keyword.control.section.begin.jlex"
179
- }
180
- },
181
- "endCaptures": {
182
- "1": {
183
- "name": "keyword.control.section.end.jlex"
184
- }
185
- }
186
- },
187
- "macro": {
188
- "match": "^\\s*([^\\s=]+)\\s*(=)(\\s*\\S.*)$",
189
- "captures": {
190
- "1": {
191
- "name": "entity.macro.name.jlex"
192
- },
193
- "2": {
194
- "name": "keyword.operator.assignment.jlex"
195
- },
196
- "3": {
197
- "name": "meta.macro.definition.jlex",
198
- "patterns": [
199
- {
200
- "include": "source.lex.regexp"
201
- }
202
- ]
203
- }
204
- }
205
- },
206
- "main": {
207
- "patterns": [
208
- {
209
- "include": "#comments"
210
- },
211
- {
212
- "include": "#user-code"
213
- },
214
- {
215
- "include": "#directives"
216
- },
217
- {
218
- "include": "#rules"
219
- }
220
- ]
221
- },
222
- "passthrough": {
223
- "name": "meta.code-chunk.jlex",
224
- "begin": "^\\s*%{",
225
- "end": "^\\s*%}",
226
- "patterns": [
227
- {
228
- "include": "source.java"
229
- }
230
- ],
231
- "beginCaptures": {
232
- "0": {
233
- "name": "punctuation.section.embedded.begin.jlex"
234
- }
235
- },
236
- "endCaptures": {
237
- "0": {
238
- "name": "punctuation.section.embedded.end.jlex"
239
- }
240
- }
241
- },
242
- "rules": {
243
- "patterns": [
244
- {
245
- "name": "meta.rule.jlex",
246
- "begin": "^\\s*(\"[^\"]+\")\\s+({)",
247
- "end": "}",
248
- "patterns": [
249
- {
250
- "include": "source.java"
251
- }
252
- ],
253
- "beginCaptures": {
254
- "1": {
255
- "patterns": [
256
- {
257
- "include": "source.lex.regexp#string"
258
- }
259
- ]
260
- },
261
- "2": {
262
- "name": "punctuation.definition.curly.bracket.begin.jlex"
263
- }
264
- },
265
- "endCaptures": {
266
- "0": {
267
- "name": "punctuation.definition.curly.bracket.begin.jlex"
268
- }
269
- }
270
- },
271
- {
272
- "name": "meta.rule.jlex",
273
- "begin": "^([^{]*[^\\s{][^{]*)({\\w+}\\s*)?({)",
274
- "end": "}",
275
- "patterns": [
276
- {
277
- "include": "source.java"
278
- }
279
- ],
280
- "beginCaptures": {
281
- "1": {
282
- "patterns": [
283
- {
284
- "include": "source.lex.regexp"
285
- }
286
- ]
287
- },
288
- "2": {
289
- "patterns": [
290
- {
291
- "include": "source.lex.regexp"
292
- }
293
- ]
294
- },
295
- "3": {
296
- "name": "punctuation.definition.curly.bracket.begin.jlex"
297
- }
298
- },
299
- "endCaptures": {
300
- "0": {
301
- "name": "punctuation.definition.curly.bracket.begin.jlex"
302
- }
303
- }
304
- }
305
- ]
306
- },
307
- "user-code": {
308
- "patterns": [
309
- {
310
- "name": "meta.user-code.jlex",
311
- "begin": "\\G",
312
- "end": "^(?=\\s*%%)",
313
- "patterns": [
314
- {
315
- "include": "source.java"
316
- }
317
- ]
318
- }
319
- ]
320
- }
321
- }
322
- }