Skip to content

Commit afb8a2e

Browse files
chore: update grammars and themes
1 parent 7f8e3ae commit afb8a2e

File tree

9 files changed

+264
-27
lines changed

9 files changed

+264
-27
lines changed

latest-shiki-commit.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b941a45dce243bd5d3510ae7643199569196b60c
1+
54d44fea1fd9372b4042517646a13327a5b4cc7a

vendor/phiki/phiki/resources/languages/cobol.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@
879879
"match": "(?<![-_])(?i:type)\\s+([0-9a-zA-Z.]*)"
880880
},
881881
{
882-
"match": "(?<![-_])(?i:if|else|end-if|exit\\s+iterator|exit\\s+program|exit\\s+method|evaluate|end-evaluate|exit\\s+perform|perform|end-perform|when\\s+other|when|continue|call|end-call|chain|end-chain|invoke|end\\s+invoke|go\\s+to|go|sort|merge|use|xml|parse|stop\\s+run|goback\\s+returning|goback|raise|exit\\s+function|exit\\sparagraph|await)(?![0-9A-Za-z_-])",
882+
"match": "(?<![-_])(?i:if|else|end-if|exit\\s+iterator|exit\\s+program|exit\\s+method|evaluate|end-evaluate|exit\\s+perform|perform|end-perform|when\\s+other|when|continue|call|end-call|chain|end-chain|invoke|end\\s+invoke|end-xml|go\\s+to|go|sort|merge|use|xml\\s+parse|xml|top\\s+run|goback\\s+returning|goback|raise|exit\\s+function|exit\\sparagraph|await)(?![0-9A-Za-z_-])",
883883
"name": "keyword.control.cobol"
884884
},
885885
{
@@ -1025,7 +1025,7 @@
10251025
"name": "support.type.cobol"
10261026
},
10271027
{
1028-
"match": "(?<![-_])(?i:end-xml|processing.*procedure|xml\\sparse|xml|xml-information|xml-text|xml-schemal|xml-declaration)(?![0-9A-Za-z_-])",
1028+
"match": "(?<![-_])(?i:processing.*procedure|xml-information|xml-text|xml-schemal|xml-declaration)(?![0-9A-Za-z_-])",
10291029
"name": "keyword.xml.cobol"
10301030
},
10311031
{

vendor/phiki/phiki/resources/languages/nushell.json

Lines changed: 39 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,12 @@
264264
{
265265
"include": "#numbers-hexa"
266266
},
267+
{
268+
"include": "#numbers-octal"
269+
},
270+
{
271+
"include": "#numbers-binary"
272+
},
267273
{
268274
"include": "#binary"
269275
}
@@ -334,6 +340,9 @@
334340
{
335341
"include": "#constant-value"
336342
},
343+
{
344+
"include": "#string-raw"
345+
},
337346
{
338347
"include": "#command"
339348
},
@@ -594,11 +603,19 @@
594603
]
595604
},
596605
"numbers": {
597-
"match": "(?<![\\w-])[-+]?(?:\\d+|\\d{1,3}(?:_\\d{3})*)(?:\\.\\d*)?(?i:ns|us|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\w.])|(?=\\.\\.))",
606+
"match": "(?<![\\w-])_*+[-+]?_*+(?:(?i:NaN|infinity|inf)_*+|(?:\\d[\\d_]*+\\.?|\\._*+\\d)[\\d_]*+(?i:E_*+[-+]?_*+\\d[\\d_]*+)?)(?i:ns|us|µs|ms|sec|min|hr|day|wk|b|kb|mb|gb|tb|pt|eb|zb|kib|mib|gib|tib|pit|eib|zib)?(?:(?![\\w.])|(?=\\.\\.))",
607+
"name": "constant.numeric.nushell"
608+
},
609+
"numbers-binary": {
610+
"match": "(?<![\\w-])_*+0_*+b_*+[01][01_]*+(?![\\w.])",
598611
"name": "constant.numeric.nushell"
599612
},
600613
"numbers-hexa": {
601-
"match": "(?<![\\w-])0x\\h+(?![\\w.])",
614+
"match": "(?<![\\w-])_*+0_*+x_*+\\h[_\\h]*+(?![\\w.])",
615+
"name": "constant.numeric.nushell"
616+
},
617+
"numbers-octal": {
618+
"match": "(?<![\\w-])_*+0_*+o_*+[0-7][0-7_]*+(?![\\w.])",
602619
"name": "constant.numeric.nushell"
603620
},
604621
"operators": {
@@ -619,7 +636,7 @@
619636
"name": "keyword.control.nushell"
620637
},
621638
"operators-word": {
622-
"match": "(?<=[ (])(?:mod|in|not-in|not|and|or|xor|bit-or|bit-and|bit-xor|bit-shl|bit-shr|starts-with|ends-with)(?=[ )]|$)",
639+
"match": "(?<=[ (])(?:mod|in|not-(?:in|like|has)|not|and|or|xor|bit-(?:or|and|xor|shl|shr)|starts-with|ends-with|like|has)(?=[ )]|$)",
623640
"name": "keyword.control.nushell"
624641
},
625642
"parameters": {
@@ -697,6 +714,9 @@
697714
{
698715
"include": "#string-interpolated-single"
699716
},
717+
{
718+
"include": "#string-raw"
719+
},
700720
{
701721
"include": "#string-bare"
702722
}
@@ -718,7 +738,7 @@
718738
"name": "string.quoted.single.nushell"
719739
},
720740
"string-bare": {
721-
"match": "[^$\\[{(\"',|#\\s][^\\[\\]{}()\"'\\s#,|]*",
741+
"match": "[^$\\[{(\"',|#\\s;][^\\[\\]{}()\"'\\s,|;]*",
722742
"name": "string.bare.nushell"
723743
},
724744
"string-double-quote": {
@@ -795,6 +815,21 @@
795815
}
796816
]
797817
},
818+
"string-raw": {
819+
"begin": "r(#+)'",
820+
"beginCaptures": {
821+
"0": {
822+
"name": "punctuation.definition.string.begin.nushell"
823+
}
824+
},
825+
"end": "'\\1",
826+
"endCaptures": {
827+
"0": {
828+
"name": "punctuation.definition.string.end.nushell"
829+
}
830+
},
831+
"name": "string.raw.nushell"
832+
},
798833
"string-single-quote": {
799834
"begin": "'",
800835
"beginCaptures": {

vendor/phiki/phiki/resources/languages/solidity.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,9 @@
700700
{
701701
"include": "#type-modifier-immutable"
702702
},
703+
{
704+
"include": "#type-modifier-transient"
705+
},
703706
{
704707
"include": "#type-modifier-extend-scope"
705708
},
@@ -1146,6 +1149,10 @@
11461149
"match": "\\b(nonpayable|payable)\\b",
11471150
"name": "storage.type.modifier.payable"
11481151
},
1152+
"type-modifier-transient": {
1153+
"match": "\\b(transient)\\b",
1154+
"name": "storage.type.modifier.readonly"
1155+
},
11491156
"type-primitive": {
11501157
"patterns": [
11511158
{

vendor/phiki/phiki/resources/languages/vhdl.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@
385385
},
386386
{
387387
"include": "#while_pattern"
388+
},
389+
{
390+
"include": "#loop_pattern"
388391
}
389392
]
390393
},
@@ -763,6 +766,50 @@
763766
}
764767
]
765768
},
769+
"loop_pattern": {
770+
"patterns": [
771+
{
772+
"begin": "^\\s*(([a-zA-Z][a-zA-Z0-9_]*)\\s*(:)\\s*)?\\b((?i:loop))\\b",
773+
"beginCaptures": {
774+
"2": {
775+
"name": "entity.name.tag.loop.begin.vhdl"
776+
},
777+
"3": {
778+
"name": "punctuation.vhdl"
779+
},
780+
"4": {
781+
"name": "keyword.language.vhdl"
782+
}
783+
},
784+
"end": "\\b((?i:end))\\s+(((?i:loop))|(\\S+))\\b(\\s+((\\2)|(.+?)))?(?=\\s*;)",
785+
"endCaptures": {
786+
"1": {
787+
"name": "keyword.language.vhdl"
788+
},
789+
"3": {
790+
"name": "keyword.language.vhdl"
791+
},
792+
"4": {
793+
"name": "invalid.illegal.loop.keyword.required.vhdl"
794+
},
795+
"7": {
796+
"name": "entity.name.tag.loop.end.vhdl"
797+
},
798+
"8": {
799+
"name": "invalid.illegal.mismatched.identifier.vhdl"
800+
}
801+
},
802+
"patterns": [
803+
{
804+
"include": "#control_patterns"
805+
},
806+
{
807+
"include": "#cleanup"
808+
}
809+
]
810+
}
811+
]
812+
},
766813
"package_body_pattern": {
767814
"patterns": [
768815
{

vendor/phiki/phiki/resources/themes/catppuccin-frappe.json

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484
"diffEditor.border": "#626880",
8585
"diffEditor.diagonalFill": "#62688099",
8686
"diffEditor.insertedLineBackground": "#a6d18926",
87-
"diffEditor.insertedTextBackground": "#a6d1891a",
87+
"diffEditor.insertedTextBackground": "#a6d18933",
8888
"diffEditor.removedLineBackground": "#e7828426",
89-
"diffEditor.removedTextBackground": "#e782841a",
89+
"diffEditor.removedTextBackground": "#e7828433",
9090
"diffEditorOverview.insertedForeground": "#a6d189cc",
9191
"diffEditorOverview.removedForeground": "#e78284cc",
9292
"disabledForeground": "#a5adce",
@@ -508,9 +508,38 @@
508508
"terminalCommandDecoration.successBackground": "#a6d189",
509509
"terminalCursor.background": "#303446",
510510
"terminalCursor.foreground": "#f2d5cf",
511+
"testing.coverCountBadgeBackground": "#00000000",
512+
"testing.coverCountBadgeForeground": "#ca9ee6",
513+
"testing.coveredBackground": "#a6d1894d",
514+
"testing.coveredBorder": "#00000000",
515+
"testing.coveredGutterBackground": "#a6d1894d",
516+
"testing.iconErrored": "#e78284",
517+
"testing.iconErrored.retired": "#e78284",
518+
"testing.iconFailed": "#e78284",
519+
"testing.iconFailed.retired": "#e78284",
520+
"testing.iconPassed": "#a6d189",
521+
"testing.iconPassed.retired": "#a6d189",
522+
"testing.iconQueued": "#8caaee",
523+
"testing.iconQueued.retired": "#8caaee",
524+
"testing.iconSkipped": "#a5adce",
525+
"testing.iconSkipped.retired": "#a5adce",
526+
"testing.iconUnset": "#c6d0f5",
527+
"testing.iconUnset.retired": "#c6d0f5",
528+
"testing.message.error.lineBackground": "#e7828426",
529+
"testing.message.info.decorationForeground": "#a6d189cc",
530+
"testing.message.info.lineBackground": "#a6d18926",
531+
"testing.messagePeekBorder": "#ca9ee6",
532+
"testing.messagePeekHeaderBackground": "#626880",
533+
"testing.peekBorder": "#ca9ee6",
534+
"testing.peekHeaderBackground": "#626880",
535+
"testing.runAction": "#ca9ee6",
536+
"testing.uncoveredBackground": "#e7828433",
537+
"testing.uncoveredBorder": "#00000000",
538+
"testing.uncoveredBranchBackground": "#e7828433",
539+
"testing.uncoveredGutterBackground": "#e7828440",
511540
"textBlockQuote.background": "#292c3c",
512541
"textBlockQuote.border": "#232634",
513-
"textCodeBlock.background": "#303446",
542+
"textCodeBlock.background": "#292c3c",
514543
"textLink.activeForeground": "#99d1db",
515544
"textLink.foreground": "#8caaee",
516545
"textPreformat.foreground": "#c6d0f5",
@@ -1751,13 +1780,13 @@
17511780
"support.type.python"
17521781
],
17531782
"settings": {
1754-
"foreground": "#ef9f76"
1783+
"foreground": "#ca9ee6"
17551784
}
17561785
},
17571786
{
17581787
"scope": "constant.language.python",
17591788
"settings": {
1760-
"foreground": "#ca9ee6"
1789+
"foreground": "#ef9f76"
17611790
}
17621791
},
17631792
{
@@ -2082,6 +2111,14 @@
20822111
"settings": {
20832112
"foreground": "#c6d0f5"
20842113
}
2114+
},
2115+
{
2116+
"scope": [
2117+
"markup.heading.typst"
2118+
],
2119+
"settings": {
2120+
"foreground": "#e78284"
2121+
}
20852122
}
20862123
],
20872124
"type": "dark"

