Skip to content
This repository was archived by the owner on Jan 20, 2022. It is now read-only.

Commit 42062de

Browse files
committed
feat: Add 'Rust' language support
1 parent af9aa0d commit 42062de

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/nodes/CodeFence.ts

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import php from "refractor/lang/php";
1414
import python from "refractor/lang/python";
1515
import powershell from "refractor/lang/powershell";
1616
import ruby from "refractor/lang/ruby";
17+
import rust from "refractor/lang/rust";
1718
import sql from "refractor/lang/sql";
1819
import typescript from "refractor/lang/typescript";
1920
import yaml from "refractor/lang/yaml";
@@ -46,6 +47,7 @@ const DEFAULT_LANGUAGE = "javascript";
4647
python,
4748
powershell,
4849
ruby,
50+
rust,
4951
sql,
5052
typescript,
5153
yaml,

src/plugins/Prism.ts

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export const LANGUAGES = {
2222
powershell: "Powershell",
2323
python: "Python",
2424
ruby: "Ruby",
25+
rust: "Rust",
2526
sql: "SQL",
2627
typescript: "TypeScript",
2728
yaml: "YAML",

0 commit comments

Comments
 (0)