Skip to content

Commit e7202ce

Browse files
committed
Removed redundant check in lexer
1 parent 81b9c4d commit e7202ce

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ compileKotlin {
2424

2525
intellij {
2626
// version = 'IC-2024.1.4'
27-
version = 'IU-2024.1.4'
27+
version = 'CL-2024.1.4'
2828
updateSinceUntilBuild = true
2929
// plugins = ['JavaScript']
3030
}

src/main/kotlin/glsl/plugin/language/GlslLexer.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,6 @@ class GlslLexer : LexerBase() {
8282
}
8383

8484
if (state == MACRO_IDENTIFIER_STATE && myTokenType == IDENTIFIER) {
85-
if (myTokenType !in listOf(IDENTIFIER, WHITE_SPACE)) {
86-
lexer.yybegin(MACRO_BODY_STATE)
87-
return
88-
}
8985
val macroType = getMacroType() ?: return
9086
macroDefine = GlslMacro(tokenText, macroType)
9187
} else if (state == MACRO_FUNC_DEFINITION_STATE && myTokenType == MACRO_FUNC_PARAM) {

0 commit comments

Comments
 (0)