tree-sitter-grammars / tree-sitter-markdown

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

fix: use `_Static_assert`, not `static_assert` #122

Closed wookayin closed 11 months ago

wookayin commented 11 months ago

According to https://en.cppreference.com/w/c/language/_Static_assert in C11, one should use _Static_assert, not static_assert for better compatibility.

static_assert can make neovim crash if the treesitter parser is built against a lower version of stdc libs. (nvim-treesitter/nvim-treesitter#5623)

Similar fix to https://github.com/tree-sitter/tree-sitter-python/pull/235.

MDeiml commented 11 months ago

Thanks!