Skip to content

Commit 0a34b23

Browse files
authored
Merge pull request #15 from KaranAhlawat/new-faces
Update some font-lock-faces, and version of package
2 parents 38dc7a2 + a1ee877 commit 0a34b23

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

scala-ts-mode.el

+9-11
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
;; Copyright (C) 2023 Karan Ahlawat
44

55
;; Author: Karan Ahlawat <[email protected]>
6-
;; Version: 0.0.1
6+
;; Version: 1.0.0
77
;; Filename: scala-ts-mode.el
88
;; Package-Requires: ((emacs "29.1"))
99
;; Keywords: scala, languages, tree-sitter
@@ -136,7 +136,7 @@
136136
(open_modifier) @font-lock-keyword-face
137137
(inline_modifier) @font-lock-keyword-face
138138
[,@scala-ts--keywords-control] @font-lock-keyword-face
139-
(null_literal) @font-lock-constant-face
139+
(null_literal) @font-lock-builtin-face
140140
(wildcard) @font-lock-builtin-face
141141
(annotation) @font-lock-preprocessor-face
142142
;; `case' is handled specially here, to limit it into a context
@@ -225,11 +225,11 @@
225225
;; expressions
226226
(field_expression field: (identifier) @font-lock-property-use-face)
227227
;; this and super
228-
(((identifier) @font-lock-builtin-face)
229-
(:match "^this$" @font-lock-builtin-face))
230-
(((identifier) @font-lock-builtin-face)
231-
(:match "^super$" @font-lock-builtin-face))
232-
(identifier) @font-lock-variable-name-face)
228+
(((identifier) @font-lock-variable-use-face)
229+
(:match "^this$" @font-lock-variable-use-face))
230+
(((identifier) @font-lock-function-call-face)
231+
(:match "^super$" @font-lock-function-call-face))
232+
(identifier) @font-lock-variable-use-face)
233233

234234
:language 'scala
235235
:feature 'type
@@ -286,10 +286,8 @@
286286
(interpolation (block ["{" "}"] @font-lock-bracket-face))
287287
(interpolated_string_expression
288288
interpolator: (identifier) @font-lock-function-call-face)
289-
[
290-
(interpolated_string)
291-
"$"
292-
] @font-lock-string-face))
289+
(interpolated_string) @font-lock-string-face
290+
"$" @font-lock-punctuation-face))
293291
"Treesitter font-lock settings for `scala-ts-mode'.")
294292

295293
(defun scala-ts--indent-end (node _parent _bol)

0 commit comments

Comments
 (0)