Skip to content

Commit

Permalink
Add javascript and erlang syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
treeman committed Jan 10, 2024
1 parent 86a4513 commit f27434e
Show file tree
Hide file tree
Showing 7 changed files with 4,833 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,6 @@
[submodule "syntaxes/Toml"]
path = syntaxes/Toml
url = https://github.com/evandroforks/Toml
[submodule "syntaxes/sublime-text-gleam"]
path = syntaxes/sublime-text-gleam
url = https://github.com/itsgreggreg/sublime-text-gleam
15 changes: 15 additions & 0 deletions css/global/_code.scss
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ aside {
&.shell::before {
content: "shell";
}
&.shell-unix-generic::before {
content: "shell";
}
&.vhdl::before {
content: "vhdl";
}
Expand All @@ -128,6 +131,18 @@ aside {
&.toml::before {
content: "toml";
}
&.javascript::before {
content: "javascript";
}
&.gleam::before {
content: "gleam";
}
&.elixir::before {
content: "elixir";
}
&.erlang::before {
content: "erlang";
}
}

// .punctuation.definition.tag {
Expand Down
2 changes: 2 additions & 0 deletions src/markdown/syntax_highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ fn syntect_lang_name(lang: &str) -> &str {
"ruby" => "Ruby",
"rust" => "Rust",
"shell" => "Shell-Unix-Generic",
"erlang" => "Erlang",
"js" => "JavaScript",

// "pollen" => "",
x => x,
Expand Down
Loading

0 comments on commit f27434e

Please sign in to comment.