Skip to content

Commit

Permalink
chore: update perl + pod parsers (#11848)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbiveesh authored Nov 20, 2024
1 parent f9ac1f1 commit 4d36121
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
11 changes: 6 additions & 5 deletions runtime/queries/perl/highlights.scm
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[
"use" "no" "require" "package"
"use" "no" "require" "package" "class" "role"
] @keyword.control.import

[
"sub"
"sub" "method" "async" "extended"
] @keyword.function

[
Expand All @@ -17,7 +17,7 @@
] @keyword.control.repeat

[
"my" "our" "local"
"my" "our" "local" "state"
] @keyword.storage.modifier

[
Expand All @@ -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
Expand All @@ -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)
Expand Down

0 comments on commit 4d36121

Please sign in to comment.