Skip to content

fix(cimnotebook): stop highlighting bare "<" operator as IRI in IntelliJ (GH-52)#54

Open
spah-soptim wants to merge 1 commit into
mainfrom
fix/GH-52-lt-operator-highlighting
Open

fix(cimnotebook): stop highlighting bare "<" operator as IRI in IntelliJ (GH-52)#54
spah-soptim wants to merge 1 commit into
mainfrom
fix/GH-52-lt-operator-highlighting

Conversation

@spah-soptim

Copy link
Copy Markdown
Member
  • The hand-written lexer treated every "<" as the start of an IRI reference and consumed to ">" or end of line, so comparisons like FILTER(?a < ?b) colored the rest of the line as an IRI.
  • "<" now only opens an IRI token when a closing ">" follows with no character that IRIREF forbids in between (whitespace/controls, <"{}|^`), matching the TextMate rule the VS Code extension already uses; otherwise it lexes as the less-than operator.
  • Add JUnit 5 test wiring to the Gradle build and lexer regression tests.

Closes #52

…liJ (GH-52)

- The hand-written lexer treated every "<" as the start of an IRI reference
  and consumed to ">" or end of line, so comparisons like FILTER(?a < ?b)
  colored the rest of the line as an IRI.
- "<" now only opens an IRI token when a closing ">" follows with no
  character that IRIREF forbids in between (whitespace/controls, <"{}|^`\),
  matching the TextMate rule the VS Code extension already uses; otherwise
  it lexes as the less-than operator.
- Add JUnit 5 test wiring to the Gradle build and lexer regression tests.
@spah-soptim spah-soptim self-assigned this Jul 18, 2026
@spah-soptim spah-soptim added bug Something isn't working cimnotebook CIMNotebook Extensions intellij CIMNotebook IntelliJ Plugin labels Jul 18, 2026
@spah-soptim spah-soptim added this to the CIMNotebook v1.0.1 milestone Jul 18, 2026
@spah-soptim
spah-soptim marked this pull request as ready for review July 18, 2026 16:18
@spah-soptim spah-soptim removed their assignment Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working cimnotebook CIMNotebook Extensions intellij CIMNotebook IntelliJ Plugin

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CIMNotebook IntelliJ: Highlighting does not work correctly with "<"-operator

1 participant