diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2025-11-25 10:34:35 +0100 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2025-11-25 10:40:58 +0100 |
| commit | c5871d9d870c866fea9f271f1a3b3f29049a4793 (patch) | |
| tree | 1004ce29020d3abb400a7703d1cdfef81616788b /runtime/queries/perl/highlights.scm | |
| parent | fix(haskell): correct use of supertypes in `(decl)` patterns (diff) | |
| download | nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar.gz nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar.bz2 nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar.lz nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar.xz nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.tar.zst nvim-treesitter-c5871d9d870c866fea9f271f1a3b3f29049a4793.zip | |
fix(perl): correct use of supertypes
Diffstat (limited to 'runtime/queries/perl/highlights.scm')
| -rw-r--r-- | runtime/queries/perl/highlights.scm | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/runtime/queries/perl/highlights.scm b/runtime/queries/perl/highlights.scm index d52baab44..6baee6b9b 100644 --- a/runtime/queries/perl/highlights.scm +++ b/runtime/queries/perl/highlights.scm @@ -256,15 +256,37 @@ ; all post deref sigils highlighted as operators, and the unrolly star is a special char (postfix_deref [ - "$" + (scalar_deref_expression + "$" @operator + "*" @character.special) + (array_deref_expression + "@" @operator + "*" @character.special) + (arraylen_deref_expression + "$#" @operator + "*" @character.special) + (hash_deref_expression + "%" @operator + "*" @character.special) + (amper_deref_expression + "&" @operator + "*" @character.special) + (glob_deref_expression + "*" @operator + "*" @character.special) + ]) + +(slices/slice_expression + [ + arrayref: _ + hashref: _ + ] + [ "@" "%" - "*" - "$#" - ] @operator - "*" @character.special) + ] @operator) -(slices +(slices/keyval_expression [ arrayref: _ hashref: _ |
