mirror of
https://github.com/jashkenas/coffeescript.git
synced 2026-02-19 03:44:23 -05:00
disabled interpolations in normal regexes
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
if (!(action)) {
|
||||
return [patternString, '$$ = $1;', options];
|
||||
}
|
||||
action = (match = (action + '').match(unwrap)) ? match[1] : ("(" + (action) + "())");
|
||||
action = (match = (action + '').match(unwrap)) ? match[1] : ("(" + action + "())");
|
||||
action = action.replace(/\b(?:[A-Z][a-z]+Node|Expressions)\b/g, 'yy.$&');
|
||||
return [patternString, ("$$ = " + (action) + ";"), options];
|
||||
return [patternString, ("$$ = " + action + ";"), options];
|
||||
};
|
||||
grammar = {
|
||||
Root: [
|
||||
|
||||
Reference in New Issue
Block a user