diff options
author | bscan <10503608+bscan@users.noreply.github.com> | 2024-09-09 20:47:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-09 20:47:10 -0400 |
commit | de1344a97c883698d5630b01d8299a17a9d95148 (patch) | |
tree | 68fb9dac1e93c2c7844867669be357fcb3bf338f /server/src/parser.ts | |
parent | a02f86e1b18f619041ebcd5d4f7d4aaa6c8fa535 (diff) | |
parent | 5b3bc26c3bcedc9b42200798181f49dd83566588 (diff) | |
download | PerlNavigator-main.zip |
improves field handling when inherited attrs are changed
Diffstat (limited to 'server/src/parser.ts')
-rw-r--r-- | server/src/parser.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/parser.ts b/server/src/parser.ts index 951c8ee..dc52475 100644 --- a/server/src/parser.ts +++ b/server/src/parser.ts @@ -301,7 +301,7 @@ function constants(state: ParserState): boolean { function fields(state: ParserState): boolean { let match; // Moo/Moose/Object::Pad/Moops/Corinna attributes - if ((match = state.stmt.match(/^(?:has|field)(?:\s+|\()["']?([\$@%]?\w+)\b/))) { + if ((match = state.stmt.match(/^(?:has|field)(?:\s+|\()["']?\+?([\$@%]?\w+)\b/))) { const attr = match[1]; let type; if (attr.match(/^\w/)) { |