ts-parser-perl 1.0.1

Perl grammar for tree-sitter
Documentation
1
2
3
4
5
6
7
// NOTE - this is generated by unicode_ranges.pl
module.exports = {
  // these patterns are simply XID_Start followed by XID_Continue, minus things which don't match perl's \p{Word}
  identifier: /[_\p{XID_Start}][\p{XID_Continue}]*/v,
  // this adds in any amount of :: before or in between identifiers
  bareword:   /((::)|([_\p{XID_Start}][\p{XID_Continue}]*))+/v,
}