> From: Theodor Thornhill <theo@thornhill.no> > Cc: 64818@debbugs.gnu.org > Date: Mon, 24 Jul 2023 15:26:36 +0200 > > Eli Zaretskii <eliz@gnu.org> writes: > > >> From: Wang Diancheng <dianchengwang@gmail.com> > >> Date: Mon, 24 Jul 2023 12:49:06 +0800 > >> > >> I use the latest tree-sitter and tree-sitter modules. > >> Only preprocessor instructions and comments are highlighted, please see > >> attached > >> screenshot. BTW c-ts-mode highlight is OK. > >> > >> Following are values of treesit-font-lock-feature-list and > >> treesit-font-lock-level: > >> > >> treesit-font-lock-feature-list is a variable defined in âtreesit.elâ. > >> > >> Its value is > >> ((comment definition) (keyword preprocessor string type) > >> (assignment constant escape-sequence label literal) > >> (bracket delimiter error function operator property variable)) > >> Local in buffer sql_select.cc; global value is nil > >> > >> treesit-font-lock-level is a variable defined in âtreesit.elâ. > >> > >> Its value is 3 > > > > Thanks. > > > > Yuan, Theo: can you please look into this? I can confirm the above > > behavior, and I also see it in the very first pretest 29.0.90. So > > either some change broke c++-ts-mode before April, or maybe the latest > > changes in the C++ grammar library did that. treesit-explore-mode > > seems to show that the code is parsed correctly, so why aren't > > fontifications working? > > With the version of the grammar on my system everything worked > perfectly, but I updated the grammar, and now I can reproduce. So it > seems something upstream broke it. I'll bisect tree-sitter-cpp and > figure out whats breaking it. Thanks. The other report about this perhaps gives a hint: > From: David Come <david.come@ageagle.com> > Date: Mon, 24 Jul 2023 09:13:33 +0000 > msip_labels: > > When opening a C++ file with major mode c++-ts-mode, there is not > coloration > > In the Messsage buffer, I see > > Error during redisplay: (jit-lock-function 14) signaled (treesit-query-error > "Node type error at" 99 "(true) > @font-lock-constant-face (false) @font-lock-constant-face (null) > @font-lock-constant-face (nullptr) > @font-lock-constant-face" "Debug the query with `treesit-query-validate'") [2 > times]
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4