Skip to content

Commit

Permalink
md: adds markdown support (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
lafleurdeboum authored Feb 19, 2024
1 parent 4274a41 commit c91da3d
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,6 @@
path = sitters/tree-sitter-vim
url = https://github.com/neovim/tree-sitter-vim.git
shallow = true
[submodule "sitters/tree-sitter-markdown"]
path = sitters/tree-sitter-markdown
url = https://github.com/ikatyang/tree-sitter-markdown
2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ default = [
"javascript",
"json",
"lua",
"markdown",
"python",
"rust",
"toml",
Expand All @@ -55,6 +56,7 @@ java = []
javascript = []
json = []
lua = []
markdown = []
python = []
rust = []
toml = []
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ Currently includes the following parsers:
* JavaScript
* Json
* Lua
* Markdown
* Python
* Rust
* Toml
Expand Down
1 change: 1 addition & 0 deletions examples/highlighter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ lazy_static! {
("haskell", pepegsitter::haskell::highlight()),
("d", pepegsitter::d::highlight()),
("java", pepegsitter::java::highlight()),
("markdown", pepegsitter::markdown::highlight()),
]
.map(|(key, mut val)| {
val.configure(HIGHLIGHT_NAMES);
Expand Down
1 change: 1 addition & 0 deletions sitters/tree-sitter-markdown
Submodule tree-sitter-markdown added at 8b8b77
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ pepegsit!(java, "java", "/lang_java.rs");
pepegsit!(javascript, "javascript", "/lang_javascript.rs");
pepegsit!(json, "json", "/lang_json.rs");
pepegsit!(lua, "lua", "/lang_lua.rs");
pepegsit!(markdown, "markdown", "/lang_markdown.rs");
pepegsit!(python, "python", "/lang_python.rs");
pepegsit!(rust, "rust", "/lang_rust.rs");
pepegsit!(toml, "toml", "/lang_toml.rs");
Expand Down

0 comments on commit c91da3d

Please sign in to comment.