emacs-tree-sitter / elisp-tree-sitter

Emacs Lisp bindings for tree-sitter

Home Page:https://emacs-tree-sitter.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

yssource opened this issue · comments

function hello()
end

-- test with single quote ' ine comment line

function world()
end

Screenshot_2022-06-21_18-18-04

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.