emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter
https://emacs-tree-sitter.github.io
MIT License
816 stars 73 forks source link

Lua Syntax highlighting breaks, if there is a single quote (') in the comment line. #230

Closed yssource closed 1 year ago

yssource commented 2 years ago
function hello()
end

-- test with single quote ' ine comment line

function world()
end

Screenshot_2022-06-21_18-18-04

yssource commented 1 year ago

Sorry, It's caused by my personal user-config. (add-hook 'prog-mode-hook #'(lambda () (modify-syntax-entry ?- "w")))

The dash is the comment mark in lua-mode, after commenting out the line, the syntax highlighting works well.