tree-sitter-grammars / tree-sitter-markdown

Markdown grammar for tree-sitter
MIT License
411 stars 52 forks source link

refactor: Remove unused code #143

Closed mikavilpas closed 6 months ago

mikavilpas commented 6 months ago

I temporarily added tsserver to the project and its static analysis found some code is unused. Thought I'd send a patch for this as it might be confusing.

I'm not sure if the static analysis is valid though as the semantics are probably not shared between the javascript dsl and the C parser.

All tests do pass for me, though 😄

MDeiml commented 6 months ago

LGTM. Some html rules have been moved from javascript to C so this is probably a byproduct of that. Thanks!