spacevim/bundle/nvim-treesitter-0.9.1/queries/fortran/highlights.scm
JIe 2bb7059579
Some checks failed
Detach Plugins / check (FlyGrep.vim) (push) Has been cancelled
Detach Plugins / check (GitHub.vim) (push) Has been cancelled
Detach Plugins / check (JavaUnit.vim) (push) Has been cancelled
Detach Plugins / check (SourceCounter.vim) (push) Has been cancelled
Detach Plugins / check (cpicker.nvim) (push) Has been cancelled
Detach Plugins / check (dein-ui.vim) (push) Has been cancelled
Detach Plugins / check (git.vim) (push) Has been cancelled
Detach Plugins / check (iedit.vim) (push) Has been cancelled
Detach Plugins / check (scrollbar.vim) (push) Has been cancelled
Detach Plugins / check (vim-chat) (push) Has been cancelled
Detach Plugins / check (vim-cheat) (push) Has been cancelled
Detach Plugins / check (vim-todo) (push) Has been cancelled
Detach Plugins / check (xmake.vim) (push) Has been cancelled
test / Linux (nvim, nightly) (push) Has been cancelled
test / Linux (nvim, v0.3.8) (push) Has been cancelled
test / Linux (nvim, v0.4.0) (push) Has been cancelled
test / Linux (nvim, v0.4.2) (push) Has been cancelled
test / Linux (nvim, v0.4.3) (push) Has been cancelled
test / Linux (nvim, v0.4.4) (push) Has been cancelled
test / Linux (nvim, v0.5.0) (push) Has been cancelled
test / Linux (nvim, v0.5.1) (push) Has been cancelled
test / Linux (nvim, v0.6.0) (push) Has been cancelled
test / Linux (nvim, v0.6.1) (push) Has been cancelled
test / Linux (nvim, v0.7.0) (push) Has been cancelled
test / Linux (nvim, v0.7.2) (push) Has been cancelled
test / Linux (nvim, v0.8.0) (push) Has been cancelled
test / Linux (nvim, v0.8.1) (push) Has been cancelled
test / Linux (nvim, v0.8.2) (push) Has been cancelled
test / Linux (nvim, v0.8.3) (push) Has been cancelled
test / Linux (nvim, v0.9.0) (push) Has been cancelled
test / Linux (nvim, v0.9.1) (push) Has been cancelled
test / Linux (true, vim, v7.4.052) (push) Has been cancelled
test / Linux (true, vim, v7.4.1689) (push) Has been cancelled
test / Linux (true, vim, v7.4.629) (push) Has been cancelled
test / Linux (true, vim, v8.0.0027) (push) Has been cancelled
test / Linux (true, vim, v8.0.0183) (push) Has been cancelled
test / Linux (vim, nightly) (push) Has been cancelled
test / Linux (vim, v8.0.0184) (push) Has been cancelled
test / Linux (vim, v8.0.1453) (push) Has been cancelled
test / Linux (vim, v8.1.2269) (push) Has been cancelled
test / Linux (vim, v8.2.2434) (push) Has been cancelled
test / Linux (vim, v8.2.3995) (push) Has been cancelled
test / Windows (nvim, nightly) (push) Has been cancelled
test / Windows (nvim, v0.3.8) (push) Has been cancelled
test / Windows (nvim, v0.4.2) (push) Has been cancelled
test / Windows (nvim, v0.4.3) (push) Has been cancelled
test / Windows (nvim, v0.4.4) (push) Has been cancelled
test / Windows (nvim, v0.5.0) (push) Has been cancelled
test / Windows (nvim, v0.5.1) (push) Has been cancelled
test / Windows (nvim, v0.6.0) (push) Has been cancelled
test / Windows (nvim, v0.6.1) (push) Has been cancelled
test / Windows (nvim, v0.7.0) (push) Has been cancelled
test / Windows (nvim, v0.7.2) (push) Has been cancelled
test / Windows (nvim, v0.8.0) (push) Has been cancelled
test / Windows (nvim, v0.8.1) (push) Has been cancelled
test / Windows (nvim, v0.8.2) (push) Has been cancelled
test / Windows (nvim, v0.8.3) (push) Has been cancelled
test / Windows (nvim, v0.9.0) (push) Has been cancelled
test / Windows (nvim, v0.9.1) (push) Has been cancelled
test / Windows (vim, nightly) (push) Has been cancelled
test / Windows (vim, v7.4.1185) (push) Has been cancelled
test / Windows (vim, v7.4.1689) (push) Has been cancelled
test / Windows (vim, v8.0.0027) (push) Has been cancelled
test / Windows (vim, v8.0.1453) (push) Has been cancelled
test / Windows (vim, v8.1.2269) (push) Has been cancelled
test / Windows (vim, v8.2.2434) (push) Has been cancelled
test / Windows (vim, v8.2.3995) (push) Has been cancelled
docker / docker (push) Has been cancelled
mirror / check (coding) (push) Has been cancelled
mirror / check (gitee) (push) Has been cancelled
mirror / check (gitlab) (push) Has been cancelled
init
2024-08-21 14:17:26 +08:00

