We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48d159a commit dd44c94Copy full SHA for dd44c94
mode/groovy/groovy.js
@@ -129,10 +129,8 @@ CodeMirror.defineMode("groovy", function(config) {
129
130
function tokenVariableDeref(stream, state) {
131
var next = stream.match(/^(\.|[\w\$_]+)/)
132
- if (!next) {
133
- state.tokenize.pop()
134
- return state.tokenize[state.tokenize.length-1](stream, state)
135
- }
+ if (!next || !stream.match(next[0] == "." ? /^[\w$_]/ : /^\./)) state.tokenize.pop()
+ if (!next) return state.tokenize[state.tokenize.length-1](stream, state)
136
return next[0] == "." ? null : "variable"
137
}
138
0 commit comments