feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent 310f0925ec
commit 692b051b09
1247 changed files with 6096 additions and 9074 deletions

View 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

View file

@ -0,0 +1,5 @@
([
(comment)
(documentation_comment)
] @injection.content
(#set! injection.language "comment"))