summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
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 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/)) {