github-linguist 7.6.1 → 7.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) 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 +212 -3
  5. data/grammars/hidden.manref.json +29 -0
  6. data/grammars/hint.haskell.json +58 -11
  7. data/grammars/hint.message.haskell.json +58 -11
  8. data/grammars/hint.type.haskell.json +58 -11
  9. data/grammars/injections.etc.json +601 -1
  10. data/grammars/markdown.plantuml.codeblock.json +26 -0
  11. data/grammars/source.4dm.json +1100 -0
  12. data/grammars/source.abap.json +7 -7
  13. data/grammars/source.abnf.json +23 -1
  14. data/grammars/source.agda.json +32 -202
  15. data/grammars/source.ahk.json +9 -5
  16. data/grammars/source.angelscript.json +1 -1
  17. data/grammars/source.ballerina.json +54 -18
  18. data/grammars/source.chapel.json +4 -4
  19. data/grammars/source.csound.json +1 -1
  20. data/grammars/source.css.json +2 -2
  21. data/grammars/source.css.scss.json +164 -15
  22. data/grammars/source.curlrc.json +869 -65
  23. data/grammars/source.dart.json +58 -32
  24. data/grammars/source.dircolors.json +137 -0
  25. data/grammars/source.direct-x.json +135 -0
  26. data/grammars/source.ebnf.json +67 -39
  27. data/grammars/source.editorconfig.json +23 -5
  28. data/grammars/source.elixir.json +51 -0
  29. data/grammars/source.elm.json +1 -1
  30. data/grammars/source.emacs.lisp.json +10 -0
  31. data/grammars/source.faust.json +119 -0
  32. data/grammars/source.gcode.json +166 -8
  33. data/grammars/source.gfm.json +1 -1
  34. data/grammars/source.gitconfig.json +1 -1
  35. data/grammars/source.hack.json +200 -98
  36. data/grammars/source.haskell.json +58 -11
  37. data/grammars/source.hlsl.json +9 -5
  38. data/grammars/source.hosts.json +40 -0
  39. data/grammars/source.hsig.json +58 -11
  40. data/grammars/source.hx.json +4 -0
  41. data/grammars/source.igor.json +46 -2
  42. data/grammars/source.ini.npmrc.json +311 -0
  43. data/grammars/source.inno.json +133 -0
  44. data/grammars/source.inputrc.json +500 -0
  45. data/grammars/source.js.json +4 -4
  46. data/grammars/source.julia.json +69 -23
  47. data/grammars/source.kotlin.json +1 -1
  48. data/grammars/source.lean.json +19 -3
  49. data/grammars/source.lean.markdown.json +2598 -0
  50. data/grammars/source.lex.json +4 -4
  51. data/grammars/source.m4.json +141 -99
  52. data/grammars/source.man-conf.json +46 -34
  53. data/grammars/source.matlab.json +437 -184
  54. data/grammars/source.mcfunction-snapshot.json +21388 -561
  55. data/grammars/source.mcfunction.json +55 -5
  56. data/grammars/source.meson.json +1 -1
  57. data/grammars/source.mlir.json +37 -317
  58. data/grammars/source.mrc.json +740 -0
  59. data/grammars/source.nasl.json +155 -0
  60. data/grammars/source.nextflow.json +2 -2
  61. data/grammars/source.odin-ehr.json +806 -0
  62. data/grammars/source.odin.json +402 -0
  63. data/grammars/source.opts.json +12 -2
  64. data/grammars/source.p4.json +21 -5
  65. data/grammars/source.prisma.json +435 -0
  66. data/grammars/source.python.json +2 -0
  67. data/grammars/source.qasm.json +66 -0
  68. data/grammars/source.ql.json +1408 -0
  69. data/grammars/source.reason.json +28 -16
  70. data/grammars/source.rego.json +124 -0
  71. data/grammars/source.sass.json +158 -3
  72. data/grammars/source.scala.json +53 -18
  73. data/grammars/source.ssh-config.json +1 -14
  74. data/grammars/source.swift.json +162 -2
  75. data/grammars/source.sy.json +2088 -183
  76. data/grammars/source.terraform.json +576 -132
  77. data/grammars/source.tnsaudit.json +256 -0
  78. data/grammars/source.ts.json +159 -51
  79. data/grammars/source.tsx.json +160 -52
  80. data/grammars/source.v.json +559 -764
  81. data/grammars/source.vim-snippet.json +645 -0
  82. data/grammars/source.viml.json +6 -6
  83. data/grammars/source.webassembly.json +10 -0
  84. data/grammars/source.wgetrc.json +1640 -0
  85. data/grammars/source.wsd.json +775 -0
  86. data/grammars/source.zig.json +169 -304
  87. data/grammars/text.html.php.blade.json +1 -1
  88. data/grammars/text.html.riot.json +788 -0
  89. data/grammars/text.muse.json +1471 -0
  90. data/grammars/text.tex.latex.haskell.json +58 -11
  91. data/grammars/text.vim-help.json +383 -0
  92. data/grammars/version +1 -1
  93. data/lib/linguist/VERSION +1 -1
  94. data/lib/linguist/blob_helper.rb +4 -2
  95. data/lib/linguist/file_blob.rb +1 -1
  96. data/lib/linguist/generated.rb +60 -13
  97. data/lib/linguist/heuristics.yml +64 -4
  98. data/lib/linguist/languages.json +1 -1
  99. data/lib/linguist/languages.yml +336 -45
  100. data/lib/linguist/lazy_blob.rb +10 -10
  101. data/lib/linguist/linguist.bundle +0 -0
  102. data/lib/linguist/samples.json +43560 -31457
  103. data/lib/linguist/shebang.rb +5 -3
  104. data/lib/linguist/vendor.yml +9 -0
  105. metadata +29 -10
  106. data/grammars/source.LS.json +0 -85
  107. data/grammars/source.MCPOST.json +0 -54
  108. data/grammars/source.MOD.json +0 -55
  109. data/grammars/source.apt.json +0 -18
  110. data/grammars/source.jlex.json +0 -322
  111. data/grammars/source.yaml-ext.json +0 -324
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Linguist
2
4
  class Shebang
