diff options
| author | ObserverOfTime <chronobserver@disroot.org> | 2022-10-30 11:56:53 +0200 |
|---|---|---|
| committer | ObserverOfTime <chronobserver@disroot.org> | 2022-11-26 13:17:51 +0200 |
| commit | abd7f85040ffaf7d2947e38bc130c98b70d1a85b (patch) | |
| tree | e7f3025b34e0de9cc730c9e04e30074d49dd1a1b | |
| parent | highlights(solidity): use more specific groups (diff) | |
| download | nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar.gz nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar.bz2 nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar.lz nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar.xz nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.tar.zst nvim-treesitter-abd7f85040ffaf7d2947e38bc130c98b70d1a85b.zip | |
highlights(scala): use more specific groups
| -rw-r--r-- | queries/scala/highlights.scm | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/queries/scala/highlights.scm b/queries/scala/highlights.scm index 2c8175cb8..2ae5b17c4 100644 --- a/queries/scala/highlights.scm +++ b/queries/scala/highlights.scm @@ -32,7 +32,7 @@ name: (identifier) @type) (type_definition - name: (type_identifier) @type) + name: (type_identifier) @type.definition) ; method definition @@ -121,22 +121,15 @@ ;; keywords [ - "abstract" "case" "class" "extends" - "final" "finally" ;; `forSome` existential types not implemented yet - "implicit" - "lazy" ;; `macro` not implemented yet "object" "override" "package" - "private" - "protected" - "sealed" "trait" "type" "val" @@ -144,8 +137,21 @@ "with" ] @keyword -(null_literal) @keyword -(wildcard) @keyword +[ + "abstract" + "final" + "implicit" + "lazy" + "private" + "protected" + "sealed" +] @type.qualifier + +(null_literal) @constant.builtin + +(wildcard) @parameter + +(annotation) @attribute ;; special keywords |
