summaryrefslogtreecommitdiff
path: root/browser-ext
diff options
context:
space:
mode:
authorbscan <10503608+bscan@users.noreply.github.com>2024-09-09 20:47:10 -0400
committerGitHub <noreply@github.com>2024-09-09 20:47:10 -0400
commitde1344a97c883698d5630b01d8299a17a9d95148 (patch)
tree68fb9dac1e93c2c7844867669be357fcb3bf338f /browser-ext
parenta02f86e1b18f619041ebcd5d4f7d4aaa6c8fa535 (diff)
parent5b3bc26c3bcedc9b42200798181f49dd83566588 (diff)
downloadPerlNavigator-main.zip
Merge pull request #140 from potatogim/mainHEADmain
improves field handling when inherited attrs are changed
Diffstat (limited to 'browser-ext')
-rw-r--r--browser-ext/src/web-parse.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/browser-ext/src/web-parse.ts b/browser-ext/src/web-parse.ts
index f5db7b6..4c0e80f 100644
--- a/browser-ext/src/web-parse.ts
+++ b/browser-ext/src/web-parse.ts
@@ -253,7 +253,7 @@ 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/)){