chore: query formatting

This commit is contained in:
Pham Huy Hoang 2024-01-06 15:05:50 +09:00 committed by Christian Clason
parent 79975d6557
commit 57a8acf0c4
674 changed files with 18466 additions and 12648 deletions

View file

@ -1,11 +1,11 @@
;; by @oponkork
; by @oponkork
[
(if_statement)
(where_statement)
(enum_statement)
(do_loop_statement)
(derived_type_definition)
(function)
(subroutine)
(interface)
(if_statement)
(where_statement)
(enum_statement)
(do_loop_statement)
(derived_type_definition)
(function)
(subroutine)
(interface)
] @fold

View file

@ -1,9 +1,7 @@
; Preprocs
(preproc_file_line) @keyword.directive
; Namespaces
(program_statement
(name) @module)
@ -23,7 +21,6 @@
(name) @module)
; Includes
[
"import"
"include"
@ -32,10 +29,12 @@
(import_statement
","
["all" "none"] @keyword)
[
"all"
"none"
] @keyword)
; Attributes
[
(none)
"implicit"
@ -46,7 +45,6 @@
"type" @attribute)
; Keywords
[
"attributes"
"associate"
@ -88,22 +86,14 @@
"typeis"
] @keyword
[
(default)
] @keyword
(default) @keyword
; Types
(type_name) @type
[
(type_name)
] @type
[
(intrinsic_type)
] @type.builtin
(intrinsic_type) @type.builtin
; Qualifiers
[
"abstract"
"allocatable"
@ -150,7 +140,6 @@
] @keyword.storage
; Labels
[
(statement_label)
(statement_label_reference)
@ -174,7 +163,6 @@
] @keyword.return
; Functions
(function_statement
(name) @function)
@ -208,13 +196,9 @@
] @function.builtin
; Exceptions
[
"error"
] @keyword.exception
"error" @keyword.exception
; Conditionals
[
"else"
"elseif"
@ -227,7 +211,6 @@
] @keyword.conditional
; Repeats
[
"do"
"concurrent"
@ -241,11 +224,9 @@
] @keyword.repeat
; Variables
(identifier) @variable
; Parameters
(keyword_argument
name: (identifier) @variable.parameter)
@ -253,12 +234,10 @@
(identifier) @variable.parameter)
; Properties
(derived_type_member_expression
(type_member) @property)
; Operators
[
"+"
"-"
@ -291,15 +270,26 @@
] @keyword.operator
; Punctuation
[
"["
"]"
] @punctuation.bracket
[ "[" "]" ] @punctuation.bracket
[
"("
")"
] @punctuation.bracket
[ "(" ")" ] @punctuation.bracket
[ "<<<" ">>>" ] @punctuation.bracket
[
"<<<"
">>>"
] @punctuation.bracket
(array_literal
["(/" "/)"] @punctuation.bracket)
[
"(/"
"/)"
] @punctuation.bracket)
[
":"
@ -311,7 +301,6 @@
] @punctuation.delimiter
; Literals
(string_literal) @string
(number_literal) @number
@ -321,7 +310,6 @@
(null_literal) @constant.builtin
; Comments
(comment) @comment @spell
((comment) @comment.documentation