branch: elpa/typst-ts-mode
commit 35b3e2fa34647ea68ada6649f67a02cd5ff0fb21
Author: Ziqi Yang <[email protected]>
Commit: Ziqi Yang <[email protected]>

    feat: add error face
---
 typst-ts-mode.el | 20 ++++++++++++++------
 1 file changed, 14 insertions(+), 6 deletions(-)

diff --git a/typst-ts-mode.el b/typst-ts-mode.el
index 4972d7e92c..bc9d13a779 100644
--- a/typst-ts-mode.el
+++ b/typst-ts-mode.el
@@ -123,6 +123,18 @@ is eliminated."
   :set-after '(typst-ts-markup-header-same-height)
   :group 'typst-ts-faces)
 
+;; Common Face 
==================================================================
+
+(defface typst-ts-shorthand-face
+  '((t :inherit shadow))
+  "Face for linebreak."
+  :group 'typst-ts-faces)
+
+(defface typst-ts-error-face
+  '((t :inherit font-lock-warning-face))
+  "Face for linebreak."
+  :group 'typst-ts-faces)
+
 ;; Markup Faces 
=================================================================
 
 (defface typst-ts-markup-header-face
@@ -165,11 +177,6 @@ is eliminated."
   "See `typst-ts-markup-header-face'."
   :group 'typst-ts-faces)
 
-(defface typst-ts-shorthand-face
-  '((t :inherit shadow))
-  "Face for linebreak."
-  :group 'typst-ts-faces)
-
 (defface typst-ts-markup-url-face
   '((t :inherit link))
   "Face for url."
@@ -319,7 +326,8 @@ is eliminated."
 
     :language typst
     :feature common
-    ((shorthand) @typst-ts-shorthand-face)
+    ((shorthand) @typst-ts-shorthand-face
+     (ERROR) @typst-ts-error-face)
 
     :language typst
     :feature markup-basic

Reply via email to