mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
114
runtime/queries/smithy/highlights.scm
Normal file
114
runtime/queries/smithy/highlights.scm
Normal file
|
|
@ -0,0 +1,114 @@
|
|||
; Preproc
|
||||
(control_key) @keyword.directive
|
||||
|
||||
; Namespace
|
||||
(namespace) @module
|
||||
|
||||
; Includes
|
||||
"use" @keyword.import
|
||||
|
||||
; Builtins
|
||||
(primitive) @type.builtin
|
||||
|
||||
[
|
||||
"enum"
|
||||
"intEnum"
|
||||
"list"
|
||||
"map"
|
||||
"set"
|
||||
"structure"
|
||||
"union"
|
||||
"namespace"
|
||||
"service"
|
||||
"operation"
|
||||
"resource"
|
||||
] @keyword.type
|
||||
|
||||
; 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)
|
||||
|
||||
; Operators
|
||||
[
|
||||
"@"
|
||||
"-"
|
||||
"="
|
||||
":="
|
||||
] @operator
|
||||
|
||||
; Keywords
|
||||
[
|
||||
"metadata"
|
||||
"apply"
|
||||
"for"
|
||||
"with"
|
||||
] @keyword
|
||||
|
||||
; Literals
|
||||
(string) @string
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
(number) @number
|
||||
|
||||
(float) @number.float
|
||||
|
||||
(boolean) @boolean
|
||||
|
||||
(null) @constant.builtin
|
||||
|
||||
; Misc
|
||||
[
|
||||
"$"
|
||||
"#"
|
||||
] @punctuation.special
|
||||
|
||||
[
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
":"
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
; Comments
|
||||
(comment) @comment @spell
|
||||
|
||||
(documentation_comment) @comment.documentation @spell
|
||||
5
runtime/queries/smithy/injections.scm
Normal file
5
runtime/queries/smithy/injections.scm
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
([
|
||||
(comment)
|
||||
(documentation_comment)
|
||||
] @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue