diff options
| author | Michael Albinus | 2023-06-17 18:15:47 +0200 |
|---|---|---|
| committer | Michael Albinus | 2023-06-17 18:15:47 +0200 |
| commit | 111efb0dd7f33dbc4c19706ecca705cae7b7eff9 (patch) | |
| tree | d66770502d8fa36c35a8dedae0661372ef98e45d | |
| parent | 948b471756e517166a6d8bbbcfda83e4b572d553 (diff) | |
| parent | 95091b77f0bbb2ae1aa94ef4a413626e7d434d58 (diff) | |
| download | emacs-111efb0dd7f33dbc4c19706ecca705cae7b7eff9.tar.gz emacs-111efb0dd7f33dbc4c19706ecca705cae7b7eff9.zip | |
Merge branch 'emacs-29' of git.sv.gnu.org:/srv/git/emacs into emacs-29
| -rw-r--r-- | lisp/progmodes/java-ts-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/js.el | 6 | ||||
| -rw-r--r-- | lisp/progmodes/ruby-ts-mode.el | 2 | ||||
| -rw-r--r-- | lisp/progmodes/rust-ts-mode.el | 13 | ||||
| -rw-r--r-- | lisp/progmodes/typescript-ts-mode.el | 4 |
5 files changed, 15 insertions, 12 deletions
diff --git a/lisp/progmodes/java-ts-mode.el b/lisp/progmodes/java-ts-mode.el index 463872dcbc8..7f2fc4188a3 100644 --- a/lisp/progmodes/java-ts-mode.el +++ b/lisp/progmodes/java-ts-mode.el | |||
| @@ -168,7 +168,7 @@ the available version of Tree-sitter for java." | |||
| 168 | :override t | 168 | :override t |
| 169 | :feature 'constant | 169 | :feature 'constant |
| 170 | `(((identifier) @font-lock-constant-face | 170 | `(((identifier) @font-lock-constant-face |
| 171 | (:match "\\`[A-Z_][A-Z_\\d]*\\'" @font-lock-constant-face)) | 171 | (:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face)) |
| 172 | [(true) (false)] @font-lock-constant-face) | 172 | [(true) (false)] @font-lock-constant-face) |
| 173 | :language 'java | 173 | :language 'java |
| 174 | :override t | 174 | :override t |
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 414b6eb2baf..48fecf69537 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -106,7 +106,7 @@ name.") | |||
| 106 | 106 | ||
| 107 | (defconst js--plain-method-re | 107 | (defconst js--plain-method-re |
| 108 | (concat "^\\s-*?\\(" js--dotted-name-re "\\)\\.prototype" | 108 | (concat "^\\s-*?\\(" js--dotted-name-re "\\)\\.prototype" |
| 109 | "\\.\\(" js--name-re "\\)\\s-*?=\\s-*?\\(\\(:?async[ \t\n]+\\)function\\)\\_>") | 109 | "\\.\\(" js--name-re "\\)\\s-*?=\\s-*?\\(\\(?:async[ \t\n]+\\)function\\)\\_>") |
| 110 | "Regexp matching an explicit JavaScript prototype \"method\" declaration. | 110 | "Regexp matching an explicit JavaScript prototype \"method\" declaration. |
| 111 | Group 1 is a (possibly-dotted) class name, group 2 is a method name, | 111 | Group 1 is a (possibly-dotted) class name, group 2 is a method name, |
| 112 | and group 3 is the `function' keyword.") | 112 | and group 3 is the `function' keyword.") |
| @@ -3493,7 +3493,7 @@ This function is intended for use in `after-change-functions'." | |||
| 3493 | :language 'javascript | 3493 | :language 'javascript |
| 3494 | :feature 'constant | 3494 | :feature 'constant |
| 3495 | '(((identifier) @font-lock-constant-face | 3495 | '(((identifier) @font-lock-constant-face |
| 3496 | (:match "\\`[A-Z_][A-Z_\\d]*\\'" @font-lock-constant-face)) | 3496 | (:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face)) |
| 3497 | 3497 | ||
| 3498 | [(true) (false) (null)] @font-lock-constant-face) | 3498 | [(true) (false) (null)] @font-lock-constant-face) |
| 3499 | 3499 | ||
| @@ -3612,7 +3612,7 @@ This function is intended for use in `after-change-functions'." | |||
| 3612 | :feature 'number | 3612 | :feature 'number |
| 3613 | '((number) @font-lock-number-face | 3613 | '((number) @font-lock-number-face |
| 3614 | ((identifier) @font-lock-number-face | 3614 | ((identifier) @font-lock-number-face |
| 3615 | (:match "\\`\\(:?NaN\\|Infinity\\)\\'" @font-lock-number-face))) | 3615 | (:match "\\`\\(?:NaN\\|Infinity\\)\\'" @font-lock-number-face))) |
| 3616 | 3616 | ||
| 3617 | :language 'javascript | 3617 | :language 'javascript |
| 3618 | :feature 'operator | 3618 | :feature 'operator |
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el index 91d65a2777b..4b951f7606f 100644 --- a/lisp/progmodes/ruby-ts-mode.el +++ b/lisp/progmodes/ruby-ts-mode.el | |||
| @@ -1021,7 +1021,7 @@ leading double colon is not added." | |||
| 1021 | (:match "\\`\\$[#\"'`:?]" @global_var)) | 1021 | (:match "\\`\\$[#\"'`:?]" @global_var)) |
| 1022 | ;; ?' ?" ?` are character literals. | 1022 | ;; ?' ?" ?` are character literals. |
| 1023 | ((character) @char | 1023 | ((character) @char |
| 1024 | (:match "\\`?[#\"'`:?]" @char)) | 1024 | (:match "\\`\\?[#\"'`:?]" @char)) |
| 1025 | ;; Symbols like :+, :<=> or :foo=. | 1025 | ;; Symbols like :+, :<=> or :foo=. |
| 1026 | ((simple_symbol) @symbol | 1026 | ((simple_symbol) @symbol |
| 1027 | (:match "\\s." @symbol)) | 1027 | (:match "\\s." @symbol)) |
diff --git a/lisp/progmodes/rust-ts-mode.el b/lisp/progmodes/rust-ts-mode.el index b55af0b49e3..999c1d7ae96 100644 --- a/lisp/progmodes/rust-ts-mode.el +++ b/lisp/progmodes/rust-ts-mode.el | |||
| @@ -143,7 +143,7 @@ | |||
| 143 | eol)) | 143 | eol)) |
| 144 | @font-lock-builtin-face))) | 144 | @font-lock-builtin-face))) |
| 145 | ((identifier) @font-lock-type-face | 145 | ((identifier) @font-lock-type-face |
| 146 | (:match "\\`\\(:?Err\\|Ok\\|None\\|Some\\)\\'" @font-lock-type-face))) | 146 | (:match "\\`\\(?:Err\\|Ok\\|None\\|Some\\)\\'" @font-lock-type-face))) |
| 147 | 147 | ||
| 148 | :language 'rust | 148 | :language 'rust |
| 149 | :feature 'comment | 149 | :feature 'comment |
| @@ -232,9 +232,12 @@ | |||
| 232 | (type_identifier) @font-lock-type-face | 232 | (type_identifier) @font-lock-type-face |
| 233 | ((scoped_identifier name: (identifier) @rust-ts-mode--fontify-tail)) | 233 | ((scoped_identifier name: (identifier) @rust-ts-mode--fontify-tail)) |
| 234 | ((scoped_identifier path: (identifier) @font-lock-type-face) | 234 | ((scoped_identifier path: (identifier) @font-lock-type-face) |
| 235 | (:match | 235 | (:match ,(rx bos |
| 236 | "\\`\\(u8\\|u16\\|u32\\|u64\\|u128\\|usize\\|i8\\|i16\\|i32\\|i64\\|i128\\|isize\\|char\\|str\\)\\'" | 236 | (or "u8" "u16" "u32" "u64" "u128" "usize" |
| 237 | @font-lock-type-face)) | 237 | "i8" "i16" "i32" "i64" "i128" "isize" |
| 238 | "char" "str") | ||
| 239 | eos) | ||
| 240 | @font-lock-type-face)) | ||
| 238 | ((scoped_identifier path: (identifier) @rust-ts-mode--fontify-scope)) | 241 | ((scoped_identifier path: (identifier) @rust-ts-mode--fontify-scope)) |
| 239 | ((scoped_type_identifier path: (identifier) @rust-ts-mode--fontify-scope)) | 242 | ((scoped_type_identifier path: (identifier) @rust-ts-mode--fontify-scope)) |
| 240 | (type_identifier) @font-lock-type-face) | 243 | (type_identifier) @font-lock-type-face) |
| @@ -249,7 +252,7 @@ | |||
| 249 | :feature 'constant | 252 | :feature 'constant |
| 250 | `((boolean_literal) @font-lock-constant-face | 253 | `((boolean_literal) @font-lock-constant-face |
| 251 | ((identifier) @font-lock-constant-face | 254 | ((identifier) @font-lock-constant-face |
| 252 | (:match "\\`[A-Z][A-Z\\d_]*\\'" @font-lock-constant-face))) | 255 | (:match "\\`[A-Z][0-9A-Z_]*\\'" @font-lock-constant-face))) |
| 253 | 256 | ||
| 254 | :language 'rust | 257 | :language 'rust |
| 255 | :feature 'variable | 258 | :feature 'variable |
diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index 5df34de0472..68aefd90f92 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el | |||
| @@ -153,7 +153,7 @@ Argument LANGUAGE is either `typescript' or `tsx'." | |||
| 153 | :language language | 153 | :language language |
| 154 | :feature 'constant | 154 | :feature 'constant |
| 155 | `(((identifier) @font-lock-constant-face | 155 | `(((identifier) @font-lock-constant-face |
| 156 | (:match "\\`[A-Z_][A-Z_\\d]*\\'" @font-lock-constant-face)) | 156 | (:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face)) |
| 157 | [(true) (false) (null)] @font-lock-constant-face) | 157 | [(true) (false) (null)] @font-lock-constant-face) |
| 158 | 158 | ||
| 159 | :language language | 159 | :language language |
| @@ -311,7 +311,7 @@ Argument LANGUAGE is either `typescript' or `tsx'." | |||
| 311 | :feature 'number | 311 | :feature 'number |
| 312 | `((number) @font-lock-number-face | 312 | `((number) @font-lock-number-face |
| 313 | ((identifier) @font-lock-number-face | 313 | ((identifier) @font-lock-number-face |
| 314 | (:match "\\`\\(:?NaN\\|Infinity\\)\\'" @font-lock-number-face))) | 314 | (:match "\\`\\(?:NaN\\|Infinity\\)\\'" @font-lock-number-face))) |
| 315 | 315 | ||
| 316 | :language language | 316 | :language language |
| 317 | :feature 'operator | 317 | :feature 'operator |