diff options
| author | nverno | 2023-11-12 11:36:09 -0800 |
|---|---|---|
| committer | Eli Zaretskii | 2023-11-15 15:07:12 +0200 |
| commit | f054e9924cc3fda38a710b76db668cfab8b7d1d9 (patch) | |
| tree | 0209436bef1c57ffd93b05f0ae8d7f14f0b4a887 /lisp | |
| parent | 03d2e26108b21b4a9c86a30e5552f9535f4245ac (diff) | |
| download | emacs-f054e9924cc3fda38a710b76db668cfab8b7d1d9.tar.gz emacs-f054e9924cc3fda38a710b76db668cfab8b7d1d9.zip | |
Fix font-lock for string escapes in lua-ts-mode
* lua-ts-mode.el (lua-ts--font-lock-settings): Apply font-lock
to the entire string containing an escape sequence. (Bug#67135)
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/progmodes/lua-ts-mode.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/lua-ts-mode.el b/lisp/progmodes/lua-ts-mode.el index 4856888344c..a910d759c83 100644 --- a/lisp/progmodes/lua-ts-mode.el +++ b/lisp/progmodes/lua-ts-mode.el | |||
| @@ -149,10 +149,6 @@ | |||
| 149 | '(["," ";"] @font-lock-delimiter-face) | 149 | '(["," ";"] @font-lock-delimiter-face) |
| 150 | 150 | ||
| 151 | :language 'lua | 151 | :language 'lua |
| 152 | :feature 'escape | ||
| 153 | '((escape_sequence) @font-lock-escape-face) | ||
| 154 | |||
| 155 | :language 'lua | ||
| 156 | :feature 'constant | 152 | :feature 'constant |
| 157 | '((variable_list | 153 | '((variable_list |
| 158 | attribute: (attribute (["<" ">"] (identifier)))) | 154 | attribute: (attribute (["<" ">"] (identifier)))) |
| @@ -214,6 +210,11 @@ | |||
| 214 | '((string) @font-lock-string-face) | 210 | '((string) @font-lock-string-face) |
| 215 | 211 | ||
| 216 | :language 'lua | 212 | :language 'lua |
| 213 | :feature 'escape | ||
| 214 | :override t | ||
| 215 | '((escape_sequence) @font-lock-escape-face) | ||
| 216 | |||
| 217 | :language 'lua | ||
| 217 | :feature 'comment | 218 | :feature 'comment |
| 218 | '((comment) @font-lock-comment-face | 219 | '((comment) @font-lock-comment-face |
| 219 | (hash_bang_line) @font-lock-comment-face) | 220 | (hash_bang_line) @font-lock-comment-face) |