|
3 | 3 | ;; Copyright (C) 2023 Karan Ahlawat
|
4 | 4 |
|
5 | 5 | ;; Author: Karan Ahlawat <[email protected]>
|
6 |
| -;; Version: 0.0.1 |
| 6 | +;; Version: 1.0.0 |
7 | 7 | ;; Filename: scala-ts-mode.el
|
8 | 8 | ;; Package-Requires: ((emacs "29.1"))
|
9 | 9 | ;; Keywords: scala, languages, tree-sitter
|
|
136 | 136 | (open_modifier) @font-lock-keyword-face
|
137 | 137 | (inline_modifier) @font-lock-keyword-face
|
138 | 138 | [,@scala-ts--keywords-control] @font-lock-keyword-face
|
139 |
| - (null_literal) @font-lock-constant-face |
| 139 | + (null_literal) @font-lock-builtin-face |
140 | 140 | (wildcard) @font-lock-builtin-face
|
141 | 141 | (annotation) @font-lock-preprocessor-face
|
142 | 142 | ;; `case' is handled specially here, to limit it into a context
|
|
225 | 225 | ;; expressions
|
226 | 226 | (field_expression field: (identifier) @font-lock-property-use-face)
|
227 | 227 | ;; 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) |
233 | 233 |
|
234 | 234 | :language 'scala
|
235 | 235 | :feature 'type
|
|
286 | 286 | (interpolation (block ["{" "}"] @font-lock-bracket-face))
|
287 | 287 | (interpolated_string_expression
|
288 | 288 | 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)) |
293 | 291 | "Treesitter font-lock settings for `scala-ts-mode'.")
|
294 | 292 |
|
295 | 293 | (defun scala-ts--indent-end (node _parent _bol)
|
|
0 commit comments