nvim-treesitter/queries/fortran/highlights.scm

169 lines
1.8 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)
"dimension"
"intent"
"in"
"out"
"inout"
"type"
"endtype"
"attributes"
"global"
"device"
"host"
"grid_global"
2021-05-21 07:49:14 +05:30
"pointer"
2021-04-17 20:42:17 +02:00
] @type
[
"contains"
2021-04-18 02:17:56 +02:00
"public"
"private"
] @include
[
"implicit"
(none)
] @attribute
2021-04-18 02:17:56 +02:00
[
"function"
2021-04-17 20:42:17 +02:00
"endfunction"
"endprogram"
2021-04-18 02:17:56 +02:00
"subroutine"
2021-04-17 20:42:17 +02:00
"endsubroutine"
2021-04-18 02:17:56 +02:00
] @keyword.function
[
2021-05-21 07:49:14 +05:30
"module"
"endmodule"
2021-04-18 02:17:56 +02:00
"bind"
"call"
2021-05-21 07:49:14 +05:30
"class"
2021-04-18 02:17:56 +02:00
"continue"
"cycle"
2021-04-17 20:42:17 +02:00
"enumerator"
"equivalence"
"exit"
"format"
"goto"
"include"
"interface"
2021-05-21 07:49:14 +05:30
"endinterface"
"only"
2021-04-17 20:42:17 +02:00
"parameter"
2021-05-21 07:49:14 +05:30
"procedure"
2021-04-17 20:42:17 +02:00
"print"
"program"
2021-05-21 07:49:14 +05:30
"endprogram"
2021-04-17 20:42:17 +02:00
"read"
"return"
"stop"
"use"
"write"
2021-05-21 07:49:14 +05:30
"enum"
"endenum"
2021-04-17 20:42:17 +02:00
(default)
(procedure_qualifier)
] @keyword
[
"if"
"then"
"else"
"elseif"
"endif"
2021-05-21 07:49:14 +05:30
"where"
"endwhere"
2021-04-17 20:42:17 +02:00
] @conditional
[
"do"
"enddo"
"while"
"forall"
] @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
[
"("
")"
"["
"]"
] @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)