Skip to content

Commit d1cbc6c

Browse files
committed
Regenerate for linguist@9.2.0
* add `source.aiken`, `source.clue`, `source.daslang`, `source.koka`, `source.leo`, `source.m3u`, `source.sail`, `source.torrc`, `source.uplc`, `source.vento`, `source.zmodel` * update a bunch of grammars For more info, see: * [`github-linguist/linguist@9.2.0`](https://github.com/github-linguist/linguist/releases/tag/v9.2.0)
1 parent a429705 commit d1cbc6c

74 files changed

Lines changed: 7856 additions & 2765 deletions

Some content is hidden

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

lang/etc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ const grammar = {
3030
match: '\\b(true|false|TRUE|FALSE)\\b',
3131
name: 'constant.logical.bool.boolean.${1:/downcase}'
3232
},
33+
boolish: {
34+
match: '(?i)\\b(true|false|yes|no|on|off)\\b',
35+
name: 'constant.logical.bool.boolean.${1:/downcase}'
36+
},
3337
bracket: {
3438
patterns: [
3539
{

lang/source.4dm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ const grammar = {
277277
patterns: [
278278
{
279279
match:
280-
'^\\n*[\\t ]*(?i)(If|While|Else|End if|For each|End for each|End for|Begin SQL|End SQL|while|End while|Use|End use|Case of|End case|Repeat|Until|For)\\b',
280+
'^\\n*[\\t ]*(?i)(If|While|Else|End if|For each|End for each|End for|Begin SQL|End SQL|while|End while|Use|End use|Case of|End case|Repeat|Until|For|End try|Try|Catch|Throw|return|continue|break|property|var)\\b',
281281
name: 'keyword.control.4d'
282282
}
283283
]

lang/source.QB64.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const grammar = {
1919
'classic-quickbasic'
2020
],
2121
patterns: [
22-
{match: '\\n', name: 'meta.ending-space'},
22+
{match: '\\r?\\n', name: 'meta.ending-space'},
2323
{include: '#round-brackets'},
2424
{
2525
begin: '^(?=\\t)',
@@ -58,7 +58,7 @@ const grammar = {
5858
5: {name: 'punctuation.definition.parameters.QB64'}
5959
},
6060
match:
61-
'^\\s*((?i:function|sub))\\s*([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\)).*\\n?',
61+
'^\\s*((?i:function|sub))\\s*([a-zA-Z_]\\w*)\\s*(\\()([^)]*)(\\)).*\\r?\\n?',
6262
name: 'meta.function.QB64'
6363
},
6464
{
@@ -75,7 +75,7 @@ const grammar = {
7575
{
7676
begin: "'|",
7777
beginCaptures: {0: {name: 'punctuation.definition.comment.QB64'}},
78-
end: '\\n',
78+
end: '\\r?\\n',
7979
name: 'comment.line.apostrophe.QB64'
8080
}
8181
]

lang/source.abl.js

Lines changed: 467 additions & 274 deletions
Large diffs are not rendered by default.

lang/source.aiken.js

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
// This is a TextMate grammar distributed by `starry-night`.
2+
// This grammar is developed at
3+
// <https://github.com/aiken-lang/vscode-aiken>
4+
// and licensed `apache-2.0`.
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: ['.ak'],
13+
names: ['aiken'],
14+
patterns: [
15+
{include: '#comments'},
16+
{include: '#keywords'},
17+
{include: '#strings'},
18+
{include: '#constant'},
19+
{include: '#entity'}
20+
],
21+
repository: {
22+
binary_number: {
23+
match: '\\b0b[0-1]+\\b',
24+
name: 'constant.numeric.binary.aiken'
25+
},
26+
boolean: {
27+
match: '\\b(True|False)\\b',
28+
name: 'constant.language.boolean.aiken'
29+
},
30+
comments: {patterns: [{match: '//.*', name: 'comment.line.aiken'}]},
31+
constant: {
32+
patterns: [
33+
{include: '#binary_number'},
34+
{include: '#octal_number'},
35+
{include: '#hexadecimal_number'},
36+
{include: '#decimal_number'},
37+
{include: '#boolean'},
38+
{match: '[[:upper:]][[:word:]]*', name: 'entity.name.type.aiken'}
39+
]
40+
},
41+
decimal_number: {
42+
match: '\\b[[:digit:]][[:digit:]_]*(\\.[[:digit:]]*)?\\b',
43+
name: 'constant.numeric.decimal.aiken'
44+
},
45+
entity: {
46+
patterns: [
47+
{
48+
begin: '\\b([[:lower:]][[:word:]]*)([[:space:]]*)?\\(',
49+
captures: {1: {name: 'entity.name.function.aiken'}},
50+
end: '\\)',
51+
patterns: [{include: '$self'}]
52+
},
53+
{
54+
match: '\\b([[:lower:]][[:word:]]*):\\s',
55+
name: 'variable.parameter.aiken'
56+
},
57+
{
58+
match: '\\b([[:lower:]][[:word:]]*):',
59+
name: 'entity.name.namespace.aiken'
60+
}
61+
]
62+
},
63+
hexadecimal_number: {
64+
match: '\\b0x[[:xdigit:]]+\\b',
65+
name: 'constant.numeric.hexadecimal.aiken'
66+
},
67+
keywords: {
68+
patterns: [
69+
{
70+
match:
71+
'\\b(if|else|when|is|fn|use|let|pub|type|opaque|const|todo|expect|test|bench|trace|fail|validator|and|or|as|via|once)\\b',
72+
name: 'keyword.control.aiken'
73+
},
74+
{match: '->', name: 'keyword.operator.arrow.aiken'},
75+
{match: '<-', name: 'keyword.operator.back_arrow.aiken'},
76+
{match: '\\|>', name: 'keyword.operator.pipe.aiken'},
77+
{match: '\\.\\.', name: 'keyword.operator.splat.aiken'},
78+
{match: '(<=|>=|==|!=|<|>)', name: 'keyword.operator.comparison.aiken'},
79+
{match: '(&&|\\|\\|)', name: 'keyword.operator.logical.aiken'},
80+
{match: '\\|', name: 'keyword.operator.other.aiken'},
81+
{match: '(\\+|\\-|/|\\*|%)', name: 'keyword.operator.arithmetic.aiken'},
82+
{match: '=', name: 'keyword.operator.assignment.aiken'}
83+
]
84+
},
85+
octal_number: {
86+
match: '\\b0o[0-7]+\\b',
87+
name: 'constant.numeric.octal.aiken'
88+
},
89+
strings: {
90+
begin: '"',
91+
end: '"',
92+
name: 'string.quoted.double.aiken',
93+
patterns: [{match: '\\\\.', name: 'constant.character.escape.aiken'}]
94+
}
95+
},
96+
scopeName: 'source.aiken'
97+
}
98+
99+
export default grammar

lang/source.apex.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const grammar = {
2222
'annotation-declaration': {
2323
begin: '([@][_[:alpha:]]+)\\b',
2424
beginCaptures: {1: {name: 'storage.type.annotation.apex'}},
25-
end: '(?<=\\)|$)',
2625
patterns: [
2726
{
2827
begin: '\\(',

lang/source.ballerina.js

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,11 @@ const grammar = {
517517
},
518518
end: '(?=\\;)|(?=\\,)|(?=)(?=\\);)',
519519
name: 'meta.block.ballerina',
520-
patterns: [{include: '#statements'}, {include: '#punctuation-comma'}]
520+
patterns: [
521+
{include: '#natural-expr'},
522+
{include: '#statements'},
523+
{include: '#punctuation-comma'}
524+
]
521525
},
522526
{match: '\\*', name: 'keyword.generator.asterisk.ballerina'}
523527
]
@@ -733,6 +737,7 @@ const grammar = {
733737
match: '\\b(check|foreach|if|checkpanic)\\b',
734738
name: 'keyword.control.ballerina'
735739
},
740+
{include: '#natural-expr'},
736741
{include: '#call'},
737742
{match: '\\b(var)\\b', name: 'support.type.primitive.ballerina'},
738743
{
@@ -1006,6 +1011,33 @@ const grammar = {
10061011
{match: '\\|', name: 'keyword.operator.ballerina'}
10071012
]
10081013
},
1014+
'natural-expr': {
1015+
patterns: [
1016+
{
1017+
begin: 'natural',
1018+
beginCaptures: {0: {name: 'keyword.other.ballerina'}},
1019+
end: '(?=\\})',
1020+
endCaptures: {0: {name: 'punctuation.definition.block.ballerina'}},
1021+
patterns: [{include: '#natural-expr-body'}]
1022+
}
1023+
]
1024+
},
1025+
'natural-expr-body': {
1026+
patterns: [
1027+
{
1028+
begin: '\\{',
1029+
beginCaptures: {0: {name: 'punctuation.definition.block.ballerina'}},
1030+
contentName: 'string.template.ballerina',
1031+
end: '(?=\\})',
1032+
endCaptures: {0: {name: 'punctuation.definition.block.ballerina'}},
1033+
patterns: [
1034+
{include: '#template-substitution-element'},
1035+
{include: '#string-character-escape'},
1036+
{include: '#templateVariable'}
1037+
]
1038+
}
1039+
]
1040+
},
10091041
numbers: {
10101042
patterns: [
10111043
{

lang/source.brs.js

Lines changed: 34 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ const grammar = {
5252
bsdoc: {
5353
patterns: [
5454
{include: '#bsdoc_param_and_type'},
55+
{include: '#bsdoc_return_and_type'},
5556
{include: '#bsdoc_generic'}
5657
]
5758
},
@@ -88,6 +89,25 @@ const grammar = {
8889
match:
8990
"(?i:\\s*(rem|'+)\\s*(@)(param|type)\\s+(?:(\\{)\\s*([^\\}]+)\\s*(\\}))?\\s*([a-z0-9_.]+)?(.*))"
9091
},
92+
bsdoc_return_and_type: {
93+
captures: {
94+
1: {name: 'comment.line.apostrophe.brs'},
95+
2: {
96+
name: 'punctuation.definition.block.tag.bsdoc storage.type.class.bsdoc'
97+
},
98+
3: {
99+
name: 'punctuation.definition.block.tag.bsdoc storage.type.class.bsdoc'
100+
},
101+
4: {name: 'punctuation.definition.bracket.curly.begin.bsdoc'},
102+
5: {
103+
name: ' comment.block.documentation.brs entity.name.type.instance.bsdoc'
104+
},
105+
6: {name: 'punctuation.definition.bracket.curly.end.bsdoc'},
106+
7: {name: 'comment.block.documentation.brs'}
107+
},
108+
match:
109+
"(?i:\\s*(rem|'+)\\s*(@)(return|returns)\\s+(?:(\\{)\\s*([^\\}]+)\\s*(\\}))?\\s*([a-z0-9_.]+.*)?)"
110+
},
91111
class_declaration: {
92112
captures: {
93113
1: {name: 'keyword.other.class.brs'},
@@ -179,7 +199,6 @@ const grammar = {
179199
{include: '#try_catch'},
180200
{include: '#non_identifier_keywords'},
181201
{include: '#operators'},
182-
{include: '#support_functions'},
183202
{include: '#variables_and_params'},
184203
{include: '#annotation'}
185204
]
@@ -196,15 +215,20 @@ const grammar = {
196215
patterns: [
197216
{include: '#comment'},
198217
{include: '#annotation'},
199-
{
200-
begin: '(?i)\\s*\\b([a-z0-9_]+)(?:[ \\t]*(=))?',
201-
beginCaptures: {
202-
1: {name: 'variable.object.enummember.brs'},
203-
2: {name: 'keyword.operator.assignment.brs'}
204-
},
205-
end: '\r?\n',
206-
patterns: [{include: '#primitive_literal_expression'}]
207-
}
218+
{include: '#enum_field'}
219+
]
220+
},
221+
enum_field: {
222+
begin: '(?i)\\s*\\b([a-z0-9_]+)(?:[ \\t]*(=))?',
223+
beginCaptures: {
224+
1: {name: 'variable.object.enummember.brs'},
225+
2: {name: 'keyword.operator.assignment.brs'}
226+
},
227+
end: '\r?\n',
228+
patterns: [
229+
{include: '#primitive_literal_expression'},
230+
{include: '#comment'},
231+
{include: '#annotation'}
208232
]
209233
},
210234
field: {
@@ -554,40 +578,6 @@ const grammar = {
554578
match:
555579
'(?i:\\b(boolean|integer|longinteger|float|double|string|object|function|sub|interface|dynamic|brsub|dim|const)\\b)'
556580
},
557-
support_builtin_functions: {
558-
match:
559-
'(?i:\\b(GetLastRun(RuntimeError|CompileError)|Rnd|Box|Type|objfun|pos|eval)\\b)',
560-
name: 'support.function.brs'
561-
},
562-
support_component_functions: {
563-
match:
564-
'(?i:\\b(R(ight|e(set(Index)?|ad(B(yte(IfAvailable)?|lock)|File|Line)?|move(Head|Tail|Index)))|Ge(nXML(Header)?|t(Res(ource|ponse(Headers|Code))|X|M(i(nute|llisecond)|o(nth|de(l)?)|essage)|B(yte(sPerBlock|Array)|o(o(tVersion(Number)?|lean)|dy))|S(t(orageCardInfo|a(ndards|tusByte)|ring(Count)?)|i(zeInMegabytes|gnedByte)|ource(Host|Identity|Port)|ub|ec(tionList|ond)|afe(X|Height|Y|Width))|H(o(stName|ur)|e(ight|ad))|Y(ear)?|N(extArticle|ame(dElements)?)|C(hildElements|ontrols|urrent(Standard|Con(trolValue|fig)|Input))|T(i(tle|me(Server|Zone))|o(String|File)|ext|ail)|I(n(t|dex|puts)|dentity)|ZoneDateTime|D(e(scription|vice(BootCount|Name|U(niqueId|ptime)))|a(y(OfWeek)?|ta))|U(se(dInMegabytes|rData)|tcDateTime)|Ent(ityEncode|ry)|V(ersion(Number)?|alue)|KeyList|F(ileSystemType|loat|a(ilureReason|mily)|reeInMegabytes)|W(holeState|idth)|LocalDateTime|Attributes))|M(id|D5|ap(StereoOutput(Aux)?|DigitalOutput))|Boolean|S(h(ift|ow)|canWiFi|t((Clear|Display)?|art|r(i(ng)?)?)|implify|ubtract(Milliseconds|Seconds)|e(nd(RawMessage|B(yte|lock)|Line)?|t(R(ollOverRegion|e(s(ize|olution)|c(tangle|eiveEol)))|X|M(i(n(imumTransferRate|ute)|llisecond)|o(nth|de(CaseSensitive)?)|ultiscreenBezel)|B(yteEventPort|o(olean|dy)|a(ckground(Bitmap|Color)|udRate))|S(t(andard|ring)|ub|e(ndEol|cond)|afeTextRegion)|H(o(stName|ur)|eight)|Y(ear)?|Name|C(hannelVolumes(Aux)?|ontrolValue|ursor(Bitmap|Pos(ition)?))|Time(Server|Zone)?|I(n(t|put)|P4(Gateway|Broadcast|Netmask|Address))|OutputState|D(HCP|omain|e(stination|fault(Mode|Transistion))|a(y(OfWeek)?|te(Time)?))|U(ser(Data|AndPassword)|tcDateTime|rl)|P(o(werSaveMode|rt)|assword|roxy)|E(ntry|cho|ol)|V(iewMode|olume(Aux)?)|F(o(nt|r(egroundColor|groundColor))|l(oat|ashRate))|W(holeState|i(dth|Fi(Passphrase|ESSID)))|L(ineEventPort|o(calDateTime|opMode)|auguage)|Audio(Mode(Aux)?|Stream(Aux)?|Output(Aux)?))|ek(Relative|ToEnd|Absolute)))|H(ide|ead|asAttribute)|N(ormalize|ext)|C(hr|ount|urrentPosition|l(s|ear(Region|Events)?))|T(o(Base64String|HexString|kenize|AsciiString)|estInter(netConnectivity|face)|rim)|I(s(MousePresent|N(ext|ame)|InputActive|Empty|Valid|LittleEndianCPU)|n(str|te(ger)|valid))|Object|D(ynamic|isplay(Preload|File(Ex)?)|o(uble|esExist)|elete)|U(n(shift|pack)|Case)|P(o(st(Message|From(String|File))|p(String(s)?)?)|ush(String)?|eek|lay(StaticImage|File)?|arse(String|File)?|reloadFile(Ex)?)|E(nable(R(ollover|egion)|Cursor|Input|Output)|xists)|Void|F(indIndex|unction|l(oat|ush)|rom(Base64String|HexString|AsciiString))|W(hile|aitMessage|rite(File)?)|L(ookup|e(n|ft))|A(s(ync(GetTo(String|File)|Head|PostFrom(String|File)|Flush)|c)?|tEof|dd(Re(ctangle(Region|_region)|place)|Milliseconds|BodyElement|Seconds|Head(er)?|CircleRegion|Tail|DNSServer|E(vent|lement(WithBody)?)|Attribute)|pp(end(String|File)?|ly))|ToStr)\\b)',
565-
name: 'support.function.component.brs'
566-
},
567-
support_functions: {
568-
patterns: [
569-
{include: '#support_builtin_functions'},
570-
{include: '#support_global_functions'},
571-
{include: '#support_global_string_functions'},
572-
{include: '#support_global_math_functions'},
573-
{include: '#support_component_functions'}
574-
]
575-
},
576-
support_global_functions: {
577-
match:
578-
'(?i:\\b(Re(adAsciiFile|bootSystem)|GetInterface|MatchFiles|Sleep|C(opyFile|reate(Directory|Object))|Delete(Directory|File)|UpTime|FormatDrive|ListDir|W(ait|riteAsciiFile))\\b)',
579-
name: 'support.function.brs'
580-
},
581-
support_global_math_functions: {
582-
match:
583-
'(?i:\\b(S(in|qr|gn)|C(sng|dbl|os)|Tan|Int|Exp|Fix|Log|A(tn|bs))\\b)',
584-
name: 'support.function.brs'
585-
},
586-
support_global_string_functions: {
587-
match:
588-
'(?i:\\b(Right|Mid|Str(i(ng(i)?)?)?|Chr|Instr|UCase|Val|Asc|L(Case|e(n|ft)))\\b)',
589-
name: 'support.function.brs'
590-
},
591581
template_string: {
592582
begin: '(`)',
593583
beginCaptures: {1: {name: 'string.template.brs'}},

lang/source.c++.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// This is a TextMate grammar distributed by `starry-night`.
22
// This grammar is developed at
3-
// <https://github.com/textmate/c.tmbundle>
3+
// <https://github.com/mikomikotaishi/c.tmbundle>
44
// and licensed permissive.
55
// See <https://github.com/wooorm/starry-night> for more info.
66
/**
@@ -24,6 +24,7 @@ const grammar = {
2424
'.gml',
2525
'.h++',
2626
'.hh',
27+
'.hip',
2728
'.hpp',
2829
'.hxx',
2930
'.inl',
@@ -44,6 +45,7 @@ const grammar = {
4445
'cpp',
4546
'edje-data-collection',
4647
'game-maker-language',
48+
'hip',
4749
'metal',
4850
'swig'
4951
],
@@ -79,26 +81,25 @@ const grammar = {
7981
match: '\\b(f|m)[A-Z]\\w*\\b',
8082
name: 'variable.other.readwrite.member.c++'
8183
},
82-
{match: '\\b(this|nullptr)\\b', name: 'variable.language.c++'},
84+
{match: '\\b(this)\\b', name: 'variable.language.c++'},
8385
{match: '\\b(template|concept)\\b\\s*', name: 'storage.type.template.c++'},
8486
{
85-
match: '\\b(const_cast|dynamic_cast|reinterpret_cast|static_cast)\\b\\s*',
87+
match:
88+
'\\b(const_cast|dynamic_cast|reinterpret_cast|static_assert|static_cast)\\b\\s*',
8689
name: 'keyword.operator.cast.c++'
8790
},
8891
{
8992
match:
90-
'\\b(co_await|co_return|co_yield|and|and_eq|bitand|bitor|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq)\\b',
93+
'\\b(and|and_eq|bitand|bitor|co_await|co_return|co_yield|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq)\\b',
9194
name: 'keyword.operator.c++'
9295
},
93-
{
94-
match: '\\b(class|wchar_t|char8_t|char16_t|char32_t)\\b',
95-
name: 'storage.type.c++'
96-
},
96+
{match: '\\b(class)\\b', name: 'storage.type.c++'},
9797
{
9898
match:
99-
'\\b(consteval|constinit|constexpr|export|mutable|typename|thread_local|noexcept|final|override)\\b',
99+
'\\b(alignas|alignof|consteval|constinit|constexpr|decltype|final|mutable|noexcept|override|requires|thread_local|typename)\\b',
100100
name: 'storage.modifier.c++'
101101
},
102+
{match: '\\b(import|export|module)\\b', name: 'keyword.module.c++'},
102103
{
103104
begin:
104105
'(?x)\n \t\t\t\t(?: ^ # begin-of-line\n \t\t\t\t | (?: (?<!else|new|=) ) # or word + space before name\n \t\t\t\t)\n \t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n \t\t\t\t \\s*(\\() # start bracket or end-of-line\n \t\t\t',

0 commit comments

Comments
 (0)