summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorJihyeon Gim <potatogim@potatogim.net>2024-08-21 19:25:59 +0900
committerJihyeon Gim <potatogim@potatogim.net>2024-08-22 03:42:18 +0900
commit5b3bc26c3bcedc9b42200798181f49dd83566588 (patch)
treed1bf52688135589a71289cbd15b5a765d976a15a /server
parent597da6f89d6cd6f9dac2c39a8ce02e449345c6e4 (diff)
downloadPerlNavigator-5b3bc26c3bcedc9b42200798181f49dd83566588.zip
improves field handling when inherited attrs are changed
Signed-off-by: Jihyeon Gim <potatogim@potatogim.net>
Diffstat (limited to 'server')
-rw-r--r--server/src/parser.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/src/parser.ts b/server/src/parser.ts
index 700a5a5..f74ea97 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/)) {