Skip to content

Commit d8eb61b

Browse files
chore: update grammars and themes
1 parent ceacb5a commit d8eb61b

File tree

4 files changed

+22
-11
lines changed

4 files changed

+22
-11
lines changed

latest-shiki-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c1cf1b2f5c8a3944dbc9fc89c5e39f59af46dbd9
1+
7160853d33350ccd0001970484522804dbf1d108

vendor/phiki/phiki/resources/languages/coq.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"name": "keyword.control.ltac"
145145
},
146146
{
147-
"match": "\\b(match|lazymatch|multimatch|fun|with|return|end|let|in|if|then|else|fix|for|where|and)\\b|λ",
147+
"match": "\\b(match|lazymatch|multimatch|match!|lazy_match!|multi_match!|fun|with|return|end|let|in|if|then|else|fix|for|where|and)\\b|λ",
148148
"name": "keyword.control.gallina"
149149
},
150150
{

vendor/phiki/phiki/resources/languages/go.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@
17611761
"operators": {
17621762
"patterns": [
17631763
{
1764-
"match": "([\\&*]+)(?!\\d)(?=[]\\[\\w]|<-)",
1764+
"match": "(?<!\\w)[\\&*]+(?!\\d)(?=[]\\[\\w]|<-)",
17651765
"name": "keyword.operator.address.go"
17661766
},
17671767
{

vendor/phiki/phiki/resources/languages/liquid.json

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@
127127
{
128128
"include": "#liquid_doc_example_tag"
129129
},
130+
{
131+
"include": "#liquid_doc_prompt_tag"
132+
},
130133
{
131134
"include": "#liquid_doc_fallback_tag"
132135
}
@@ -252,13 +255,8 @@
252255
"name": "storage.type.class.liquid"
253256
}
254257
},
255-
"end": "(?=@|\\{%-?\\s*enddoc\\s*-?%})",
256-
"patterns": [
257-
{
258-
"match": "[^@]+",
259-
"name": "string.quoted.single.liquid"
260-
}
261-
]
258+
"contentName": "string.quoted.single.liquid",
259+
"end": "(?=@prompt|@example|@param|@description|\\{%-?\\s*enddoc\\s*-?%})"
262260
},
263261
"liquid_doc_example_tag": {
264262
"begin": "(@example)\\b\\s*",
@@ -271,7 +269,7 @@
271269
}
272270
},
273271
"contentName": "meta.embedded.block.liquid",
274-
"end": "(?=@|\\{%-?\\s*enddoc\\s*-?%})",
272+
"end": "(?=@prompt|@example|@param|@description|\\{%-?\\s*enddoc\\s*-?%})",
275273
"patterns": [
276274
{
277275
"include": "#core"
@@ -303,6 +301,19 @@
303301
},
304302
"match": "(@param)\\s+(?:(\\{[^}]*}?)\\s+)?(\\[?[A-Z_a-z][-\\w]*]?)?(?:\\s+(.*))?"
305303
},
304+
"liquid_doc_prompt_tag": {
305+
"begin": "(@prompt)\\b\\s*",
306+
"beginCaptures": {
307+
"0": {
308+
"name": "comment.block.documentation.liquid"
309+
},
310+
"1": {
311+
"name": "storage.type.class.liquid"
312+
}
313+
},
314+
"contentName": "string.quoted.single.liquid",
315+
"end": "(?=@prompt|@example|@param|@description|\\{%-?\\s*enddoc\\s*-?%})"
316+
},
306317
"number": {
307318
"match": "(([-+])\\s*)?[0-9]+(\\.[0-9]+)?",
308319
"name": "constant.numeric.liquid"

0 commit comments

Comments
 (0)