nvim-treesitter/queries/fortran/highlights.scm

177 lines
1.9 KiB
Scheme
Raw Normal View History

2021-04-17 20:42:17 +02:00
(identifier) @variable
(string_literal) @string
(number_literal) @number
(boolean_literal) @boolean
(comment) @comment
[
(intrinsic_type)
"allocatable"
"attributes"
"device"
2021-04-17 20:42:17 +02:00
"dimension"
"endtype"
"global"
"grid_global"
"host"
"import"
"in"
"inout"
"intent"
"optional"
"out"
2021-05-21 07:49:14 +05:30
"pointer"
"type"
"value"
2021-04-17 20:42:17 +02:00
] @type
[
"contains"
2021-04-18 02:17:56 +02:00
"private"
"public"
2021-04-18 02:17:56 +02:00
] @include
[
(none)
"implicit"
] @attribute
2021-04-18 02:17:56 +02:00
[
2021-04-17 20:42:17 +02:00
"endfunction"
"endprogram"
"endsubroutine"
"function"
"procedure"
"subroutine"
2021-04-18 02:17:56 +02:00
] @keyword.function
[
"bind"
"call"
2021-05-21 07:49:14 +05:30
"class"
2021-04-18 02:17:56 +02:00
"continue"
"cycle"
"endenum"
"endinterface"
"endmodule"
"endprogram"
"enum"
2021-04-17 20:42:17 +02:00
"enumerator"
"equivalence"
"exit"
"format"
"goto"
"include"
"interface"
"module"
"namelist"
2021-05-21 07:49:14 +05:30
"only"
2021-04-17 20:42:17 +02:00
"parameter"
"print"
"program"
"read"
"stop"
"use"
"write"
(default)
(procedure_qualifier)
] @keyword
"return" @keyword.return
2021-04-17 20:42:17 +02:00
[
"else"
"elseif"
"endif"
2021-05-21 07:49:14 +05:30
"endwhere"
"if"
"then"
"where"
2021-04-17 20:42:17 +02:00
] @conditional
[
"do"
"enddo"
"forall"
"while"
2021-04-17 20:42:17 +02:00
] @repeat
[
2021-04-18 02:17:56 +02:00
"*"
"+"
"-"
"/"
"="
2021-04-17 20:42:17 +02:00
"<"
">"
"<="
">="
"=="
"/="
2021-04-18 02:17:56 +02:00
] @operator
[
"\\.and\\."
"\\.or\\."
"\\.lt\\."
"\\.gt\\."
"\\.ge\\."
"\\.le\\."
"\\.eq\\."
"\\.eqv\\."
"\\.neqv\\."
2021-04-17 20:42:17 +02:00
] @keyword.operator
2021-04-18 02:17:56 +02:00
;; Brackets
[
"("
")"
"["
"]"
"<<<"
">>>"
2021-04-18 02:17:56 +02:00
] @punctuation.bracket
;; Delimiter
[
"::"
","
2021-05-21 07:49:14 +05:30
"%"
] @punctuation.delimiter
2021-04-18 02:17:56 +02:00
(parameters
(identifier) @parameter)
2021-05-21 07:49:14 +05:30
(program_statement
(name) @namespace)
(module_statement
(name) @namespace)
(function_statement
(name) @function)
2021-04-18 02:17:56 +02:00
(subroutine_statement
(name) @function)
2021-05-21 07:49:14 +05:30
(end_program_statement
(name) @namespace)
(end_module_statement
(name) @namespace)
(end_function_statement
(name) @function)
(end_subroutine_statement
(name) @function)
2021-04-18 02:17:56 +02:00
(subroutine_call
(name) @function)
2021-05-21 07:49:14 +05:30
(keyword_argument
name: (identifier) @keyword)
(derived_type_member_expression
(type_member) @property)