Phase 2: syntax highlighting and colour settings page

- JaiSyntaxHighlighter maps every one of the lexer's token types; asserted over
  the whole corpus (105 distinct token types seen, all mapped)
- JaiHighlightingLexer refines IDENT into built-in types and loop variables for
  colouring only, so the parser never sees them as reserved
- colour settings page with a demo file that is itself asserted to lex cleanly
This commit is contained in:
hgranthorner
2026-08-04 10:28:15 -04:00
parent ba5d8aba7b
commit 2c5d7f713b
7 changed files with 421 additions and 1 deletions

View File

@@ -20,6 +20,12 @@
fieldName="INSTANCE"
language="Jai"
extensions="jai"/>
<colorSettingsPage implementation="dev.hgh.jai.highlighting.JaiColorSettingsPage"/>
<lang.syntaxHighlighterFactory
language="Jai"
implementationClass="dev.hgh.jai.highlighting.JaiSyntaxHighlighterFactory"/>
</extensions>
</idea-plugin>