3
5
  # Public: Use shebang to detect language of the blob.
@@ -23,10 +25,10 @@ module Linguist
23
25
  #
24
26
  # Returns a String or nil
25
27
  def self.interpreter(data)
26
- shebang = data.lines.first
27
-
28
28
  # First line must start with #!
29
- return unless shebang && shebang.start_with?("#!")
29
+ return unless data.start_with?("#!")
30
+
31
+ shebang = data[0, data.index($/) || data.length]
30
32
 
31
33
  s = StringScanner.new(shebang)
32
34
 
@@ -32,12 +32,21 @@
32
32
  - (^|/)ltversion.m4
33
33
  - (^|/)lt~obsolete.m4
34
34
 
35
+ # .NET Core Install Scripts
36
+ - dotnet-install\.(ps1|sh)$
37
+
35
38
  # Linters
36
39
  - cpplint.py
37
40
 
38
41
  # Node dependencies
39
42
  - node_modules/
40
43
 
44
+ # Yarn releases
45
+ - (^|/)\.yarn/releases/
46
+
47
+ # esy.sh dependencies
48
+ - (^|/)_esy$
49
+
41
50
  # Bower Components
42
51
  - bower_components/
43
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-linguist
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.6.1
4
+ version: 7.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GitHub
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-29 00:00:00.000000000 Z
11
+ date: 2020-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: charlock_holmes
@@ -246,16 +246,16 @@ files:
246
246
  - grammars/documentation.markdown.injection.haxe.json
247
247
  - grammars/etc.json
248
248
  - grammars/file.lasso.json
249
+ - grammars/hidden.manref.json
249
250
  - grammars/hint.haskell.json
250
251
  - grammars/hint.message.haskell.json
251
252
  - grammars/hint.type.haskell.json
252
253
  - grammars/injections.etc.json
253
254
  - grammars/markdown.haxe.codeblock.json
254
255
  - grammars/markdown.hxml.codeblock.json
256
+ - grammars/markdown.plantuml.codeblock.json
255
257
  - grammars/objdump.x86asm.json
