aboutsummaryrefslogtreecommitdiffstats
path: root/queries
diff options
context:
space:
mode:
authoroponkork <oponkork@tutanota.com>2021-06-27 10:29:58 +0530
committerStephan Seitz <stephan.lauf@yahoo.de>2021-07-02 22:52:28 +0200
commitaf9dfe99ef378459f31f2c2baf1e75d0ab662d80 (patch)
tree9f1b4da70c599e5b92098ea339c7c280b8c8ff23 /queries
parenthighlight template interpolation enclosures as punctuation.bracket; cleanup (diff)
downloadnvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar.gz
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar.bz2
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar.lz
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar.xz
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.tar.zst
nvim-treesitter-af9dfe99ef378459f31f2c2baf1e75d0ab662d80.zip
feat(fortran): Improved and sorted highlight queries
Diffstat (limited to 'queries')
-rw-r--r--queries/fortran/highlights.scm55
1 files changed, 31 insertions, 24 deletions
diff --git a/queries/fortran/highlights.scm b/queries/fortran/highlights.scm
index 846c25842..efc3817f8 100644
--- a/queries/fortran/highlights.scm
+++ b/queries/fortran/highlights.scm
@@ -6,48 +6,55 @@
[
(intrinsic_type)
+ "allocatable"
+ "attributes"
+ "device"
"dimension"
- "intent"
- "in"
- "out"
- "inout"
- "type"
"endtype"
- "attributes"
"global"
- "device"
- "host"
"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