]> git.eshelyaron.com Git - emacs.git/commit
Update CMake support due to upstream changes (bug#64922)
authorVincenzo Pupillo <v.pupillo@gmail.com>
Sat, 29 Jul 2023 19:10:57 +0000 (21:10 +0200)
committerTheodor Thornhill <theo@thornhill.no>
Sat, 29 Jul 2023 19:10:57 +0000 (21:10 +0200)
commit7da1cee56b3cc35fad7ff6f67147bb77cda6bb98
tree5d9ae6645f26bc93a9ae29e6278772f6faf632b8
parentc2d95dd00e6cb0abaf4e7550f38c8c2c9ca22f2d
Update CMake support due to upstream changes (bug#64922)

A recent change in tree-sitter-cmake grammar support for CMake (commit
fe9b5e0), now put arguments are wrapped in a new argument_list node.
To support the old and new version of the grammar, a new function was
added on which string syntax highlighting now depends.

* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-compatibility-fe9b5e0): Indent helper
function to handle different tree-sitter-cmake version.
* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings): Use the new function to handle
the new argument_list node.
lisp/progmodes/cmake-ts-mode.el