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 8c56813 commit bf58bbbCopy full SHA for bf58bbb
IDE/Contents/Source/PolycodeTextEditor.cpp
@@ -371,7 +371,7 @@ std::vector<SyntaxHighlightToken> PolycodeSyntaxHighlighter::parseLua(String tex
371
tokens.push_back(SyntaxHighlightToken(line, type));
372
tokens.push_back(SyntaxHighlightToken(ch, ch_type));
373
374
- if(ch == '-' && lastSeparator == '-' && mode != MODE_STRING) {
+ if(ch == '-' && lastSeparator == '-' && text[i-1] == lastSeparator && mode != MODE_STRING) {
375
isComment = true;
376
tokens[tokens.size()-1].type = MODE_COMMENT;
377
tokens[tokens.size()-2].type = MODE_COMMENT;
0 commit comments