Skip to content

Commit

Permalink
fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
appt2 committed Apr 24, 2024
1 parent 30674c2 commit e4f7aec
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -739,17 +739,17 @@ public boolean isAutoCompleteChar(char ch) {
@Override
public int getIndentAdvance(String content) {
try {
HtmlLexer lexer = new HtmlLexer(CharStreams.fromReader(new StringReader(content)));
HTMLLexer lexer = new HTMLLexer(CharStreams.fromReader(new StringReader(content)));
Token token;
int advance = 0;
while (((token = lexer.nextToken()) != null && token.getType() != token.EOF)) {
switch (token.getType()) {
case HtmlLexer.BlockStart:
case HtmlLexer.Less:
case HTMLLexer.BlockStart:
case HTMLLexer.Less:
advance++;
break;
case HtmlLexer.BlockEnd:
case HtmlLexer.SLASH_CLOSE:
case HTMLLexer.BlockEnd:
case HTMLLexer.SLASH_CLOSE:
advance--;
break;
}
Expand Down

0 comments on commit e4f7aec

Please sign in to comment.