github-linguist 7.27.0 → 7.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/ext/linguist/lex.linguist_yy.c +313 -294
  3. data/ext/linguist/lex.linguist_yy.h +5 -4
  4. data/ext/linguist/tokenizer.l +5 -2
  5. data/grammars/etc.json +1 -1
  6. data/grammars/inline.edgeql.json +1 -0
  7. data/grammars/inline.graphql.json +1 -1
  8. data/grammars/inline.graphql.markdown.codeblock.json +1 -0
  9. data/grammars/inline.graphql.rb.json +1 -0
  10. data/grammars/inline.hbs.json +1 -0
  11. data/grammars/inline.template.json +1 -0
  12. data/grammars/markdown.commonlisp.codeblock.json +1 -0
  13. data/grammars/markdown.glimmer.codeblock.json +1 -0
  14. data/grammars/markdown.lean4.codeblock.json +1 -0
  15. data/grammars/markdown.move.codeblock.json +1 -0
  16. data/grammars/mdx.LANGUAGE.codeblock.json +1 -0
  17. data/grammars/source.8xp.json +1 -0
  18. data/grammars/source.abl.json +1 -1
  19. data/grammars/source.al.json +1 -1
  20. data/grammars/source.amxxpawn.json +1 -0
  21. data/grammars/source.astro.json +1 -1
  22. data/grammars/source.bb.json +1 -0
  23. data/grammars/source.bh.json +1 -0
  24. data/grammars/source.bicep.json +1 -1
  25. data/grammars/source.brs.json +1 -1
  26. data/grammars/source.cds.json +1 -1
  27. data/grammars/source.cobol.json +1 -1
  28. data/grammars/source.commonlisp.json +1 -0
  29. data/grammars/source.cs.json +1 -1
  30. data/grammars/source.csound.json +1 -1
  31. data/grammars/source.dart.json +1 -1
  32. data/grammars/source.denizenscript.json +1 -1
  33. data/grammars/source.did.json +1 -1
  34. data/grammars/source.dm.json +1 -1
  35. data/grammars/source.earthfile.json +1 -1
  36. data/grammars/source.edgeql.json +1 -0
  37. data/grammars/source.elvish-transcript.json +1 -1
  38. data/grammars/source.fsharp.json +1 -1
  39. data/grammars/source.gdresource.json +1 -1
  40. data/grammars/source.gdscript.json +1 -1
  41. data/grammars/source.genero-4gl.json +1 -0
  42. data/grammars/source.genero-per.json +1 -0
  43. data/grammars/source.gjs.json +1 -0
  44. data/grammars/source.gsc.json +1 -1
  45. data/grammars/source.gts.json +1 -0
  46. data/grammars/source.hcl.json +1 -0
  47. data/grammars/source.hcl.terraform.json +1 -0
  48. data/grammars/source.ice.json +1 -0
  49. data/grammars/source.julia.json +1 -1
  50. data/grammars/source.kotlin.json +1 -1
  51. data/grammars/source.lean4.json +1 -0
  52. data/grammars/source.lean4.markdown.json +1 -0
  53. data/grammars/source.lua.json +1 -1
  54. data/grammars/source.matlab.json +1 -1
  55. data/grammars/source.mdx.json +1 -1
  56. data/grammars/source.meta-info.json +1 -1
  57. data/grammars/source.mojo.json +1 -0
  58. data/grammars/source.nasal.json +1 -1
  59. data/grammars/source.nim.json +1 -1
  60. data/grammars/source.nushell.json +1 -1
  61. data/grammars/source.odin.json +1 -1
  62. data/grammars/source.p4.json +1 -1
  63. data/grammars/source.pip-requirements.json +1 -0
  64. data/grammars/source.praat.json +1 -0
  65. data/grammars/source.ql.json +1 -1
  66. data/grammars/source.raku.json +1 -1
  67. data/grammars/source.rascal.json +1 -1
  68. data/grammars/source.rego.json +1 -1
  69. data/grammars/source.rescript.json +1 -1
  70. data/grammars/source.roc.json +1 -0
  71. data/grammars/source.rpgle.json +1 -1
  72. data/grammars/source.rust.json +1 -1
  73. data/grammars/source.scala.json +1 -1
  74. data/grammars/source.sentinel.json +1 -0
  75. data/grammars/source.slice.json +1 -1
  76. data/grammars/source.slint.json +1 -0
  77. data/grammars/source.sourcepawn.json +1 -1
  78. data/grammars/source.swift.json +1 -1
  79. data/grammars/source.textgrid.json +1 -0
  80. data/grammars/source.toit.json +1 -0
  81. data/grammars/source.ts.json +1 -1
  82. data/grammars/source.tsx.json +1 -1
  83. data/grammars/source.vba.json +1 -1
  84. data/grammars/source.viml.json +1 -1
  85. data/grammars/sp-jsdoc.injection.json +1 -0
  86. data/grammars/text.adblock.json +1 -1
  87. data/grammars/text.html.edge.json +1 -0
  88. data/grammars/text.html.ember-handlebars.json +1 -0
  89. data/grammars/text.html.statamic.json +1 -1
  90. data/grammars/text.md.json +1 -1
  91. data/grammars/text.srt.json +1 -1
  92. data/grammars/text.tex.json +1 -1
  93. data/grammars/text.valve-cfg.json +1 -0
  94. data/grammars/text.valve-kv.json +1 -0
  95. data/grammars/version +1 -1
  96. data/lib/linguist/VERSION +1 -1
  97. data/lib/linguist/generated.rb +27 -5
  98. data/lib/linguist/heuristics.yml +23 -2
  99. data/lib/linguist/languages.json +1 -1
  100. data/lib/linguist/languages.yml +153 -17
  101. data/lib/linguist/samples.json +1 -1
  102. metadata +41 -8
  103. data/grammars/govulncheck.json +0 -1
  104. data/grammars/markdown.graphql.codeblock.json +0 -1
  105. data/grammars/source.dmf.json +0 -1
  106. data/grammars/source.genero-forms.json +0 -1
  107. data/grammars/source.genero.json +0 -1