vendor/phiki/phiki/resources/themes/catppuccin-latte.json

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,9 @@
8484
"diffEditor.border": "#acb0be",
8585
"diffEditor.diagonalFill": "#acb0be99",
8686
"diffEditor.insertedLineBackground": "#40a02b26",
87-
"diffEditor.insertedTextBackground": "#40a02b1a",
87+
"diffEditor.insertedTextBackground": "#40a02b33",
8888
"diffEditor.removedLineBackground": "#d20f3926",
89-
"diffEditor.removedTextBackground": "#d20f391a",
89+
"diffEditor.removedTextBackground": "#d20f3933",
9090
"diffEditorOverview.insertedForeground": "#40a02bcc",
9191
"diffEditorOverview.removedForeground": "#d20f39cc",
9292
"disabledForeground": "#6c6f85",
@@ -508,9 +508,38 @@
508508
"terminalCommandDecoration.successBackground": "#40a02b",
509509
"terminalCursor.background": "#eff1f5",
510510
"terminalCursor.foreground": "#dc8a78",
511+
"testing.coverCountBadgeBackground": "#00000000",
512+
"testing.coverCountBadgeForeground": "#8839ef",
513+
"testing.coveredBackground": "#40a02b4d",
514+
"testing.coveredBorder": "#00000000",
515+
"testing.coveredGutterBackground": "#40a02b4d",
516+
"testing.iconErrored": "#d20f39",
517+
"testing.iconErrored.retired": "#d20f39",
518+
"testing.iconFailed": "#d20f39",
519+
"testing.iconFailed.retired": "#d20f39",
520+
"testing.iconPassed": "#40a02b",
521+
"testing.iconPassed.retired": "#40a02b",
522+
"testing.iconQueued": "#1e66f5",
523+
"testing.iconQueued.retired": "#1e66f5",
524+
"testing.iconSkipped": "#6c6f85",
525+
"testing.iconSkipped.retired": "#6c6f85",
526+
"testing.iconUnset": "#4c4f69",
527+
"testing.iconUnset.retired": "#4c4f69",
528+
"testing.message.error.lineBackground": "#d20f3926",
529+
"testing.message.info.decorationForeground": "#40a02bcc",
530+
"testing.message.info.lineBackground": "#40a02b26",
531+
"testing.messagePeekBorder": "#8839ef",
532+
"testing.messagePeekHeaderBackground": "#acb0be",
533+
"testing.peekBorder": "#8839ef",
534+
"testing.peekHeaderBackground": "#acb0be",
535+
"testing.runAction": "#8839ef",
536+
"testing.uncoveredBackground": "#d20f3933",
537+
"testing.uncoveredBorder": "#00000000",
538+
"testing.uncoveredBranchBackground": "#d20f3933",
539+
"testing.uncoveredGutterBackground": "#d20f3940",
511540
"textBlockQuote.background": "#e6e9ef",
512541
"textBlockQuote.border": "#dce0e8",
513-
"textCodeBlock.background": "#eff1f5",
542+
"textCodeBlock.background": "#e6e9ef",
514543
"textLink.activeForeground": "#04a5e5",
515544
"textLink.foreground": "#1e66f5",
516545
"textPreformat.foreground": "#4c4f69",
@@ -1751,13 +1780,13 @@
17511780
"support.type.python"
17521781
],
17531782
"settings": {
1754-
"foreground": "#fe640b"
1783+
"foreground": "#8839ef"
17551784
}
17561785
},
17571786
{
17581787
"scope": "constant.language.python",
17591788
"settings": {
1760-
"foreground": "#8839ef"
1789+
"foreground": "#fe640b"
17611790
}
17621791
},
17631792
{
@@ -2082,6 +2111,14 @@
20822111
"settings": {
20832112
"foreground": "#4c4f69"
20842113
}
2114+
},
2115+
{
2116+
"scope": [
2117+
"markup.heading.typst"
2118+
],
2119+
"settings": {
2120+
"foreground": "#d20f39"
2121+
}
20852122
}
20862123
],
20872124
"type": "light"

0 commit comments

Comments
 (0)