333 lines
3.6 KiB
Scheme

; Preprocs
(preproc_file_line) @preproc
; Namespaces
(program_statement
(name) @namespace)
(end_program_statement
(name) @namespace)
(module_statement
(name) @namespace)
(end_module_statement
(name) @namespace)
(submodule_statement
(name) @namespace)
(end_submodule_statement
(name) @namespace)
; Includes
[
"import"
"include"
"use"
] @include
(import_statement
","
["all" "none"] @keyword)
; Attributes
[
(none)
"implicit"
"intent"
] @attribute
(implicit_statement
"type" @attribute)
; Keywords
[
"attributes"
"associate"
"block"
"class"
"classis"
"contains"
"default"
"dimension"
"endassociate"
"endenum"
"endinterface"
"endmodule"
"endselect"
"endsubmodule"
"endtype"
"enum"
"enumerator"
"equivalence"
"extends"
"goto"
"interface"
"intrinsic"
"non_intrinsic"
"module"
"submodule"
"namelist"
"parameter"
"quiet"
"rank"
"save"
"selectcase"
"selectrank"
"selecttype"
"sequence"
"stop"
"target"
"type"
"typeis"
] @keyword
[
(default)
] @keyword
; Types
[
(type_name)
] @type
[
(intrinsic_type)
] @type.builtin
; Qualifiers
[
"abstract"
"allocatable"
"automatic"
"constant"
"contiguous"
"data"
"deferred"
"device"
"external"
"family"
"final"
"generic"
"global"
"grid_global"
"host"
"initial"
"local"
"local_init"
"managed"
"nopass"
"non_overridable"
"optional"
"pass"
"pinned"
"pointer"
"private"
"property"
"protected"
"public"
"shared"
"static"
"texture"
"value"
"volatile"
(procedure_qualifier)
] @type.qualifier
[
"common"
"in"
"inout"
"out"
] @storageclass
; Labels
[
(statement_label)
(statement_label_reference)
] @label
[
"call"
"endfunction"
"endprogram"
"endprocedure"
"endsubroutine"
"function"
"procedure"
"program"
"subroutine"
] @keyword.function
[
"result"
"return"
] @keyword.return
; Functions
(function_statement
(name) @function)
(end_function_statement
(name) @function)
(subroutine_statement
(name) @function)
(end_subroutine_statement
(name) @function)
(module_procedure_statement
(name) @function)
(end_module_procedure_statement
(name) @function)
(subroutine_call
(identifier) @function.call)
[
"character"
"close"
"bind"
"format"
"open"
"print"
"read"
"write"
] @function.builtin
; Exceptions
[
"error"
] @exception
; Conditionals
[
"else"
"elseif"
"elsewhere"
"endif"
"endwhere"
"if"
"then"
"where"
] @conditional
; Repeats
[
"do"
"concurrent"
"enddo"
"endforall"
"forall"
"while"
"continue"
"cycle"
"exit"
] @repeat
; Variables
(identifier) @variable
; Parameters
(keyword_argument
name: (identifier) @parameter)
(parameters
(identifier) @parameter)
; Properties
(derived_type_member_expression
(type_member) @property)
; Operators
[
"+"
"-"
"*"
"**"
"/"
"="
"<"
">"
"<="
">="
"=="
"/="
"//"
(assumed_rank)
] @operator
[
"\\.and\\."
"\\.or\\."
"\\.eqv\\."
"\\.neqv\\."
"\\.lt\\."
"\\.gt\\."
"\\.le\\."
"\\.ge\\."
"\\.eq\\."
"\\.ne\\."
"\\.not\\."
] @keyword.operator
; Punctuation
[ "[" "]" ] @punctuation.bracket
[ "(" ")" ] @punctuation.bracket
[ "<<<" ">>>" ] @punctuation.bracket
(array_literal
["(/" "/)"] @punctuation.bracket)
[
":"
","
"/"
"%"
"::"
"=>"
] @punctuation.delimiter
; Literals
(string_literal) @string
(number_literal) @number
(boolean_literal) @boolean
(null_literal) @constant.builtin
; Comments
(comment) @comment @spell
((comment) @comment.documentation
(#lua-match? @comment.documentation "^!>"))
; Errors
(ERROR) @error