mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 10:50:06 -04:00
highlights(fortran): extend queries
This commit is contained in:
parent
9820c8ca7d
commit
88e8eefb2d
1 changed files with 64 additions and 20 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
;; by @oponkork
|
;; by @oponkork with extensions by @theHamsta
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
(string_literal) @string
|
(string_literal) @string
|
||||||
|
|
@ -23,40 +23,49 @@
|
||||||
"grid_global"
|
"grid_global"
|
||||||
] @type
|
] @type
|
||||||
|
|
||||||
|
[
|
||||||
|
"module"
|
||||||
|
"endmodule"
|
||||||
|
"contains"
|
||||||
|
"public"
|
||||||
|
"private"
|
||||||
|
] @include
|
||||||
|
|
||||||
|
[
|
||||||
|
"implicit"
|
||||||
|
(none)
|
||||||
|
] @annotation
|
||||||
|
|
||||||
|
[
|
||||||
|
"function"
|
||||||
|
"endfunction"
|
||||||
|
"endprogram"
|
||||||
|
"subroutine"
|
||||||
|
"endsubroutine"
|
||||||
|
] @keyword.function
|
||||||
|
|
||||||
[
|
[
|
||||||
"bind"
|
"bind"
|
||||||
"call"
|
"call"
|
||||||
"contains"
|
|
||||||
"continue"
|
"continue"
|
||||||
"cycle"
|
"cycle"
|
||||||
"endfunction"
|
|
||||||
"endmodule"
|
|
||||||
"endprogram"
|
|
||||||
"endsubroutine"
|
|
||||||
"enumerator"
|
"enumerator"
|
||||||
"equivalence"
|
"equivalence"
|
||||||
"exit"
|
"exit"
|
||||||
"format"
|
"format"
|
||||||
"function"
|
|
||||||
"goto"
|
"goto"
|
||||||
"include"
|
"include"
|
||||||
"interface"
|
"interface"
|
||||||
"module"
|
|
||||||
"parameter"
|
"parameter"
|
||||||
"print"
|
"print"
|
||||||
"program"
|
"program"
|
||||||
"read"
|
"read"
|
||||||
"return"
|
"return"
|
||||||
"stop"
|
"stop"
|
||||||
"subroutine"
|
|
||||||
"use"
|
"use"
|
||||||
"write"
|
"write"
|
||||||
"implicit"
|
|
||||||
(none)
|
|
||||||
(default)
|
(default)
|
||||||
(procedure_qualifier)
|
(procedure_qualifier)
|
||||||
(private_statement)
|
|
||||||
(public_statement)
|
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -75,18 +84,53 @@
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
[
|
[
|
||||||
|
"*"
|
||||||
|
"+"
|
||||||
|
"-"
|
||||||
|
"/"
|
||||||
|
"="
|
||||||
"<"
|
"<"
|
||||||
">"
|
">"
|
||||||
"<="
|
"<="
|
||||||
">="
|
">="
|
||||||
"=="
|
"=="
|
||||||
"/="
|
"/="
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
[
|
||||||
|
"\\.and\\."
|
||||||
|
"\\.or\\."
|
||||||
|
"\\.lt\\."
|
||||||
|
"\\.gt\\."
|
||||||
|
"\\.ge\\."
|
||||||
|
"\\.le\\."
|
||||||
|
"\\.eq\\."
|
||||||
|
"\\.eqv\\."
|
||||||
|
"\\.neqv\\."
|
||||||
] @keyword.operator
|
] @keyword.operator
|
||||||
|
|
||||||
; ;; Brackets
|
;; Brackets
|
||||||
; [
|
[
|
||||||
; "("
|
"("
|
||||||
; ")"
|
")"
|
||||||
; "["
|
"["
|
||||||
; "]"
|
"]"
|
||||||
; ] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
;; Delimiter
|
||||||
|
[
|
||||||
|
"::"
|
||||||
|
","
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(parameters
|
||||||
|
(identifier) @parameter)
|
||||||
|
|
||||||
|
(subroutine_statement
|
||||||
|
(name) @function)
|
||||||
|
|
||||||
|
(subroutine_call
|
||||||
|
(name) @function)
|
||||||
|
|
||||||
|
(module_statement
|
||||||
|
(name) @namespace)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue