Created
August 12, 2017 06:10
-
-
Save cimfalab/73116661e38a36894f27de6f0debfdb5 to your computer and use it in GitHub Desktop.
vb.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dedent(_stream, state) { | |
state.currentIndent--; | |
} | |
function tokenLexer(stream, state) { | |
... | |
if (indentInfo === 'dedent') { | |
if (dedent(stream, state)) { | |
return ERRORCLASS; | |
} | |
} | |
delimiter_index = '])}'.indexOf(current); | |
if (delimiter_index !== -1) { | |
if (dedent(stream, state)) { | |
return ERRORCLASS; | |
} | |
} | |
return style; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment