Skip to content

Commit 2a03ec1

Browse files
committed
Regenerate for linguist@9.4.0
* add `source.algol60`, `source.ash`, `source.b`, `source.bru`, `source.c3`, `source.cj`, `source.cooklang`, `source.cql`, `source.csv`, `source.flix`, `source.go-template`, `source.hurl`, `source.jac`, `source.kcl`, `source.langium`, `source.lp`, `source.mermaid.c4c-diagram`, `source.mermaid.quad-chart`, `source.mermaid.sankey`, `source.mermaid.timeline`, `source.mermaid.zenuml`, `source.nickel`, `source.quakec`, `source.rascript`, `source.rosmsg`, `source.surrealql`, `source.teal`, `source.tmdl`, `source.tsv`, `source.vb6`, `source.vcl`, `text.git-commit`, `text.k`, `text.source.mps`. * remove `source.generic-db`, `source.varnish.vcl`, `source.vue` * update a bunch of grammars For more info, see: * [`github-linguist/linguist@9.4.0`](https://github.com/github-linguist/linguist/releases/tag/v9.4.0)
1 parent e4722d6 commit 2a03ec1

141 files changed

Lines changed: 17460 additions & 4059 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

lang/injections.etc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const grammar = {
1616
],
1717
repository: {
1818
scopeHack: {
19-
begin: '\\A(?:\\xC2\\xAD|\\xAD){50}',
19+
begin: '\\A(?:\\xC2\\xAD|\\x{AD}){50}',
2020
end: '(?=A)B',
2121
patterns: [
2222
{

lang/source.abl.js

Lines changed: 400 additions & 192 deletions
Large diffs are not rendered by default.

lang/source.agda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const grammar = {
5555
},
5656
{
5757
match:
58-
'(?<=^|[[:space:]\\(\\){}])(abstract|constructor|data|do|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|interleaved|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)(?=$|[[:space:]\\(\\){}])',
58+
'(?<=^|[[:space:]\\(\\){}])(abstract|codata|coinductive|constructor|data|do|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|interleaved|let|macro|module|mutual|no-eta-equality|opaque|open|overlap|pattern|postulate|primitive|private|public|quote|quoteTerm|record|renaming|rewrite|syntax|tactic|unfolding|unquote|unquoteDecl|unquoteDef|using|variable|where|with)(?=$|[[:space:]\\(\\){}])',
5959
name: 'keyword.other.agda'
6060
}
6161
],

lang/source.al.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const grammar = {
3333
},
3434
{
3535
match:
36-
'\\b(?i:(Action|ActionRef|Array|Automation|BigInteger|BigText|SecretText|Blob|Boolean|Byte|Char|ClientType|Code|Codeunit|CompletionTriggerErrorLevel|ConnectionType|CustomAction|Database|DataClassification|DataScope|DataTransfer|Date|DateFormula|DateTime|Decimal|DefaultLayout|Dialog|Dictionary|DotNet|DotNetAssembly|DotNetTypeDeclaration|Duration|Enum|ErrorInfo|ErrorType|ExecutionContext|ExecutionMode|FieldClass|FieldRef|FieldType|File|FilterPageBuilder|Guid|InStream|Integer|IsolationLevel|Joker|KeyRef|List|Media|MediaSet|ModuleDependencyInfo|ModuleInfo|None|Notification|NotificationScope|ObjectType|Option|OutStream|Page|PageResult|Query|Record|RecordId|RecordRef|Report|ReportFormat|SecurityFilter|SecurityFiltering|SystemAction|Table|TableConnectionType|TableFilter|TestAction|TestField|TestFilterField|TestPage|TestPermissions|TestRequestPage|Text|TextBuilder|TextConst|TextEncoding|Time|TransactionModel|TransactionType|Variant|Verbosity|Version|XmlPort|HttpContent|HttpHeaders|HttpClient|HttpRequestMessage|HttpResponseMessage|JsonToken|JsonValue|JsonArray|JsonObject|View|Views|XmlAttribute|XmlAttributeCollection|XmlComment|XmlCData|XmlDeclaration|XmlDocument|XmlDocumentType|XmlElement|XmlNamespaceManager|XmlNameTable|XmlNode|XmlNodeList|XmlProcessingInstruction|XmlReadOptions|XmlText|XmlWriteOptions|WebServiceActionContext|WebServiceActionResultCode|SessionSettings|PageBackgroundTaskErrorLevel))\\b',
36+
'\\b(?i:(Action|ActionRef|AnalysisView|AnalysisViews|Array|Automation|BigInteger|BigText|SecretText|Blob|Boolean|Byte|Char|ClientType|Code|Codeunit|CompletionTriggerErrorLevel|ConnectionType|CustomAction|Database|DataClassification|DataScope|DataTransfer|Date|DateFormula|DateTime|Decimal|DefaultLayout|Dialog|Dictionary|DotNet|DotNetAssembly|DotNetTypeDeclaration|Duration|Enum|ErrorInfo|ErrorType|ExecutionContext|ExecutionMode|FieldClass|FieldRef|FieldType|File|FilterPageBuilder|Guid|InStream|Integer|IsolationLevel|Joker|KeyRef|List|Media|MediaSet|ModuleDependencyInfo|ModuleInfo|None|Notification|NotificationScope|ObjectType|Option|OutStream|Page|PageResult|Query|Record|RecordId|RecordRef|Report|ReportFormat|SecurityFilter|SecurityFiltering|SystemAction|Table|TableConnectionType|TableFilter|TestAction|TestField|TestFilterField|TestPage|TestPermissions|TestRequestPage|Text|TextBuilder|TextConst|TextEncoding|Time|TransactionModel|TransactionType|Variant|Verbosity|Version|XmlPort|HttpContent|HttpHeaders|HttpClient|HttpRequestMessage|HttpResponseMessage|JsonToken|JsonValue|JsonArray|JsonObject|View|Views|XmlAttribute|XmlAttributeCollection|XmlComment|XmlCData|XmlDeclaration|XmlDocument|XmlDocumentType|XmlElement|XmlNamespaceManager|XmlNameTable|XmlNode|XmlNodeList|XmlProcessingInstruction|XmlReadOptions|XmlText|XmlWriteOptions|WebServiceActionContext|WebServiceActionResultCode|SessionSettings|PageBackgroundTaskErrorLevel))\\b',
3737
name: 'keyword.other.builtintypes.al'
3838
},
3939
{match: '\\b([<>]=|<>|<|>)\\b', name: 'keyword.operators.comparison.al'},

lang/source.algol60.js

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// This is a TextMate grammar distributed by `starry-night`.
2+
// This grammar is developed at
3+
// <https://github.com/PolariTOON/language-algol60>
4+
// and licensed `mit`.
5+
// See <https://github.com/wooorm/starry-night> for more info.
6+
/**
7+
* @import {Grammar} from '@wooorm/starry-night'
8+
*/
9+
10+
/** @type {Grammar} */
11+
const grammar = {
12+
extensions: ['.alg'],
13+
names: ['algol'],
14+
patterns: [
15+
{include: '#comments'},
16+
{include: '#operators'},
17+
{include: '#separators'},
18+
{include: '#groups'},
19+
{include: '#keywords'},
20+
{include: '#constants'},
21+
{include: '#numbers'},
22+
{include: '#strings'},
23+
{include: '#identifiers'}
24+
],
25+
repository: {
26+
comments: {
27+
patterns: [
28+
{
29+
begin: '\\bcomment\\b',
30+
beginCaptures: {0: {name: 'keyword.control.algol60'}},
31+
contentName: 'comment.block.algol60',
32+
end: '(?=;)'
33+
}
34+
]
35+
},
36+
constants: {
37+
patterns: [
38+
{match: '\\bfalse\\b', name: 'constant.language.false.algol60'},
39+
{match: '\\btrue\\b', name: 'constant.language.true.algol60'},
40+
{match: '\\bBoolean\\b', name: 'storage.type.bool.algol60'},
41+
{match: '\\binteger\\b', name: 'storage.type.int.algol60'},
42+
{match: '\\breal\\b', name: 'storage.type.re.algol60'},
43+
{match: '\\bstring\\b', name: 'storage.type.str.algol60'},
44+
{match: '\\blabel\\b', name: 'storage.type.lbl.algol60'},
45+
{
46+
match:
47+
'\\b(abs|arctan|cos|entier|epsilon|exp|fault|iabs|inchar|ininteger|inreal|length|ln|maxint|maxreal|minreal|outchar|outinteger|outreal|outstring|outterminator|sign|sin|sqrt|stop)\\b',
48+
name: 'variable.language.function.algol60'
49+
}
50+
]
51+
},
52+
groups: {
53+
patterns: [
54+
{match: '\\(|\\)', name: 'meta.brace.round.algol60'},
55+
{match: '\\[|\\]', name: 'meta.brace.square.algol60'}
56+
]
57+
},
58+
identifiers: {
59+
patterns: [
60+
{
61+
match: '\\b[A-Za-z][0-9A-Za-z]*\\b',
62+
name: 'variable.other.identifier.algol60'
63+
}
64+
]
65+
},
66+
keywords: {
67+
patterns: [
68+
{
69+
match:
70+
'\\b(array|begin|do|else|end|for|go|goto|if|own|procedure|step|switch|then|to|until|value|while)\\b',
71+
name: 'keyword.control.algol60'
72+
}
73+
]
74+
},
75+
numbers: {
76+
patterns: [
77+
{
78+
match:
79+
'\\b(\\+|−|-)?([0-9]+(\\.[0-9]+)?((⏨|e)(\\+|−|-)?[0-9]+)?|\\.[0-9]+((⏨|e)(\\+|−|-)?[0-9]+)?|⏨(\\+|−|-)?[0-9]+)\\b',
80+
name: 'constant.numeric.decimal.algol60'
81+
}
82+
]
83+
},
84+
operators: {
85+
patterns: [
86+
{
87+
match: '=|≠|<>|<|≥|>=|>|≤|<=',
88+
name: 'keyword.operator.relational.algol60'
89+
},
90+
{
91+
match: '≡|<=>|⊃|=>|∨|\\\\/|∧|/\\\\|¬|~',
92+
name: 'keyword.operator.logical.algol60'
93+
},
94+
{match: '≔|:=', name: 'keyword.operator.assignment.algol60'},
95+
{
96+
match: '\\+|−|-|×|\\*|/|÷|//|↑|\\*\\*',
97+
name: 'keyword.operator.arithmetic.algol60'
98+
}
99+
]
100+
},
101+
separators: {
102+
patterns: [
103+
{match: ';', name: 'punctuation.separator.semicolon.algol60'},
104+
{match: ',', name: 'punctuation.separator.comma.algol60'},
105+
{match: ':', name: 'punctuation.separator.colon.algol60'}
106+
]
107+
},
108+
strings: {
109+
patterns: [
110+
{
111+
begin: '⸢|`',
112+
beginCaptures: {
113+
0: {name: 'punctuation.definition.string.begin.algol60'}
114+
},
115+
end: "⸣|'",
116+
endCaptures: {0: {name: 'punctuation.definition.string.end.algol60'}},
117+
name: 'string.quoted.compound.algol60',
118+
patterns: [{include: '#strings'}]
119+
}
120+
]
121+
}
122+
},
123+
scopeName: 'source.algol60'
124+
}
125+
126+
export default grammar

lang/source.apex.js

Lines changed: 66 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ const grammar = {
169169
{include: '#variable-initializer'},
170170
{include: '#constructor-declaration'},
171171
{include: '#method-declaration'},
172+
{include: '#initializer-block'},
172173
{include: '#punctuation-semicolon'}
173174
]
174175
},
@@ -210,7 +211,7 @@ const grammar = {
210211
]
211212
},
212213
'conditional-operator': {
213-
begin: '(?<!\\?)\\?(?!\\?|\\.|\\[)',
214+
begin: '(?<!\\?)\\?(?!\\?|\\.(?!\\d)|\\[)',
214215
beginCaptures: {
215216
0: {name: 'keyword.operator.conditional.question-mark.apex'}
216217
},
@@ -261,6 +262,12 @@ const grammar = {
261262
]
262263
},
263264
directives: {patterns: [{include: '#punctuation-semicolon'}]},
265+
'dml-expression': {
266+
begin: '\\b(delete|insert|undelete|update|upsert)\\b\\s+(?!new\\b)',
267+
beginCaptures: {1: {name: 'support.function.apex'}},
268+
end: '(?<=\\;)',
269+
patterns: [{include: '#expression'}, {include: '#punctuation-semicolon'}]
270+
},
264271
'do-statement': {
265272
begin: '(?<!\\.)\\b(do)\\b',
266273
beginCaptures: {1: {name: 'keyword.control.loop.do.apex'}},
@@ -338,6 +345,7 @@ const grammar = {
338345
expression: {
339346
patterns: [
340347
{include: '#comment'},
348+
{include: '#dml-expression'},
341349
{include: '#merge-expression'},
342350
{include: '#support-expression'},
343351
{include: '#throw-expression'},
@@ -386,12 +394,20 @@ const grammar = {
386394
]
387395
},
388396
'extends-class': {
389-
begin: '(extends)\\b\\s+([_[:alpha:]][_[:alnum:]]*)',
390-
beginCaptures: {
391-
1: {name: 'keyword.other.extends.apex'},
392-
2: {name: 'entity.name.type.extends.apex'}
393-
},
394-
end: '(?={|implements)'
397+
begin: '(extends)\\b\\s+',
398+
beginCaptures: {1: {name: 'keyword.other.extends.apex'}},
399+
end: '(?={|implements)',
400+
patterns: [
401+
{
402+
begin: '(?=[_[:alpha:]][_[:alnum:]]*\\s*\\.)',
403+
end: '(?={|implements)',
404+
patterns: [{include: '#support-type'}, {include: '#type'}]
405+
},
406+
{
407+
captures: {1: {name: 'entity.name.type.extends.apex'}},
408+
match: '([_[:alpha:]][_[:alnum:]]*)'
409+
}
410+
]
395411
},
396412
'field-declaration': {
397413
begin:
@@ -494,12 +510,24 @@ const grammar = {
494510
]
495511
},
496512
'implements-class': {
497-
begin: '(implements)\\b\\s+([_[:alpha:]][_[:alnum:]]*)',
498-
beginCaptures: {
499-
1: {name: 'keyword.other.implements.apex'},
500-
2: {name: 'entity.name.type.implements.apex'}
501-
},
502-
end: '(?={|extends)'
513+
begin: '(implements)\\b',
514+
beginCaptures: {1: {name: 'keyword.other.implements.apex'}},
515+
end: '(?={|extends)',
516+
patterns: [
517+
{
518+
begin: '(?=[_[:alpha:]][_[:alnum:]]*\\s*\\.)',
519+
end: '(?={|extends|,)',
520+
patterns: [{include: '#support-type'}, {include: '#type'}]
521+
},
522+
{
523+
captures: {
524+
1: {name: 'entity.name.type.implements.apex'},
525+
2: {name: 'punctuation.separator.comma.apex'}
526+
},
527+
match: '([_[:alpha:]][_[:alnum:]]*)\\b\\s*(,)?'
528+
},
529+
{include: '#punctuation-comma'}
530+
]
503531
},
504532
'indexer-declaration': {
505533
begin:
@@ -517,6 +545,13 @@ const grammar = {
517545
{include: '#variable-initializer'}
518546
]
519547
},
548+
'initializer-block': {
549+
begin: '\\{',
550+
beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}},
551+
end: '\\}',
552+
endCaptures: {0: {name: 'punctuation.curlybrace.close.apex'}},
553+
patterns: [{include: '#statement'}]
554+
},
520555
'initializer-expression': {
521556
begin: '\\{',
522557
beginCaptures: {0: {name: 'punctuation.curlybrace.open.apex'}},
@@ -865,7 +900,7 @@ const grammar = {
865900
6: {name: 'entity.name.variable.parameter.apex'}
866901
},
867902
match:
868-
'(?x)\n(?:(?:\\b(this)\\b)\\s+)?\n(?<type_name>\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s+\n(\\g<identifier>)'
903+
'(?x)\n(?:(?:\\b(this|final)\\b)\\s+)?\n(?<type_name>\n (?:\n (?:ref\\s+)? # ref return\n (?:\n (?:(?<identifier>@?[_[:alpha:]][_[:alnum:]]*)\\s*\\:\\:\\s*)? # alias-qualification\n (?<name_and_type_args> # identifier + type arguments (if any)\n \\g<identifier>\\s*\n (?<type_args>\\s*<(?:[^<>]|\\g<type_args>)+>\\s*)?\n )\n (?:\\s*\\.\\s*\\g<name_and_type_args>)*\n )\n (?:\\s*\\?\\s*)? # nullable suffix?\n (?:\\s*\\[(?:\\s*,\\s*)*\\]\\s*)* # array suffix?\n )\n)\\s+\n(\\g<identifier>)'
869904
},
870905
'parenthesized-expression': {
871906
begin: '\\(',
@@ -1198,8 +1233,7 @@ const grammar = {
11981233
]
11991234
},
12001235
'switch-statement': {
1201-
begin:
1202-
"(?x)\n(switch)\\b\\s+\n(on)\\b\\s+\n(?:([_.?\\'\\(\\)[:alnum:]]+)\\s*)?\n(\\{)",
1236+
begin: '(?x)\n(switch)\\b\\s+\n(on)\\b\\s+\n(.*)\n(\\{)',
12031237
beginCaptures: {
12041238
1: {name: 'keyword.control.switch.apex'},
12051239
2: {name: 'keyword.control.switch.on.apex'},
@@ -1385,7 +1419,7 @@ const grammar = {
13851419
'type-builtin': {
13861420
captures: {1: {name: 'keyword.type.apex'}},
13871421
match:
1388-
'\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|ID|Integer|Long|Object|String|Time|void)\\b'
1422+
'\\b(Blob|Boolean|byte|Date|Datetime|Decimal|Double|Id|ID|Integer|Long|Object|String|Time|void)\\b'
13891423
},
13901424
'type-declarations': {
13911425
patterns: [
@@ -1459,14 +1493,18 @@ const grammar = {
14591493
1: {name: 'keyword.control.switch.when.apex'},
14601494
2: {name: 'keyword.control.switch.else.apex'}
14611495
},
1462-
end: '(?<=\\})',
1496+
end: '(?=\\})|(?=when\\b)',
14631497
patterns: [{include: '#block'}, {include: '#expression'}]
14641498
},
14651499
'when-multiple-statement': {
14661500
begin: '(when)\\b\\s*',
14671501
beginCaptures: {1: {name: 'keyword.control.switch.when.apex'}},
1468-
end: '(?<=\\})',
1469-
patterns: [{include: '#block'}, {include: '#expression'}]
1502+
end: '(?=\\})|(?=when\\b)',
1503+
patterns: [
1504+
{include: '#block'},
1505+
{include: '#expression'},
1506+
{include: '#punctuation-comma'}
1507+
]
14701508
},
14711509
'when-sobject-statement': {
14721510
begin: '(when)\\b\\s+([_[:alnum:]]+)\\s+([_[:alnum:]]+)\\s*',
@@ -1475,46 +1513,29 @@ const grammar = {
14751513
2: {name: 'storage.type.apex'},
14761514
3: {name: 'entity.name.variable.local.apex'}
14771515
},
1478-
end: '(?<=\\})',
1516+
end: '(?=\\})|(?=when\\b)',
14791517
patterns: [{include: '#block'}, {include: '#expression'}]
14801518
},
14811519
'when-statement': {
1482-
begin: "(when)\\b\\s+([\\'_\\-[:alnum:]]+)\\s*",
1520+
begin: '(when)\\b\\s+([_\\-[:alnum:]]+)\\s*',
14831521
beginCaptures: {
14841522
1: {name: 'keyword.control.switch.when.apex'},
14851523
2: {patterns: [{include: '#expression'}]}
14861524
},
1487-
end: '(?<=\\})',
1525+
end: '(?=\\})|(?=when\\b)',
14881526
patterns: [{include: '#block'}, {include: '#expression'}]
14891527
},
14901528
'when-string': {
1491-
begin: "(when)(\\b\\s*)((\\')[_.\\,\\'\\s*[:alnum:]]+)",
1529+
begin: "(when)\\b\\s*('[^'\\n]*')(\\s*(,)\\s*('[^'\\n]*'))*\\s*",
14921530
beginCaptures: {
14931531
1: {name: 'keyword.control.switch.when.apex'},
1494-
2: {name: 'punctuation.whitespace.apex'},
1495-
3: {
1496-
patterns: [
1497-
{include: '#when-string-statement'},
1498-
{include: '#punctuation-comma'}
1499-
]
1500-
}
1532+
2: {patterns: [{include: '#string-literal'}]},
1533+
4: {patterns: [{include: '#punctuation-comma'}]},
1534+
5: {patterns: [{include: '#string-literal'}]}
15011535
},
1502-
end: '(?<=\\})',
1536+
end: '(?=\\})|(?=when\\b)',
15031537
patterns: [{include: '#block'}, {include: '#expression'}]
15041538
},
1505-
'when-string-statement': {
1506-
patterns: [
1507-
{
1508-
begin: "\\'",
1509-
beginCaptures: {
1510-
0: {name: 'punctuation.definition.string.begin.apex'}
1511-
},
1512-
end: "\\'",
1513-
endCaptures: {0: {name: 'punctuation.definition.string.end.apex'}},
1514-
name: 'string.quoted.single.apex'
1515-
}
1516-
]
1517-
},
15181539
'where-clause': {
15191540
captures: {1: {name: 'keyword.operator.query.where.apex'}},
15201541
match: '\\b(WHERE)\\b\\s*'

0 commit comments

Comments
 (0)