aboutsummaryrefslogtreecommitdiffstats
path: root/queries/perl
diff options
context:
space:
mode:
authorVeesh Goldman <rabbiveesh@gmail.com>2024-09-22 21:15:38 +0300
committerGitHub <noreply@github.com>2024-09-22 14:15:38 -0400
commit20b5cbfa92cac93ab78f3fefeb6169e4ea303189 (patch)
tree39a6700d4f31fa9c86882d81d07cc4cc0408a653 /queries/perl
parentbot(lockfile): update d, ocaml, ocaml_interface, supercollider (diff)
downloadnvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar.gz
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar.bz2
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar.lz
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar.xz
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.tar.zst
nvim-treesitter-20b5cbfa92cac93ab78f3fefeb6169e4ea303189.zip
feat(perl): support more modern syntax
Diffstat (limited to 'queries/perl')
-rw-r--r--queries/perl/highlights.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/queries/perl/highlights.scm b/queries/perl/highlights.scm
index f654577f6..554743b32 100644
--- a/queries/perl/highlights.scm
+++ b/queries/perl/highlights.scm
@@ -46,6 +46,11 @@
] @keyword.function
[
+ "async"
+ "await"
+] @keyword.coroutine
+
+[
"map"
"grep"
"sort"
@@ -54,6 +59,7 @@
[
"package"
"class"
+ "role"
] @keyword.import
[
@@ -63,6 +69,7 @@
"my"
"our"
"local"
+ "dynamically"
"state"
"field"
"last"
@@ -82,10 +89,16 @@
(phaser_statement
phase: _ @keyword)
+(class_phaser_statement
+ phase: _ @keyword)
+
[
"or"
+ "xor"
"and"
"eq"
+ "equ"
+ "eqr"
"ne"
"cmp"
"lt"
@@ -106,6 +119,8 @@
(version)
] @number
+(boolean) @boolean
+
[
(string_literal)
(interpolated_string_literal)