@scalar/code-highlight
Advanced tools
| import type { LanguageFn } from 'highlight.js'; | ||
| /** | ||
| * Mojo grammar. | ||
| * | ||
| * highlight.js does not ship a Mojo grammar and there is no community package | ||
| * for it (the only upstream "mojo" grammar is the unrelated Perl Mojolicious | ||
| * framework). We build one here. Mojo is a superset of Python, so we start from | ||
| * the bundled Python grammar and layer on the extra keywords, argument-convention | ||
| * modifiers, and standard-library types that Mojo adds. The keyword and type | ||
| * lists mirror Modular's official TextMate grammar (github.com/modular/mojo-syntax). | ||
| * | ||
| * As with our custom Python grammar, we also colour call sites as function | ||
| * titles so that API snippets, which are mostly method calls, do not render as a | ||
| * wall of unstyled grey text. | ||
| */ | ||
| declare const mojo: LanguageFn; | ||
| export default mojo; | ||
| //# sourceMappingURL=mojo.d.ts.map |
| {"version":3,"file":"mojo.d.ts","sourceRoot":"","sources":["../../src/languages/mojo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAG9C;;;;;;;;;;;;;GAaG;AACH,QAAA,MAAM,IAAI,EAAE,UAgHX,CAAA;AAED,eAAe,IAAI,CAAA"} |
+6
-0
| # @scalar/code-highlight | ||
| ## 0.4.0 | ||
| ### Minor Changes | ||
| - [#9590](https://github.com/scalar/scalar/pull/9590): Add syntax highlighting for the Mojo programming language | ||
| ## 0.3.6 | ||
@@ -4,0 +10,0 @@ |
@@ -49,2 +49,3 @@ import type { LanguageFn } from 'highlight.js'; | ||
| readonly matlab: LanguageFn; | ||
| readonly mojo: LanguageFn; | ||
| readonly nginx: LanguageFn; | ||
@@ -51,0 +52,0 @@ readonly objectivec: LanguageFn; |
@@ -1,1 +0,1 @@ | ||
| {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../src/languages/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAiD9C;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDiB,CAAA"} | ||
| {"version":3,"file":"standard.d.ts","sourceRoot":"","sources":["../../src/languages/standard.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAkD9C;;;;;;;;;;;;;;GAcG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDiB,CAAA"} |
+2
-2
@@ -19,3 +19,3 @@ { | ||
| ], | ||
| "version": "0.3.6", | ||
| "version": "0.4.0", | ||
| "engines": { | ||
@@ -96,3 +96,3 @@ "node": ">=22" | ||
| "vite": "8.0.0", | ||
| "@scalar/themes": "0.16.0" | ||
| "@scalar/themes": "0.16.2" | ||
| }, | ||
@@ -99,0 +99,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
3777604
0.23%60
3.45%51908
0.23%