diff --git a/languages.toml b/languages.toml index d572bee90..1551d76b9 100644 --- a/languages.toml +++ b/languages.toml @@ -1487,7 +1487,7 @@ indent = { tab-width = 2, unit = " " } [[grammar]] name = "perl" -source = { git = "https://github.com/tree-sitter-perl/tree-sitter-perl", rev = "e99bb5283805db4cb86c964722d709df21b0ac16" } +source = { git = "https://github.com/tree-sitter-perl/tree-sitter-perl", rev = "72a08a496a23212f23802490ef6f4700d68cfd0e" } [[language]] name = "pod" @@ -1497,7 +1497,7 @@ file-types = ["pod"] [[grammar]] name = "pod" -source = { git = "https://github.com/tree-sitter-perl/tree-sitter-pod", rev = "39da859947b94abdee43e431368e1ae975c0a424" } +source = { git = "https://github.com/tree-sitter-perl/tree-sitter-pod", rev = "0bf8387987c21bf2f8ed41d2575a8f22b139687f" } [[language]] name = "racket" diff --git a/runtime/queries/perl/highlights.scm b/runtime/queries/perl/highlights.scm index c2496f9fb..bf5918b95 100644 --- a/runtime/queries/perl/highlights.scm +++ b/runtime/queries/perl/highlights.scm @@ -1,9 +1,9 @@ [ - "use" "no" "require" "package" + "use" "no" "require" "package" "class" "role" ] @keyword.control.import [ - "sub" + "sub" "method" "async" "extended" ] @keyword.function [ @@ -17,7 +17,7 @@ ] @keyword.control.repeat [ - "my" "our" "local" + "my" "our" "local" "state" ] @keyword.storage.modifier [ @@ -29,9 +29,10 @@ ] @constant.builtin (phaser_statement phase: _ @keyword.directive) +(class_phaser_statement phase: _ @keyword.directive) [ - "or" "and" + "or" "xor" "and" "eq" "ne" "cmp" "lt" "le" "ge" "gt" "isa" ] @keyword.operator @@ -55,7 +56,7 @@ [(quoted_regexp) (match_regexp)] @string.regexp -(autoquoted_bareword _?) @string.special +(autoquoted_bareword) @string.special [(scalar) (arraylen)] @variable (scalar_deref_expression ["->" "$" "*"] @variable)