summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--browser-ext/src/web-parse.ts2
-rw-r--r--server/src/parser.ts2
2 files changed, 2 insertions, 2 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/)){
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/)) {