[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master a4a0957b6b3: Improve typescript-ts-mode fontification (bug#75824)
From: |
Yuan Fu |
Subject: |
master a4a0957b6b3: Improve typescript-ts-mode fontification (bug#75824) |
Date: |
Fri, 31 Jan 2025 21:54:28 -0500 (EST) |
branch: master
commit a4a0957b6b3b1db858524ac6d4dc3d951f65960b
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Yuan Fu <casouri@gmail.com>
Improve typescript-ts-mode fontification (bug#75824)
* lisp/progmodes/typescript-ts-mode.el:
(typescript-ts-mode--operators): Add syntax-highlighting ??
operator.
(typescript-ts-mode--font-lock-settings): Add "undefined" as
recognized constant.
---
lisp/progmodes/typescript-ts-mode.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/typescript-ts-mode.el
b/lisp/progmodes/typescript-ts-mode.el
index 937146ddf23..e91c42069be 100644
--- a/lisp/progmodes/typescript-ts-mode.el
+++ b/lisp/progmodes/typescript-ts-mode.el
@@ -188,7 +188,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
(defvar typescript-ts-mode--operators
'("=" "+=" "-=" "*=" "/=" "%=" "**=" "<<=" ">>=" ">>>=" "&=" "^="
- "|=" "&&=" "||=" "??=" "==" "!=" "===" "!==" ">" ">=" "<" "<=" "+"
+ "|=" "&&=" "||=" "??" "??=" "==" "!=" "===" "!==" ">" ">=" "<" "<=" "+"
"-" "*" "/" "%" "++" "--" "**" "&" "|" "^" "~" "<<" ">>" ">>>"
"&&" "||" "!" "?.")
"TypeScript operators for tree-sitter font-locking.")
@@ -271,7 +271,7 @@ Argument LANGUAGE is either `typescript' or `tsx'."
:feature 'constant
`(((identifier) @font-lock-constant-face
(:match "\\`[A-Z_][0-9A-Z_]*\\'" @font-lock-constant-face))
- [(true) (false) (null)] @font-lock-constant-face)
+ [(true) (false) (null) (undefined)] @font-lock-constant-face)
:language language
:feature 'keyword
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master a4a0957b6b3: Improve typescript-ts-mode fontification (bug#75824),
Yuan Fu <=