mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 11:36:54 -04:00
feat(fortran): Improved and sorted highlight queries
This commit is contained in:
parent
8eb29ef93e
commit
af9dfe99ef
1 changed files with 32 additions and 25 deletions
|
|
@ -6,48 +6,55 @@
|
|||
|
||||
[
|
||||
(intrinsic_type)
|
||||
"dimension"
|
||||
"intent"
|
||||
"in"
|
||||
"out"
|
||||
"inout"
|
||||
"type"
|
||||
"endtype"
|
||||
"allocatable"
|
||||
"attributes"
|
||||
"global"
|
||||
"device"
|
||||
"host"
|
||||
"dimension"
|
||||
"endtype"
|
||||
"global"
|
||||
"grid_global"
|
||||
"host"
|
||||
"import"
|
||||
"in"
|
||||
"inout"
|
||||
"intent"
|
||||
"optional"
|
||||
"out"
|
||||
"pointer"
|
||||
"type"
|
||||
"value"
|
||||
] @type
|
||||
|
||||
[
|
||||
"contains"
|
||||
"public"
|
||||
"private"
|
||||
"public"
|
||||
] @include
|
||||
|
||||
[
|
||||
"implicit"
|
||||
(none)
|
||||
(none)
|
||||
"implicit"
|
||||
] @attribute
|
||||
|
||||
[
|
||||
"function"
|
||||
"endfunction"
|
||||
"endprogram"
|
||||
"subroutine"
|
||||
"endsubroutine"
|
||||
"function"
|
||||
"subroutine"
|
||||
] @keyword.function
|
||||
|
||||
[
|
||||
"module"
|
||||
"endmodule"
|
||||
"bind"
|
||||
"call"
|
||||
"class"
|
||||
"continue"
|
||||
"cycle"
|
||||
"endenum"
|
||||
"endinterface"
|
||||
"endmodule"
|
||||
"endprogram"
|
||||
"enum"
|
||||
"enumerator"
|
||||
"equivalence"
|
||||
"exit"
|
||||
|
|
@ -55,39 +62,37 @@
|
|||
"goto"
|
||||
"include"
|
||||
"interface"
|
||||
"endinterface"
|
||||
"module"
|
||||
"namelist"
|
||||
"only"
|
||||
"parameter"
|
||||
"procedure"
|
||||
"print"
|
||||
"procedure"
|
||||
"program"
|
||||
"endprogram"
|
||||
"read"
|
||||
"return"
|
||||
"stop"
|
||||
"use"
|
||||
"write"
|
||||
"enum"
|
||||
"endenum"
|
||||
(default)
|
||||
(procedure_qualifier)
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"if"
|
||||
"then"
|
||||
"else"
|
||||
"elseif"
|
||||
"endif"
|
||||
"where"
|
||||
"endwhere"
|
||||
"if"
|
||||
"then"
|
||||
"where"
|
||||
] @conditional
|
||||
|
||||
[
|
||||
"do"
|
||||
"enddo"
|
||||
"while"
|
||||
"forall"
|
||||
"while"
|
||||
] @repeat
|
||||
|
||||
[
|
||||
|
|
@ -122,6 +127,8 @@
|
|||
")"
|
||||
"["
|
||||
"]"
|
||||
"<<<"
|
||||
">>>"
|
||||
] @punctuation.bracket
|
||||
|
||||
;; Delimiter
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue