diff options
author | Theodor Thornhill <theo@thornhill.no> | 2022-12-05 13:37:58 +0100 |
---|---|---|
committer | Yuan Fu <casouri@gmail.com> | 2022-12-07 12:01:51 -0800 |
commit | 6479691cf0756d776bbc91cab5e5c339def81777 (patch) | |
tree | 7c434fdf380b0de67c7bf988f631650fdb07b3a9 /lisp/textmodes/css-mode.el | |
parent | b710ca62c00ef90a46fc90a9ae06fdf3bba87bc2 (diff) | |
download | emacs-6479691cf0756d776bbc91cab5e5c339def81777.tar.gz |
Fix syntax-table for tree-sitter modes
When adapting the 'c-populate-syntax-table' for tree-sitter, I misread
the code, and thus some crucial entries were missing. For the
relevant modes we use the same table as specified in the
non-tree-sitter major mode.
* lisp/progmodes/c-ts-mode.el (c-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/csharp-mode.el (csharp-ts-mode): Add new entries.
* lisp/progmodes/java-ts-mode.el (java-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/json-ts-mode.el (json-ts-mode--syntax-table): Add new
entries.
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--syntax-table): Add new entries.
* lisp/textmodes/css-mode.el (css-ts-mode): Add new entries.
Diffstat (limited to 'lisp/textmodes/css-mode.el')
-rw-r--r-- | lisp/textmodes/css-mode.el | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/textmodes/css-mode.el b/lisp/textmodes/css-mode.el index 8a66986dc6f..822097a86d8 100644 --- a/lisp/textmodes/css-mode.el +++ b/lisp/textmodes/css-mode.el @@ -1822,6 +1822,7 @@ Use `\\[fill-paragraph]' to reformat CSS declaration blocks. It can also be used to fill comments. \\{css-mode-map}" + :syntax-table css-mode-syntax-table (when (treesit-ready-p 'css) ;; Borrowed from `css-mode'. (add-hook 'completion-at-point-functions |