256
- - grammars/source.LS.json
257
- - grammars/source.MCPOST.json
258
- - grammars/source.MOD.json
258
+ - grammars/source.4dm.json
259
259
  - grammars/source.SASLog.json
260
260
  - grammars/source.abap.json
261
261
  - grammars/source.abl.json
@@ -275,7 +275,6 @@ files:
275
275
  - grammars/source.apache-config.mod_perl.json
276
276
  - grammars/source.apl.json
277
277
  - grammars/source.applescript.json
278
- - grammars/source.apt.json
279
278
  - grammars/source.asn.json
280
279
  - grammars/source.asp.json
281
280
  - grammars/source.aspectj.json
@@ -343,6 +342,8 @@ files:
343
342
  - grammars/source.data-weave.json
344
343
  - grammars/source.desktop.json
345
344
  - grammars/source.diff.json
345
+ - grammars/source.dircolors.json
346
+ - grammars/source.direct-x.json
346
347
  - grammars/source.disasm.json
347
348
  - grammars/source.ditroff.desc.json
348
349
  - grammars/source.ditroff.json
@@ -363,6 +364,7 @@ files:
363
364
  - grammars/source.factor.json
364
365
  - grammars/source.fan.json
365
366
  - grammars/source.fancy.json
367
+ - grammars/source.faust.json
366
368
  - grammars/source.figctrl.json
367
369
  - grammars/source.figfont.json
368
370
  - grammars/source.firestore.json
@@ -407,6 +409,7 @@ files:
407
409
  - grammars/source.hc.json
408
410
  - grammars/source.hgignore.json
409
411
  - grammars/source.hlsl.json
412
+ - grammars/source.hosts.json
410
413
  - grammars/source.hql.json
411
414
  - grammars/source.hsc2hs.json
412
415
  - grammars/source.hsig.json
@@ -423,6 +426,9 @@ files:
423
426
  - grammars/source.igor.json
424
427
  - grammars/source.inform7.json
425
428
  - grammars/source.ini.json
429
+ - grammars/source.ini.npmrc.json
430
+ - grammars/source.inno.json
431
+ - grammars/source.inputrc.json
426
432
  - grammars/source.io.json
427
433
  - grammars/source.ioke.json
428
434
  - grammars/source.isabelle.root.json
@@ -436,7 +442,6 @@ files:
436
442
  - grammars/source.jison.json
437
443
  - grammars/source.jisonlex-injection.json
438
444
  - grammars/source.jisonlex.json
439
- - grammars/source.jlex.json
440
445
  - grammars/source.jolie.json
441
446
  - grammars/source.jq.json
442
447
  - grammars/source.js.css.json
@@ -452,6 +457,7 @@ files:
452
457
  - grammars/source.julia.json
453
458
  - grammars/source.kotlin.json
454
459
  - grammars/source.lean.json
460
+ - grammars/source.lean.markdown.json
455
461
  - grammars/source.lex.json
456
462
  - grammars/source.lex.regexp.json
457
463
  - grammars/source.lid.json
@@ -489,8 +495,10 @@ files:
489
495
  - grammars/source.monkey.json
490
496
  - grammars/source.moonscript.json
491
497
  - grammars/source.mql5.json
498
+ - grammars/source.mrc.json
492
499
  - grammars/source.mupad.json
493
500
  - grammars/source.nanorc.json
501
+ - grammars/source.nasl.json
494
502
  - grammars/source.ncl.json
495
503
  - grammars/source.ne.json
496
504
  - grammars/source.nemerle.json
@@ -520,6 +528,8 @@ files:
520
528
  - grammars/source.ocaml.json
521
529
  - grammars/source.ocamllex.json
522
530
  - grammars/source.ocamlyacc.json
531
+ - grammars/source.odin-ehr.json
532
+ - grammars/source.odin.json
523
533
  - grammars/source.ooc.json
524
534
  - grammars/source.opa.json
525
535
  - grammars/source.opal.json
@@ -554,6 +564,7 @@ files:
554
564
  - grammars/source.postscript.json
555
565
  - grammars/source.pov-ray sdl.json
