mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 10:20:11 -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)
|
(intrinsic_type)
|
||||||
"dimension"
|
"allocatable"
|
||||||
"intent"
|
|
||||||
"in"
|
|
||||||
"out"
|
|
||||||
"inout"
|
|
||||||
"type"
|
|
||||||
"endtype"
|
|
||||||
"attributes"
|
"attributes"
|
||||||
"global"
|
|
||||||
"device"
|
"device"
|
||||||
"host"
|
"dimension"
|
||||||
|
"endtype"
|
||||||
|
"global"
|
||||||
"grid_global"
|
"grid_global"
|
||||||
|
"host"
|
||||||
|
"import"
|
||||||
|
"in"
|
||||||
|
"inout"
|
||||||
|
"intent"
|
||||||
|
"optional"
|
||||||
|
"out"
|
||||||
"pointer"
|
"pointer"
|
||||||
|
"type"
|
||||||
|
"value"
|
||||||
] @type
|
] @type
|
||||||
|
|
||||||
[
|
[
|
||||||
"contains"
|
"contains"
|
||||||
"public"
|
|
||||||
"private"
|
"private"
|
||||||
|
"public"
|
||||||
] @include
|
] @include
|
||||||
|
|
||||||
[
|
[
|
||||||
"implicit"
|
(none)
|
||||||
(none)
|
"implicit"
|
||||||
] @attribute
|
] @attribute
|
||||||
|
|
||||||
[
|
[
|
||||||
"function"
|
|
||||||
"endfunction"
|
"endfunction"
|
||||||
"endprogram"
|
"endprogram"
|
||||||
"subroutine"
|
|
||||||
"endsubroutine"
|
"endsubroutine"
|
||||||
|
"function"
|
||||||
|
"subroutine"
|
||||||
] @keyword.function
|
] @keyword.function
|
||||||
|
|
||||||
[
|
[
|
||||||
"module"
|
|
||||||
"endmodule"
|
|
||||||
"bind"
|
"bind"
|
||||||
"call"
|
"call"
|
||||||
"class"
|
"class"
|
||||||
"continue"
|
"continue"
|
||||||
"cycle"
|
"cycle"
|
||||||
|
"endenum"
|
||||||
|
"endinterface"
|
||||||
|
"endmodule"
|
||||||
|
"endprogram"
|
||||||
|
"enum"
|
||||||
"enumerator"
|
"enumerator"
|
||||||
"equivalence"
|
"equivalence"
|
||||||
"exit"
|
"exit"
|
||||||
|
|
@ -55,39 +62,37 @@
|
||||||
"goto"
|
"goto"
|
||||||
"include"
|
"include"
|
||||||
"interface"
|
"interface"
|
||||||
"endinterface"
|
"module"
|
||||||
|
"namelist"
|
||||||
"only"
|
"only"
|
||||||
"parameter"
|
"parameter"
|
||||||
"procedure"
|
|
||||||
"print"
|
"print"
|
||||||
|
"procedure"
|
||||||
"program"
|
"program"
|
||||||
"endprogram"
|
|
||||||
"read"
|
"read"
|
||||||
"return"
|
"return"
|
||||||
"stop"
|
"stop"
|
||||||
"use"
|
"use"
|
||||||
"write"
|
"write"
|
||||||
"enum"
|
|
||||||
"endenum"
|
|
||||||
(default)
|
(default)
|
||||||
(procedure_qualifier)
|
(procedure_qualifier)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
[
|
[
|
||||||
"if"
|
|
||||||
"then"
|
|
||||||
"else"
|
"else"
|
||||||
"elseif"
|
"elseif"
|
||||||
"endif"
|
"endif"
|
||||||
"where"
|
|
||||||
"endwhere"
|
"endwhere"
|
||||||
|
"if"
|
||||||
|
"then"
|
||||||
|
"where"
|
||||||
] @conditional
|
] @conditional
|
||||||
|
|
||||||
[
|
[
|
||||||
"do"
|
"do"
|
||||||
"enddo"
|
"enddo"
|
||||||
"while"
|
|
||||||
"forall"
|
"forall"
|
||||||
|
"while"
|
||||||
] @repeat
|
] @repeat
|
||||||
|
|
||||||
[
|
[
|
||||||
|
|
@ -122,6 +127,8 @@
|
||||||
")"
|
")"
|
||||||
"["
|
"["
|
||||||
"]"
|
"]"
|
||||||
|
"<<<"
|
||||||
|
">>>"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
;; Delimiter
|
;; Delimiter
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue