0
0
Fork 0
Codesys-MCP-SP21-plus/tests/tui
Karstein Phobic Nyvold Kvistad 3da09f8aba tui(viewer): ST keyword/type/comment/string syntax highlighting
tokenize(line) splits a single line into typed tokens:
  keyword (cyan)   PROGRAM, FUNCTION_BLOCK, IF/THEN/ELSE/END_IF,
                   FOR/TO/DO, VAR/END_VAR, CASE/OF, AND/OR/XOR/NOT,
                   TRUE/FALSE, EXTENDS, IMPLEMENTS, etc.
  type    (magenta) BOOL, INT, DINT, REAL, LREAL, TIME, STRING,
                   ANY_*, ARRAY, POINTER, REFERENCE, etc.
  comment (gray)   (* ... *) inline and // line-to-end
  string  (yellow) 'single' and "double" quoted
  text    (none)   everything else

Identifier matching is case-sensitive uppercase only — matches
typical IEC 61131-3 convention and avoids false positives on lower-
case identifiers like if_x. Multi-line (* ... *) comments are not
joined across lines (out-of-scope for v0.2).
2026-04-29 08:22:09 +02:00
..
fixtures/mini-mirror/mcp-mirror/CodesysRpi/Plc Logic/Application tui: add mirror scanner with classification + LOC 2026-04-28 21:49:02 +02:00
Approve.test.tsx tui(approve): v toggles unified <-> side-by-side diff 2026-04-29 08:22:09 +02:00
Browser.test.tsx tui(browser): d opens cross-device diff for highlighted POU 2026-04-29 08:22:09 +02:00
diff.test.ts tui: add line-based diff hunk computation 2026-04-28 21:54:20 +02:00
discover.test.ts tui: add mcp-mirror auto-discovery 2026-04-28 21:55:32 +02:00
highlight.test.ts tui(viewer): ST keyword/type/comment/string syntax highlighting 2026-04-29 08:22:09 +02:00
index.integration.test.ts tui: wire approve dispatch in bin entry 2026-04-28 22:19:51 +02:00
scan.test.ts tui: add mirror scanner with classification + LOC 2026-04-28 21:49:02 +02:00
state-paths.test.ts tui: add state-file path resolver (Windows + XDG) 2026-04-28 21:50:44 +02:00
state-write.test.ts tui: add atomic Selection JSON writer 2026-04-28 21:52:07 +02:00
Statusbar.test.tsx tui(browser): add stale-mirror indicator + resize warning 2026-04-29 08:22:09 +02:00
Tree.test.tsx tui: add Tree component (collapsible device/POU listing) 2026-04-28 22:21:05 +02:00