Skip to content

Commit 67b71bb

Browse files
authored
feat: add tcl code highlighting (#387)
Added TCL code highlighting.
2 parents 8f54421 + a3dd66c commit 67b71bb

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/processing/code.rs

+4
Original file line numberDiff line numberDiff line change
@@ -468,13 +468,15 @@ pub enum SnippetLanguage {
468468
Sql,
469469
Swift,
470470
Svelte,
471+
Tcl,
471472
Terraform,
472473
Toml,
473474
TypeScript,
474475
Typst,
475476
Unknown(String),
476477
Xml,
477478
Yaml,
479+
Verilog,
478480
Vue,
479481
Zig,
480482
Zsh,
@@ -537,12 +539,14 @@ impl FromStr for SnippetLanguage {
537539
"sql" => Sql,
538540
"svelte" => Svelte,
539541
"swift" => Swift,
542+
"tcl" => Tcl,
540543
"terraform" => Terraform,
541544
"toml" => Toml,
542545
"typescript" | "ts" => TypeScript,
543546
"typst" => Typst,
544547
"xml" => Xml,
545548
"yaml" => Yaml,
549+
"verilog" => Verilog,
546550
"vue" => Vue,
547551
"zig" => Zig,
548552
"zsh" => Zsh,

src/render/highlighting.rs

+2
Original file line numberDiff line numberDiff line change
@@ -153,12 +153,14 @@ impl CodeHighlighter {
153153
Sql => "sql",
154154
Swift => "swift",
155155
Svelte => "svelte",
156+
Tcl => "tcl",
156157
Terraform => "tf",
157158
Toml => "toml",
158159
TypeScript => "ts",
159160
Typst => "txt",
160161
// default to plain text so we get the same look&feel
161162
Unknown(_) => "txt",
163+
Verilog => "v",
162164
Vue => "vue",
163165
Xml => "xml",
164166
Yaml => "yaml",

0 commit comments

Comments
 (0)