Skip to content

Commit dff9738

Browse files
committed
[puppet mode] Make regexp for regexps non-greedy
Issue #2696
1 parent 58d2a8a commit dff9738

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mode/puppet/puppet.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ CodeMirror.defineMode("puppet", function () {
176176
// Match characters that we are going to assume
177177
// are trying to be regex
178178
if (ch == '/') {
179-
stream.match(/.*\//);
179+
stream.match(/.*?\//);
180180
return 'variable-3';
181181
}
182182
// Match all the numbers

0 commit comments

Comments
 (0)