@@ -1 +1 @@
1
- {"name":"SubRip Text","scopeName":"text.srt","patterns":[{"include":"#main"}],"repository":{"action":{"patterns":[{"name":"string.quoted.other.sound.action.square-brackets.srt","begin":"\\[","end":"\\]|(?=^[ \\t]*$)","patterns":[{"include":"#formatting"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.srt"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.srt"}}},{"name":"string.quoted.other.sound.action.round-brackets.srt","begin":"\\(","end":"\\)|(?=^[ \\t]*$)","patterns":[{"include":"#formatting"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.srt"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.srt"}}}]},"arrow":{"name":"keyword.operator.timespan.srt","match":"--\u003e","captures":{"0":{"name":"punctuation.definition.separator.srt"}}},"bold":{"contentName":"markup.bold.srt","begin":"(\u003c)([Bb])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Bb])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.b.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.b.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.b.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.b.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"dash":{"name":"markup.quote.quotation-dash.srt","match":"(?:^|\\G)(-)","captures":{"1":{"name":"punctuation.section.quote.srt"}}},"escapes":{"patterns":[{"name":"constant.character.whitespace.escape.hard-space.srt","match":"(\\\\)h","captures":{"1":{"name":"punctuation.definition.escape.backslash.srt"}}},{"name":"constant.character.whitespace.escape.forced-newline.srt","match":"(\\\\)N","captures":{"1":{"name":"punctuation.definition.escape.backslash.srt"}}}]},"font":{"contentName":"markup.other.font.srt","begin":"(?i)(\u003c)(font)(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(?i)(\u003c/)(font)[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.font.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.font.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.font.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.font.html.srt"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"formatting":{"patterns":[{"include":"#bold"},{"include":"#italic"},{"include":"#underline"},{"include":"#strike"},{"include":"#font"}]},"italic":{"contentName":"markup.italic.srt","begin":"(\u003c)([Ii])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Ii])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.i.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.i.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.i.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.i.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"linePosition":{"name":"meta.line-position.${2:/downcase}-axis.srt","match":"\\b(([XY])[0-9]+)(:)(?:([-+]?[0-9]+\\.[0-9]+)|([-+]?[0-9]+))\\b","captures":{"1":{"name":"variable.parameter.position.srt"},"3":{"name":"keyword.operator.assignment.key-value.colon.srt"},"4":{"name":"constant.numeric.float.srt"},"5":{"name":"constant.numeric.integer.srt"}}},"lyrics":{"name":"markup.quote.lyrics.srt","begin":"(♪+)[ \\t]*","end":"[ \\t]*(♪+)|(?=^-|^[ \\t]*$|\\s*\u003c/)","patterns":[{"include":"#formatting"}],"beginCaptures":{"1":{"name":"punctuation.definition.lyrics.begin.srt"}},"endCaptures":{"1":{"name":"punctuation.definition.lyrics.end.srt"}}},"main":{"patterns":[{"include":"#subtitle"}]},"speaker":{"match":"(?:^|\\G)(-[ \\t]*)?((?:[^-\u003c\u003e\\s:][^:]*(?=:[ \\t]*\\S)|[^-\u003c\u003e\\s:a-z][^:a-z]*)(:))(?=$|\\s)","captures":{"1":{"patterns":[{"include":"#dash"}]},"2":{"name":"entity.name.speaker.srt","patterns":[{"include":"#formatting"},{"include":"#action"}]},"3":{"name":"punctuation.separator.speaker.colon.srt"}}},"strike":{"contentName":"markup.strike.srt","begin":"(\u003c)([Ss])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Ss])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.s.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.s.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.s.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.s.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"subtitle":{"name":"meta.subtitle.srt","begin":"^(?:?)(\\d+)$","end":"^[ \\t]*$","patterns":[{"begin":"\\G\\s*","end":"(?!\\G)$","patterns":[{"name":"meta.timespan.empty.srt","contentName":"comment.block.ignored.hidden-subtitle.srt","begin":"(?x) ^\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3}) \\x20(--\u003e)\\x20 (\\1)\n((?:\\s*[XY][0-9]+:[-+]?[0-9]+(?:\\.[0-9]+)?)++)?\n[ \\t]* $ ","end":"(?=^[ \\t]*$)","beginCaptures":{"1":{"name":"constant.numeric.time.timecode.start.srt","patterns":[{"include":"#timecode"}]},"2":{"patterns":[{"include":"#arrow"}]},"3":{"name":"constant.numeric.time.timecode.end.srt","patterns":[{"include":"#timecode"}]},"4":{"patterns":[{"include":"#linePosition"}]}}},{"name":"meta.timespan.srt","match":"(?x) ^\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3}) \\x20(--\u003e)\\x20\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3})\n((?:\\s*[XY][0-9]+:[-+]?[0-9]+(?:\\.[0-9]+)?)++)?\n[ \\t]* $ ","captures":{"1":{"name":"constant.numeric.time.timecode.start.srt","patterns":[{"include":"#timecode"}]},"2":{"patterns":[{"include":"#arrow"}]},"3":{"name":"constant.numeric.time.timecode.end.srt","patterns":[{"include":"#timecode"}]},"4":{"patterns":[{"include":"#linePosition"}]}}},{"include":"#text"}]},{"include":"#text"}],"beginCaptures":{"1":{"name":"entity.name.section.srt"}}},"text":{"patterns":[{"include":"#speaker"},{"include":"#dash"},{"include":"#action"},{"include":"#lyrics"},{"include":"#formatting"},{"include":"#escapes"}]},"timecode":{"patterns":[{"name":"invalid.illegal.syntax.decimal-separator.srt","match":"\\."},{"name":"invalid.illegal.value.out-of-range.vtt","match":"(?\u003c=:)([6-9][0-9])"}]},"underline":{"contentName":"markup.underline.srt","begin":"(\u003c)([Uu])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Uu])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.u.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.u.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.u.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.u.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}}}}
1
+ {"name":"SubRip Text","scopeName":"text.srt","patterns":[{"include":"#main"}],"repository":{"action":{"patterns":[{"name":"string.quoted.other.sound.action.square-brackets.srt","begin":"\\[","end":"\\]|(?=^[ \\t]*$)","patterns":[{"include":"#formatting"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.srt"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.srt"}}},{"name":"string.quoted.other.sound.action.round-brackets.srt","begin":"\\(","end":"\\)|(?=^[ \\t]*$)","patterns":[{"include":"#formatting"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.srt"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.srt"}}}]},"align":{"name":"meta.tag.override.line-alignment.srt","match":"({)(\\\\a(?:n[1-9]|(10|11|(?!4|8)\\d)))(})","captures":{"1":{"name":"punctuation.definition.tag.begin.srt"},"2":{"name":"entity.name.tag.srt"},"3":{"name":"invalid.deprecated.syntax.tag.srt"},"4":{"name":"punctuation.definition.tag.end.srt"}}},"arrow":{"name":"keyword.operator.timespan.srt","match":"--\u003e","captures":{"0":{"name":"punctuation.definition.separator.srt"}}},"bold":{"contentName":"markup.bold.srt","begin":"(\u003c)([Bb])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Bb])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.b.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.b.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.b.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.b.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"dash":{"name":"markup.quote.quotation-dash.srt","match":"(?:^|\\G)(-)","captures":{"1":{"name":"punctuation.section.quote.srt"}}},"escapes":{"patterns":[{"name":"constant.character.whitespace.escape.hard-space.srt","match":"(\\\\)h","captures":{"1":{"name":"punctuation.definition.escape.backslash.srt"}}},{"name":"constant.character.whitespace.escape.forced-newline.srt","match":"(\\\\)N","captures":{"1":{"name":"punctuation.definition.escape.backslash.srt"}}}]},"font":{"contentName":"markup.other.font.srt","begin":"(?i)(\u003c)(font)(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(?i)(\u003c/)(font)[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.font.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.font.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.font.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.font.html.srt"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"formatting":{"patterns":[{"include":"#bold"},{"include":"#italic"},{"include":"#underline"},{"include":"#strike"},{"include":"#font"},{"include":"#align"}]},"italic":{"contentName":"markup.italic.srt","begin":"(\u003c)([Ii])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Ii])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.i.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.i.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.i.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.i.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"linePosition":{"name":"meta.line-position.${2:/downcase}-axis.srt","match":"\\b(([XY])[0-9]+)(:)(?:([-+]?[0-9]+\\.[0-9]+)|([-+]?[0-9]+))\\b","captures":{"1":{"name":"variable.parameter.position.srt"},"3":{"name":"keyword.operator.assignment.key-value.colon.srt"},"4":{"name":"constant.numeric.float.srt"},"5":{"name":"constant.numeric.integer.srt"}}},"lyrics":{"name":"markup.quote.lyrics.srt","begin":"(♪+)[ \\t]*","end":"[ \\t]*(♪+)|(?=^-|^[ \\t]*$|\\s*\u003c/)","patterns":[{"include":"#formatting"}],"beginCaptures":{"1":{"name":"punctuation.definition.lyrics.begin.srt"}},"endCaptures":{"1":{"name":"punctuation.definition.lyrics.end.srt"}}},"main":{"patterns":[{"include":"#subtitle"}]},"speaker":{"match":"(?:^|\\G)(-[ \\t]*)?((?:[^-\u003c\u003e\\s:][^:]*(?=:[ \\t]*\\S)|[^-\u003c\u003e\\s:a-z][^:a-z]*)(:))(?=$|\\s)","captures":{"1":{"patterns":[{"include":"#dash"}]},"2":{"name":"entity.name.speaker.srt","patterns":[{"include":"#formatting"},{"include":"#action"}]},"3":{"name":"punctuation.separator.speaker.colon.srt"}}},"strike":{"contentName":"markup.strike.srt","begin":"(\u003c)([Ss])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Ss])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.s.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.s.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.s.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.s.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}},"subtitle":{"name":"meta.subtitle.srt","begin":"^(?:?)(\\d+)$","end":"^[ \\t]*$","patterns":[{"begin":"\\G\\s*","end":"(?!\\G)$","patterns":[{"name":"meta.timespan.empty.srt","contentName":"comment.block.ignored.hidden-subtitle.srt","begin":"(?x) ^\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3}) \\x20(--\u003e)\\x20 (\\1)\n((?:\\s*[XY][0-9]+:[-+]?[0-9]+(?:\\.[0-9]+)?)++)?\n[ \\t]* $ ","end":"(?=^[ \\t]*$)","beginCaptures":{"1":{"name":"constant.numeric.time.timecode.start.srt","patterns":[{"include":"#timecode"}]},"2":{"patterns":[{"include":"#arrow"}]},"3":{"name":"constant.numeric.time.timecode.end.srt","patterns":[{"include":"#timecode"}]},"4":{"patterns":[{"include":"#linePosition"}]}}},{"name":"meta.timespan.srt","match":"(?x) ^\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3}) \\x20(--\u003e)\\x20\n([0-9]{2}:[0-9]{2}:[0-9]{2}[,.][0-9]{3})\n((?:\\s*[XY][0-9]+:[-+]?[0-9]+(?:\\.[0-9]+)?)++)?\n[ \\t]* $ ","captures":{"1":{"name":"constant.numeric.time.timecode.start.srt","patterns":[{"include":"#timecode"}]},"2":{"patterns":[{"include":"#arrow"}]},"3":{"name":"constant.numeric.time.timecode.end.srt","patterns":[{"include":"#timecode"}]},"4":{"patterns":[{"include":"#linePosition"}]}}},{"include":"#text"}]},{"include":"#text"}],"beginCaptures":{"1":{"name":"entity.name.section.srt"}}},"text":{"patterns":[{"include":"#speaker"},{"include":"#dash"},{"include":"#action"},{"include":"#lyrics"},{"include":"#formatting"},{"include":"#escapes"}]},"timecode":{"patterns":[{"name":"invalid.illegal.syntax.decimal-separator.srt","match":"\\."},{"name":"invalid.illegal.value.out-of-range.vtt","match":"(?\u003c=:)([6-9][0-9])"}]},"underline":{"contentName":"markup.underline.srt","begin":"(\u003c)([Uu])(?=$|\u003e|\\s)([^\u003e]*)(\u003e)","end":"(\u003c/)([Uu])[ \\t]*(\u003e)|(?=^[ \\t]*$)","patterns":[{"include":"#text"}],"beginCaptures":{"0":{"name":"meta.tag.inline.u.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.u.html.srt"},"3":{"patterns":[{"include":"text.html.basic#tag-stuff"}]},"4":{"name":"punctuation.definition.tag.end.html.srt"}},"endCaptures":{"0":{"name":"meta.tag.inline.u.html.srt"},"1":{"name":"punctuation.definition.tag.begin.html.srt"},"2":{"name":"entity.name.tag.inline.u.html"},"3":{"name":"punctuation.definition.tag.end.html.srt"}}}}}
@@ -1 +1 @@
1
- {"name":"TeX","scopeName":"text.tex","patterns":[{"name":"keyword.control.tex","match":"(\\\\)(backmatter|else|fi|frontmatter|ftrue|mainmatter|if(case|cat|dim|eof|false|hbox|hmode|inner|mmode|num|odd|undefined|vbox|vmode|void|x)?)\\b","captures":{"1":{"name":"punctuation.definition.keyword.tex"}}},{"name":"meta.catcode.tex","match":"((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)","captures":{"1":{"name":"keyword.control.catcode.tex"},"2":{"name":"punctuation.definition.keyword.tex"},"3":{"name":"punctuation.separator.key-value.tex"},"4":{"name":"constant.numeric.category.tex"}}},{"begin":"(^[ \\t]+)?(?=%)","end":"(?!\\G)","patterns":[{"name":"comment.line.percentage.semicolon.texshop.tex","begin":"%:","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.tex"}}},{"name":"comment.line.percentage.directive.texshop.tex","begin":"^(%!TEX) (\\S*) =","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.tex"}}},{"name":"comment.line.percentage.tex","begin":"%","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.tex"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.tex"}}},{"name":"meta.group.braces.tex","begin":"\\{","end":"\\}","patterns":[{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.tex"}}},{"name":"punctuation.definition.brackets.tex","match":"[\\[\\]]"},{"name":"string.other.math.block.tex","begin":"\\$\\$","end":"\\$\\$","patterns":[{"include":"#math"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.tex"}}},{"name":"constant.character.newline.tex","match":"\\\\\\\\"},{"name":"string.other.math.tex","begin":"\\$","end":"\\$","patterns":[{"name":"constant.character.escape.tex","match":"\\\\\\$"},{"include":"#math"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.tex"}}},{"name":"support.function.general.tex","match":"(\\\\)[A-Za-z@]+","captures":{"1":{"name":"punctuation.definition.function.tex"}}},{"name":"constant.character.escape.tex","match":"(\\\\)[^a-zA-Z@]","captures":{"1":{"name":"punctuation.definition.keyword.tex"}}},{"name":"meta.placeholder.greek.tex","match":"«press a-z and space for greek letter»[a-zA-Z]*"}],"repository":{"math":{"patterns":[{"name":"constant.character.math.tex","match":"(\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.character.math.tex","match":"(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.other.math.tex","match":"(\\\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"meta.embedded.line.r","contentName":"support.function.sexpr.math.tex","begin":"((\\\\)Sexpr(\\{))","end":"(((\\})))","patterns":[{"name":"source.r","begin":"\\G(?!\\})","end":"(?=\\})","patterns":[{"include":"source.r"}]}],"beginCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.definition.function.math.tex"},"3":{"name":"punctuation.section.embedded.begin.math.tex"}},"endCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.section.embedded.end.math.tex"},"3":{"name":"source.r"}}},{"name":"constant.other.general.math.tex","match":"(\\\\)([^a-zA-Z]|[A-Za-z]+)(?=\\b|\\}|\\]|\\^|\\_)","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.numeric.math.tex","match":"(([0-9]*[\\.][0-9]+)|[0-9]+)"},{"name":"meta.placeholder.greek.math.tex","match":"«press a-z and space for greek letter»[a-zA-Z]*"}]}}}
1
+ {"name":"TeX","scopeName":"text.tex","patterns":[{"name":"keyword.control.tex","match":"(\\\\)(backmatter|csname|else|endcsname|fi|frontmatter|mainmatter|unless|if(case|cat|csname|defined|dim|eof|false|fontchar|hbox|hmode|inner|mmode|num|odd|true|vbox|vmode|void|x)?)\\b","captures":{"1":{"name":"punctuation.definition.keyword.tex"}}},{"name":"meta.catcode.tex","match":"((\\\\)catcode)`(?:\\\\)?.(=)(\\d+)","captures":{"1":{"name":"keyword.control.catcode.tex"},"2":{"name":"punctuation.definition.keyword.tex"},"3":{"name":"punctuation.separator.key-value.tex"},"4":{"name":"constant.numeric.category.tex"}}},{"begin":"(^[ \\t]+)?(?=%)","end":"(?!\\G)","patterns":[{"name":"comment.line.percentage.semicolon.texshop.tex","begin":"%:","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.tex"}}},{"name":"comment.line.percentage.directive.texshop.tex","begin":"^(%!TEX) (\\S*) =","end":"$\\n?","beginCaptures":{"1":{"name":"punctuation.definition.comment.tex"}}},{"name":"comment.line.percentage.tex","begin":"%","end":"$\\n?","beginCaptures":{"0":{"name":"punctuation.definition.comment.tex"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.tex"}}},{"name":"meta.group.braces.tex","begin":"\\{","end":"\\}","patterns":[{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.tex"}}},{"name":"punctuation.definition.brackets.tex","match":"[\\[\\]]"},{"name":"string.other.math.block.tex","begin":"\\$\\$","end":"\\$\\$","patterns":[{"include":"#math"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.tex"}}},{"name":"constant.character.newline.tex","match":"\\\\\\\\"},{"name":"string.other.math.tex","begin":"\\$","end":"\\$","patterns":[{"name":"constant.character.escape.tex","match":"\\\\\\$"},{"include":"#math"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tex"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.tex"}}},{"name":"support.function.general.tex","match":"(\\\\)[A-Za-z@]+","captures":{"1":{"name":"punctuation.definition.function.tex"}}},{"name":"constant.character.escape.tex","match":"(\\\\)[^a-zA-Z@]","captures":{"1":{"name":"punctuation.definition.keyword.tex"}}},{"name":"meta.placeholder.greek.tex","match":"«press a-z and space for greek letter»[a-zA-Z]*"}],"repository":{"math":{"patterns":[{"name":"constant.character.math.tex","match":"(\\\\)(s(s(earrow|warrow|lash)|h(ort(downarrow|uparrow|parallel|leftarrow|rightarrow|mid)|arp)|tar|i(gma|m(eq)?)|u(cc(sim|n(sim|approx)|curlyeq|eq|approx)?|pset(neq(q)?|plus(eq)?|eq(q)?)?|rd|m|bset(neq(q)?|plus(eq)?|eq(q)?)?)|p(hericalangle|adesuit)|e(tminus|arrow)|q(su(pset(eq)?|bset(eq)?)|c(up|ap)|uare)|warrow|m(ile|all(s(etminus|mile)|frown)))|h(slash|ook(leftarrow|rightarrow)|eartsuit|bar)|R(sh|ightarrow|e|bag)|Gam(e|ma)|n(s(hort(parallel|mid)|im|u(cc(eq)?|pseteq(q)?|bseteq))|Rightarrow|n(earrow|warrow)|cong|triangle(left(eq(slant)?)?|right(eq(slant)?)?)|i(plus)?|u|p(lus|arallel|rec(eq)?)|e(q|arrow|g|xists)|v(dash|Dash)|warrow|le(ss|q(slant|q)?|ft(arrow|rightarrow))|a(tural|bla)|VDash|rightarrow|g(tr|eq(slant|q)?)|mid|Left(arrow|rightarrow))|c(hi|irc(eq|le(d(circ|S|dash|ast)|arrow(left|right)))?|o(ng|prod|lon|mplement)|dot(s|p)?|u(p|r(vearrow(left|right)|ly(eq(succ|prec)|vee(downarrow|uparrow)?|wedge(downarrow|uparrow)?)))|enterdot|lubsuit|ap)|Xi|Maps(to(char)?|from(char)?)|B(ox|umpeq|bbk)|t(h(ick(sim|approx)|e(ta|refore))|imes|op|wohead(leftarrow|rightarrow)|a(u|lloblong)|riangle(down|q|left(eq(slant)?)?|right(eq(slant)?)?)?)|i(n(t(er(cal|leave))?|plus|fty)?|ota|math)|S(igma|u(pset|bset))|zeta|o(slash|times|int|dot|plus|vee|wedge|lessthan|greaterthan|m(inus|ega)|b(slash|long|ar))|d(i(v(ideontimes)?|a(g(down|up)|mond(suit)?)|gamma)|o(t(plus|eq(dot)?)|ublebarwedge|wn(harpoon(left|right)|downarrows|arrow))|d(ots|agger)|elta|a(sh(v|leftarrow|rightarrow)|leth|gger))|Y(down|up|left|right)|C(up|ap)|u(n(lhd|rhd)|p(silon|harpoon(left|right)|downarrow|uparrows|lus|arrow)|lcorner|rcorner)|jmath|Theta|Im|p(si|hi|i(tchfork)?|erp|ar(tial|allel)|r(ime|o(d|pto)|ec(sim|n(sim|approx)|curlyeq|eq|approx)?)|m)|e(t(h|a)|psilon|q(slant(less|gtr)|circ|uiv)|ll|xists|mptyset)|Omega|D(iamond|ownarrow|elta)|v(d(ots|ash)|ee(bar)?|Dash|ar(s(igma|u(psetneq(q)?|bsetneq(q)?))|nothing|curly(vee|wedge)|t(heta|imes|riangle(left|right)?)|o(slash|circle|times|dot|plus|vee|wedge|lessthan|ast|greaterthan|minus|b(slash|ar))|p(hi|i|ropto)|epsilon|kappa|rho|bigcirc))|kappa|Up(silon|downarrow|arrow)|Join|f(orall|lat|a(t(s(emi|lash)|bslash)|llingdotseq)|rown)|P(si|hi|i)|w(p|edge|r)|l(hd|n(sim|eq(q)?|approx)|ceil|times|ightning|o(ng(left(arrow|rightarrow)|rightarrow|maps(to|from))|zenge|oparrow(left|right))|dot(s|p)|e(ss(sim|dot|eq(qgtr|gtr)|approx|gtr)|q(slant|q)?|ft(slice|harpoon(down|up)|threetimes|leftarrows|arrow(t(ail|riangle))?|right(squigarrow|harpoons|arrow(s|triangle|eq)?))|adsto)|vertneqq|floor|l(c(orner|eil)|floor|l|bracket)?|a(ngle|mbda)|rcorner|bag)|a(s(ymp|t)|ngle|pprox(eq)?|l(pha|eph)|rrownot|malg)|V(dash|vdash)|r(h(o|d)|ceil|times|i(singdotseq|ght(s(quigarrow|lice)|harpoon(down|up)|threetimes|left(harpoons|arrows)|arrow(t(ail|riangle))?|rightarrows))|floor|angle|r(ceil|parenthesis|floor|bracket)|bag)|g(n(sim|eq(q)?|approx)|tr(sim|dot|eq(qless|less)|less|approx)|imel|eq(slant|q)?|vertneqq|amma|g(g)?)|Finv|xi|m(ho|i(nuso|d)|o(o|dels)|u(ltimap)?|p|e(asuredangle|rge)|aps(to|from(char)?))|b(i(n(dnasrepma|ampersand)|g(s(tar|qc(up|ap))|nplus|c(irc|u(p|rly(vee|wedge))|ap)|triangle(down|up)|interleave|o(times|dot|plus)|uplus|parallel|vee|wedge|box))|o(t|wtie|x(slash|circle|times|dot|plus|empty|ast|minus|b(slash|ox|ar)))|u(llet|mpeq)|e(cause|t(h|ween|a))|lack(square|triangle(down|left|right)?|lozenge)|a(ck(s(im(eq)?|lash)|prime|epsilon)|r(o|wedge))|bslash)|L(sh|ong(left(arrow|rightarrow)|rightarrow|maps(to|from))|eft(arrow|rightarrow)|leftarrow|ambda|bag)|Arrownot)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.character.math.tex","match":"(\\\\)(sum|prod|coprod|int|oint|bigcap|bigcup|bigsqcup|bigvee|bigwedge|bigodot|bigotimes|bogoplus|biguplus)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.other.math.tex","match":"(\\\\)(arccos|arcsin|arctan|arg|cos|cosh|cot|coth|csc|deg|det|dim|exp|gcd|hom|inf|ker|lg|lim|liminf|limsup|ln|log|max|min|pr|sec|sin|sinh|sup|tan|tanh)\\b","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"meta.embedded.line.r","contentName":"support.function.sexpr.math.tex","begin":"((\\\\)Sexpr(\\{))","end":"(((\\})))","patterns":[{"name":"source.r","begin":"\\G(?!\\})","end":"(?=\\})","patterns":[{"include":"source.r"}]}],"beginCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.definition.function.math.tex"},"3":{"name":"punctuation.section.embedded.begin.math.tex"}},"endCaptures":{"1":{"name":"support.function.sexpr.math.tex"},"2":{"name":"punctuation.section.embedded.end.math.tex"},"3":{"name":"source.r"}}},{"name":"constant.other.general.math.tex","match":"(\\\\)([^a-zA-Z]|[A-Za-z]+)(?=\\b|\\}|\\]|\\^|\\_)","captures":{"1":{"name":"punctuation.definition.constant.math.tex"}}},{"name":"constant.numeric.math.tex","match":"(([0-9]*[\\.][0-9]+)|[0-9]+)"},{"name":"meta.placeholder.greek.math.tex","match":"«press a-z and space for greek letter»[a-zA-Z]*"}]}}}
@@ -0,0 +1 @@
1
+ {"scopeName":"text.valve-cfg","patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#cvar"},{"include":"#value"}],"repository":{"comments":{"patterns":[{"name":"comment.valve-cfg","match":"\\/\\/.*"},{"name":"comment.block.valve-cfg","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"comment.valve-cfg"}}}]},"cvar":{"patterns":[{"match":"^\\s*(\"[A-Za-z0-9_-]*\")","captures":{"1":{"name":"support.type.property-name.valve-cfg"}}},{"match":"^\\s*('[A-Za-z0-9_-]*')","captures":{"1":{"name":"support.type.property-name.valve-cfg"}}},{"match":"^\\s*([A-Za-z0-9_-]*)","captures":{"1":{"name":"support.type.property-name.valve-cfg"}}}]},"function":{"patterns":[{"name":"support.function.valve-cfg","match":"^\\s*\\b(alias|bind_osx|bind|clear|echo|execifexists|execwithwhitelist|exec|host_writeconfig_ss|host_writeconfig|key_updatelayout|playvol|say_team|say|unbindalljoystick|unbindallmousekeyboard|unbindall)","captures":{"1":{"name":"support.function.valve-cfg"}}}]},"numeric-literal":{"patterns":[{"name":"constant.numeric.float.sourcepawn","match":"[0-9]+\\.[0-9]+"},{"name":"constant.numeric.sourcepawn","match":"\\b0b[0-1]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b0o[0-7]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b0x[0-9a-fA-F]+\\b"},{"name":"constant.numeric.integer.sourcepawn","match":"\\b\\d+\\b"},{"name":"invalid.illegal.constant.sourcepawn","match":"\\b\\d+\\w+\\b"}]},"strings":{"name":"string.quoted.double.valve-cfg","begin":"\"","end":"\"","patterns":[{"name":"variable","match":"\\\\."}]},"value":{"begin":".","end":"\\n","patterns":[{"include":"#numeric-literal"},{"include":"#strings"}]}}}
@@ -0,0 +1 @@
1
+ {"scopeName":"text.valve-kv","patterns":[{"include":"#value"},{"include":"#key"},{"include":"#comments"}],"repository":{"comments":{"patterns":[{"name":"comment.line.valve-kv","match":"//(.*)$"},{"name":"comment.line.number-sign","match":"#(.*)$"},{"name":"comment.block.valve-kv","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"comment.block.valve-kv"}}}]},"key":{"patterns":[{"name":"support.type.property-name.double.valve-kv","match":"(\"[^\"]*\")"},{"name":"support.type.property-name.single.valve-kv","match":"('[^']*')"}]},"placeholder":{"match":"({)([^\\}]*)(})","captures":{"1":{},"2":{"patterns":[{"name":"constant.numeric.valve-kv","match":"\\d+"},{"name":"constant.character.escape.valve-kv","match":"\\w+"},{"match":"([\\d]+):([A-Za-z]+)","captures":{"1":{"name":"constant.numeric.valve-kv"},"2":{"name":"string.regexp.valve-kv"}}}]},"3":{}}},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.valve-kv","match":"\\\\(?:[abefnrt'\"\\\\]|(?:x[a-zA-Z0-9]{0,2}|\\d+);?)"},{"name":"invalid.illegal.unknown-escape.valve-kv","match":"\\\\."}]},"value":{"patterns":[{"name":"meta.structure.dictionnary.valve-kv","begin":"{","end":"}","patterns":[{"include":"#source"}]},{"name":"string.quoted.double.valve-kv","begin":"(\"[^\"]*\")([^{\"]*)(\")","end":"\"","patterns":[{"name":"constant.character.escape.valve-kv","match":"\\\\\""},{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"support.type.property-name.double.valve-kv"},"2":{"patterns":[{"include":"#comments"}]},"3":{"name":"string.quoted.double.valve-kv"}},"endCaptures":{"0":{"name":"string.quoted.double.valve-kv"}}},{"name":"string.quoted.single.valve-kv","begin":"('[^']*')([^{']*)(')","end":"'","patterns":[{"name":"constant.character.escape.valve-kv","match":"\\\\'"},{"include":"#placeholder"}],"beginCaptures":{"1":{"name":"support.type.property-name.single.valve-kv"},"2":{"patterns":[{"include":"#comments"}]},"3":{"name":"string.quoted.single.valve-kv"}},"endCaptures":{"0":{"name":"string.quoted.single.valve-kv"}}}]}}}
data/grammars/version CHANGED
@@ -1 +1 @@
1
- 7.27.0
1
+ 7.29.0
data/lib/linguist/VERSION CHANGED
@@ -1 +1 @@
1
- 7.27.0
1
+ 7.29.0
@@ -68,6 +68,7 @@ module Linguist
68
68
  pdm_lock? ||
69
69
  esy_lock? ||
70
70
  npm_shrinkwrap_or_package_lock? ||
71
+ pnpm_lock? ||
71
72
  terraform_lock? ||
72
73
  generated_yarn_plugnplay? ||
73
74
  godeps? ||
@@ -107,7 +108,8 @@ module Linguist
107
108
  generated_haxe? ||
108
109
  generated_jooq? ||
109
110
  generated_pascal_tlb? ||
110
- generated_sorbet_rbi?
111
+ generated_sorbet_rbi? ||
112
+ generated_sqlx_query?
111
113
  end
112
114
 
113
115
  # Internal: Is the blob an Xcode file?
@@ -301,7 +303,7 @@ module Linguist
301
303
 
302
304
  # Type 1 and Type 42 fonts converted to PostScript are stored as hex-encoded byte streams; these
303
305
  # streams are always preceded the `eexec` operator (if Type 1), or the `/sfnts` key (if Type 42).
304
- return true if data =~ /(\n|\r\n|\r)\s*(?:currentfile eexec\s+|\/sfnts\s+\[\1<)\h{8,}\1/
306
+ return true if data =~ /^\s*(?:currentfile eexec\s+|\/sfnts\s+\[\s<)/
305
307
 
306
308
  # We analyze the "%%Creator:" comment, which contains the author/generator
307
309
  # of the file. If there is one, it should be in one of the first few lines.
@@ -432,6 +434,13 @@ module Linguist
432
434
  !!name.match(/npm-shrinkwrap\.json/) || !!name.match(/package-lock\.json/)
433
435
  end
434
436
 
437
+ # Internal: Is the blob a generated pnpm lockfile?
438
+ #
439
+ # Returns true or false.
440
+ def pnpm_lock?
441
+ !!name.match(/pnpm-lock\.yaml/)
442
+ end
443
+
435
444
  # Internal: Is the blob a generated Yarn Plug'n'Play?
436
445
  #
437
446
  # Returns true or false.
@@ -693,8 +702,8 @@ module Linguist
693
702
  def generated_gimp?
694
703
  return false unless ['.c', '.h'].include? extname
695
704
  return false unless lines.count > 0
696
- return lines[0].match(/\/\* GIMP [a-zA-Z0-9\- ]+ C\-Source image dump \(.+?\.c\) \*\//) ||
697
- lines[0].match(/\/\* GIMP header image file format \([a-zA-Z0-9\- ]+\)\: .+?\.h \*\//)
705
+ return lines[0].match(/^\/\* GIMP [a-zA-Z0-9\- ]+ C\-Source image dump \(.+?\.c\) \*\//) ||
706
+ lines[0].match(/^\/\* GIMP header image file format \([a-zA-Z0-9\- ]+\)\: .+?\.h \*\//)
698
707
  end
699
708
 
700
709
  # Internal: Is this a generated Microsoft Visual Studio 6.0 build file?
@@ -795,7 +804,7 @@ module Linguist
795
804
  return false unless lines.count >= 5
796
805
  lines[0].match?(/^# typed:/) &&
797
806
  lines[2].include?("DO NOT EDIT MANUALLY") &&
798
- lines[4].match?(/^# Please.*run.*`.*tapioca/)
807
+ lines[4].match?(/^# Please (run|instead update this file by running) `bin\/tapioca/)
799
808
  end
800
809
 
801
810
  # Internal: Is this an HTML coverage report?
@@ -825,5 +834,18 @@ module Linguist
825
834
  [key, val]
826
835
  end.select { |x| x.length == 2 }.to_h
827
836
  end
837
+
838
+ # Internal: Is this a generated SQLx query file?
839
+ #
840
+ # SQLx is a Rust SQL library which generates `**/.sqlx/query-*.json` files
841
+ # in offline mode (enabled by default).
842
+ #
843
+ # These are used to be able to compile a project without requiring
844
+ # the development database to be online.
845
+ #
846
+ # Returns true or false.
847
+ def generated_sqlx_query?
848
+ !!name.match(/(?:^|.*\/)\.sqlx\/query-.+\.json$/)
849
+ end
828
850
  end
829
851
  end
@@ -103,7 +103,7 @@ disambiguations:
103
103
  - language: BlitzBasic
104
104
  pattern: '(<^\s*; |End Function)'
105
105
  - language: BitBake
106
- pattern: '^\s*(# |include|require)\b'
106
+ pattern: '^(# |include|require|inherit)\b'
107
107
  - language: Clojure
108
108
  pattern: '\((def|defn|defmacro|let)\s'
109
109
  - extensions: ['.bf']
@@ -320,6 +320,12 @@ disambiguations:
320
320
  rules:
321
321
  - language: GSC
322
322
  named_pattern: gsc
323
+ - extensions: ['.gts']
324
+ rules:
325
+ - language: Gerber Image
326
+ pattern: '^G0.'
327
+ - language: Glimmer TS
328
+ negative_pattern: '^G0.'
323
329
  - extensions: ['.h']
324
330
  rules:
325
331
  - language: Objective-C
@@ -371,6 +377,8 @@ disambiguations:
371
377
  pattern:
372
378
  - '(?i:^\s*\{\$(?:mode|ifdef|undef|define)[ ]+[a-z0-9_]+\})'
373
379
  - '^\s*end[.;]\s*$'
380
+ - language: BitBake
381
+ pattern: '^inherit(\s+[\w.-]+)+\s*$'
374
382
  - extensions: ['.json']
375
383
  rules:
376
384
  - language: OASv2-json
@@ -388,6 +396,12 @@ disambiguations:
388
396
  pattern: '^\.[A-Za-z]{2}(\s|$)'
389
397
  - language: PicoLisp
390
398
  pattern: '^\((de|class|rel|code|data|must)\s'
399
+ - extensions: ['.lean']
400
+ rules:
401
+ - language: Lean
402
+ pattern: '^import [a-z]'
403
+ - language: Lean 4
404
+ pattern: '^import [A-Z]'
391
405
  - extensions: ['.ls']
392
406
  rules:
393
407
  - language: LoomScript
@@ -458,6 +472,12 @@ disambiguations:
458
472
  - language: Modula-2
459
473
  pattern: '^\s*(?i:MODULE|END) [\w\.]+;'
460
474
  - language: [Linux Kernel Module, AMPL]
475
+ - extensions: ['.mojo']
476
+ rules:
477
+ - language: Mojo
478
+ pattern: '^\s*(alias|def|from|fn|import|struct|trait)\s'
479
+ - language: XML
480
+ pattern: '^\s*<\?xml'
461
481
  - extensions: ['.ms']
462
482
  rules:
463
483
  - language: Roff
@@ -829,6 +849,7 @@ named_patterns:
829
849
  - '^[ \t]*catch\s*\('
830
850
  - '^[ \t]*(class|(using[ \t]+)?namespace)\s+\w+'
831
851
  - '^[ \t]*(private|public|protected):$'
852
+ - '__has_cpp_attribute|__cplusplus >'
832
853
  - 'std::\w+'
833
854
  euphoria:
834
855
  - '^\s*namespace\s'
@@ -872,7 +893,7 @@ named_patterns:
872
893
  - '^[ ]*#If Win64\b'
873
894
  - '^[ ]*(?:Dim|Const) [0-9a-zA-Z_]*[ ]*As Long(?:Ptr|Long)\b'
874
895
  # Top module declarations unique to VBA
875
- - '^[ ]*Option (?:Private Module|Compare Database)\b'
896
+ - '^[ ]*Option (?:Private Module|Compare (?:Database|Text|Binary))\b'
876
897
  # General VBA libraries and objects
877
898
  - '(?: |\()(?:Access|Excel|Outlook|PowerPoint|Visio|Word|VBIDE)\.\w'
878
899
  - '\b(?:(?:Active)?VBProjects?|VBComponents?|Application\.(?:VBE|ScreenUpdating))\b'