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) (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