Skip to content

Instantly share code, notes, and snippets.

@cimfalab
Created August 12, 2017 06:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cimfalab/73116661e38a36894f27de6f0debfdb5 to your computer and use it in GitHub Desktop.
Save cimfalab/73116661e38a36894f27de6f0debfdb5 to your computer and use it in GitHub Desktop.
vb.js
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