@@ -212,9 +212,30 @@ Completed all 6 phases of the comprehensive documentation improvement:
212212- [x] Completed Author's Guide
213213- [x] Improved hierarchy diagram in concepts
214214
215+ ### 2026-01-28: RIDDL Pygments Lexer
216+
217+ Created custom Pygments lexer for RIDDL syntax highlighting in MkDocs:
218+
219+ - [x] ** Created ` riddl_lexer/ ` package** with proper Python packaging
220+ - ` lexer.py ` : Full lexer implementation with all RIDDL token types
221+ - ` __init__.py ` : Package exports
222+ - ` pyproject.toml ` : Package configuration with Pygments entry point
223+ - [x] ** Token categories implemented** :
224+ - Definition keywords (domain, context, entity, etc.) → ` Keyword.Declaration `
225+ - Control keywords (if, then, send, etc.) → ` Keyword `
226+ - Import keywords (include, import) → ` Keyword.Namespace `
227+ - Readability words (is, of, by, etc.) → ` Keyword.Pseudo `
228+ - Predefined types (String, Integer, etc.) → ` Name.Builtin `
229+ - Option values (event-sourced, aggregate) → ` Name.Constant `
230+ - Comments (// and /* * /) → ` Comment `
231+ - Strings and markdown docs → ` String `
232+ - [x] ** Tested with MkDocs** - all 20 RIDDL code blocks properly highlighted
233+ - [x] ** Fixed broken Synapify links** in guides (wrong relative path depth)
234+
215235## In Progress
216236
217- Editorial review complete. All sections reviewed and fixed. Ready to commit.
237+ Working through lower-priority tasks in order: type examples, quick-start
238+ tutorial, future work review, EBNF grammar validation, Synapify generation docs.
218239
219240## Pending Tasks
220241
@@ -225,15 +246,16 @@ Editorial review complete. All sections reviewed and fixed. Ready to commit.
225246| Replace ` {{MCP_SERVER_URL}} ` | When public URL is available |
226247| Update release download links | When final releases are published |
227248
228- ### Lower Priority
249+ ### Lower Priority (in progress order)
229250
230251| Task | File | Notes |
231252| ------| ------| -------|
232- | RIDDL Pygments lexer | New file | Custom syntax highlighting for code blocks |
253+ | ~~ RIDDL Pygments lexer~~ | ~~ ` riddl_lexer/ ` ~~ | ~~ COMPLETED ~~ |
233254| Type examples | ` references/language-reference.md ` | Add specialized examples |
234- | Future work review | ` future-work/ ` | Update for current roadmap |
235255| Quick-start tutorial | New file | Optional getting started guide |
256+ | Future work review | ` future-work/ ` | Update for current roadmap |
236257| EBNF grammar validation | ` references/ebnf-grammar.md ` | See details below |
258+ | Synapify generation docs | ` synapify/generation.md ` | Document using preserved config |
237259
238260#### Synapify Generation Configuration Documentation
239261
@@ -255,25 +277,6 @@ hugo {
255277}
256278```
257279
258- #### RIDDL Pygments Lexer Task
259-
260- Create a custom Pygments lexer for RIDDL syntax highlighting in MkDocs code
261- blocks. Currently ` riddl ` fenced code blocks render without syntax coloring.
262-
263- ** Implementation approach:**
264- 1 . Create ` riddl_lexer.py ` with a ` RiddlLexer ` class extending ` RegexLexer `
265- 2 . Define token patterns for RIDDL keywords, types, strings, comments, etc.
266- 3 . Register the lexer in ` mkdocs.yml ` or via a plugin
267- 4 . Test with existing code examples in documentation
268-
269- ** Key token categories:**
270- - Keywords: ` domain ` , ` context ` , ` entity ` , ` handler ` , ` type ` , ` command ` ,
271- ` event ` , ` query ` , ` result ` , ` is ` , ` of ` , ` to ` , ` from ` , ` inlet ` , ` outlet ` , etc.
272- - Predefined types: ` String ` , ` Number ` , ` Boolean ` , ` Date ` , ` Time ` , ` UUID ` , etc.
273- - Operators: ` = ` , ` : ` , ` { ` , ` } ` , ` ( ` , ` ) ` , ` [ ` , ` ] `
274- - Comments: ` // ` line comments, ` /* */ ` block comments
275- - Strings: quoted literals
276-
277280#### EBNF Grammar Validation Task
278281
279282The EBNF grammar (` docs/riddl/references/ebnf-grammar.md ` ) is derived from the
0 commit comments