556
566
  - grammars/source.powershell.json
567
+ - grammars/source.prisma.json
557
568
  - grammars/source.processing.json
558
569
  - grammars/source.prolog.eclipse.json
559
570
  - grammars/source.prolog.json
@@ -566,6 +577,8 @@ files:
566
577
  - grammars/source.python.salt.json
567
578
  - grammars/source.q.json
568
579
  - grammars/source.q_output.json
580
+ - grammars/source.qasm.json
581
+ - grammars/source.ql.json
569
582
  - grammars/source.qmake.json
570
583
  - grammars/source.qml.json
571
584
  - grammars/source.quake.json
@@ -583,6 +596,7 @@ files:
583
596
  - grammars/source.regexp.perl6fe.json
584
597
  - grammars/source.regexp.python.json
585
598
  - grammars/source.regexp.spin.json
599
+ - grammars/source.rego.json
586
600
  - grammars/source.renpy.json
587
601
  - grammars/source.rexx.json
588
602
  - grammars/source.ring.json
@@ -632,6 +646,7 @@ files:
632
646
  - grammars/source.thrift.json
633
647
  - grammars/source.tl.json
634
648
  - grammars/source.tla.json
649
+ - grammars/source.tnsaudit.json
635
650
  - grammars/source.toc.json
636
651
  - grammars/source.toml.json
637
652
  - grammars/source.ts.json
@@ -648,6 +663,7 @@ files:
648
663
  - grammars/source.vbnet.json
649
664
  - grammars/source.verilog.json
650
665
  - grammars/source.vhdl.json
666
+ - grammars/source.vim-snippet.json
651
667
  - grammars/source.viml.json
652
668
  - grammars/source.vtt.json
653
669
  - grammars/source.vyper.json
@@ -656,7 +672,9 @@ files:
656
672
  - grammars/source.wdl.json
657
673
  - grammars/source.webassembly.json
658
674
  - grammars/source.webidl.json
675
+ - grammars/source.wgetrc.json
659
676
  - grammars/source.wollok.json
677
+ - grammars/source.wsd.json
660
678
  - grammars/source.x10.json
661
679
  - grammars/source.x86.json
662
680
  - grammars/source.x86asm.json
@@ -666,7 +684,6 @@ files:
666
684
  - grammars/source.xq.json
667
685
  - grammars/source.xtend.json
668
686
  - grammars/source.yacc.json
669
- - grammars/source.yaml-ext.json
670
687
  - grammars/source.yaml.json
671
688
  - grammars/source.yaml.salt.json
672
689
  - grammars/source.yang.json
@@ -715,6 +732,7 @@ files:
715
732
  - grammars/text.html.mediawiki.json
716
733
  - grammars/text.html.php.blade.json
717
734
  - grammars/text.html.php.json
735
+ - grammars/text.html.riot.json
718
736
  - grammars/text.html.slash.json
719
737
  - grammars/text.html.smarty.json
720
738
  - grammars/text.html.soy.json
@@ -727,6 +745,7 @@ files:
727
745
  - grammars/text.junit-test-report.json
728
746
  - grammars/text.log.latex.json
729
747
  - grammars/text.marko.json
748
+ - grammars/text.muse.json
730
749
  - grammars/text.plain.json
731
750
  - grammars/text.python.console.json
732
751
  - grammars/text.python.traceback.json
@@ -748,6 +767,7 @@ files:
748
767
  - grammars/text.tex.latex.memoir.json
749
768
  - grammars/text.tex.latex.rd.json
750
769
  - grammars/text.texinfo.json
770
+ - grammars/text.vim-help.json
751
771
  - grammars/text.xml.ant.json
752
772
  - grammars/text.xml.flex-config.json
753
773
  - grammars/text.xml.genshi.json
@@ -808,8 +828,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
808
828
  - !ruby/object:Gem::Version
809
829
  version: '0'
810
830
  requirements: []
811
- rubyforge_project:
812
- rubygems_version: 2.6.14
831
+ rubygems_version: 3.0.3
813
832
  signing_key:
814
833
  specification_version: 4
815
834
  summary: GitHub Language detection
@@ -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
- }