diff options
| author | Basil L. Contovounesios | 2023-06-13 13:45:08 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2023-06-13 14:35:14 +0100 |
| commit | 8dc08333eeaa5938227512cb14fa288f4d6823b6 (patch) | |
| tree | 161c26c611dacc9cf9d1ffb138a367e3d357d0a3 /lisp/progmodes/python.el | |
| parent | 8225ade6151a2d3564b8f68fc8157731c3a1b60f (diff) | |
| download | emacs-8dc08333eeaa5938227512cb14fa288f4d6823b6.tar.gz emacs-8dc08333eeaa5938227512cb14fa288f4d6823b6.zip | |
Fix bol/bos anchors in tree-sitter :match regexps
Further regexp fixes to follow separately (bug#64019#29).
* lisp/progmodes/c-ts-mode.el (c-ts-mode--font-lock-settings):
* lisp/progmodes/cmake-ts-mode.el
(cmake-ts-mode--font-lock-settings):
* lisp/progmodes/java-ts-mode.el (java-ts-mode--font-lock-settings):
* lisp/progmodes/js.el (js--treesit-font-lock-settings):
* lisp/progmodes/python.el (python--treesit-settings):
* lisp/progmodes/rust-ts-mode.el (rust-ts-mode--font-lock-settings):
* lisp/progmodes/sh-script.el (sh-mode--treesit-settings):
* lisp/progmodes/typescript-ts-mode.el
(typescript-ts-mode--font-lock-settings):
* test/src/treesit-tests.el (treesit-query-api): Anchor :match
regexps at beginning/end of string, not line.
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index fd196df7550..d9ca37145e1 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1106,7 +1106,7 @@ fontified." | |||
| 1106 | :language 'python | 1106 | :language 'python |
| 1107 | `([,@python--treesit-keywords] @font-lock-keyword-face | 1107 | `([,@python--treesit-keywords] @font-lock-keyword-face |
| 1108 | ((identifier) @font-lock-keyword-face | 1108 | ((identifier) @font-lock-keyword-face |
| 1109 | (:match "^self$" @font-lock-keyword-face))) | 1109 | (:match "\\`self\\'" @font-lock-keyword-face))) |
| 1110 | 1110 | ||
| 1111 | :feature 'definition | 1111 | :feature 'definition |
| 1112 | :language 'python | 1112 | :language 'python |