Skip to content

Commit

Permalink
fix: add hyphens as a valid identifier
Browse files Browse the repository at this point in the history
  • Loading branch information
pauliesnug authored Jun 15, 2024
1 parent 152aeca commit e6ac5bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class PreprocessorHighlight(private val project: Project) : HighlightVisitor, Du

private val WHITESPACES_PATTERN = "\\s+".toRegex()
private val EXPR_PATTERN = "(.+)(==|!=|<=|>=|<|>)(.+)".toRegex()
private val IDENTIFIER_PATTERN = "[A-Za-z0-9]+".toRegex()
private val IDENTIFIER_PATTERN = "[A-Za-z0-9-]+".toRegex()
private val OR_PATTERN = Pattern.quote("||")
private val AND_PATTERN = Pattern.quote("&&")
private val SPLIT_PATTERN = Pattern.compile("$OR_PATTERN|$AND_PATTERN")
Expand Down

0 comments on commit e6ac5bf

Please sign in to comment.