feat(fortran): Improved and sorted highlight queries

This commit is contained in:
oponkork 2021-06-27 10:29:58 +05:30 committed by Stephan Seitz
parent 8eb29ef93e
commit af9dfe99ef

View file

@ -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