aboutsummaryrefslogtreecommitdiffstats
path: root/queries/smithy
diff options
context:
space:
mode:
authorPham Huy Hoang <hoangtun0810@gmail.com>2024-01-06 15:05:50 +0900
committerChristian Clason <c.clason@uni-graz.at>2024-01-19 16:58:37 +0100
commit57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch)
tree70bf645539882b88e6fa129cefd30986b89bbac3 /queries/smithy
parentci: add query lint job (diff)
downloadnvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst
nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip
chore: query formatting
Diffstat (limited to 'queries/smithy')
-rw-r--r--queries/smithy/highlights.scm43
1 files changed, 22 insertions, 21 deletions
diff --git a/queries/smithy/highlights.scm b/queries/smithy/highlights.scm
index bb54dad73..1d0321864 100644
--- a/queries/smithy/highlights.scm
+++ b/queries/smithy/highlights.scm
@@ -1,20 +1,15 @@
; Preproc
-
(control_key) @keyword.directive
; Namespace
-
(namespace) @module
; Includes
-
-[
- "use"
-] @keyword.import
+"use" @keyword.import
; Builtins
-
(primitive) @type.builtin
+
[
"enum"
"intEnum"
@@ -24,35 +19,35 @@
] @type.builtin
; Fields (Members)
-
; (field) @variable.member
-
(key_identifier) @variable.member
+
(shape_member
(field) @variable.member)
+
(operation_field) @variable.member
+
(operation_error_field) @variable.member
; Constants
-
(enum_member
(enum_field) @constant)
; Types
-
(identifier) @type
+
(structure_resource
(shape_id) @type)
; Attributes
-
(mixins
(shape_id) @attribute)
+
(trait_statement
- (shape_id (#set! "priority" 105)) @attribute)
+ (shape_id
+ (#set! "priority" 105)) @attribute)
; Operators
-
[
"@"
"-"
@@ -61,7 +56,6 @@
] @operator
; Keywords
-
[
"namespace"
"service"
@@ -76,8 +70,8 @@
] @keyword
; Literals
-
(string) @string
+
(escape_sequence) @string.escape
(number) @number
@@ -89,17 +83,25 @@
(null) @constant.builtin
; Misc
-
[
"$"
"#"
] @punctuation.special
-["{" "}"] @punctuation.bracket
+[
+ "{"
+ "}"
+] @punctuation.bracket
-["(" ")"] @punctuation.bracket
+[
+ "("
+ ")"
+] @punctuation.bracket
-["[" "]"] @punctuation.bracket
+[
+ "["
+ "]"
+] @punctuation.bracket
[
":"
@@ -107,7 +109,6 @@
] @punctuation.delimiter
; Comments
-
(comment) @comment @spell
(documentation_comment) @comment.documentation @spell