Skip to content

Restructure the syntax highlighting test fixture#73

Merged
kugesan1105 merged 7 commits into
jaseci-labs:mainfrom
SandeepaHWP:syntaxlight-sv
Apr 26, 2026
Merged

Restructure the syntax highlighting test fixture#73
kugesan1105 merged 7 commits into
jaseci-labs:mainfrom
SandeepaHWP:syntaxlight-sv

Conversation

@SandeepaHWP

@SandeepaHWP SandeepaHWP commented Apr 24, 2026

Copy link
Copy Markdown
Contributor

What this PR does

This PR improves syntax highlighting for several Jac language features and cleans up the test setup.

Fixes

  • Access modifiers on archetypesnode:pub Name, obj:priv Name, walker:protect Name etc. were not coloring the archetype name. Fixed the grammar rules for node, obj, class, walker, and edge to handle the optional :(pub|priv|protect) tag before the name
  • Function declarations with cl/sv/na prefix — improved capture groups so the modifier and function keyword both highlight correctly

Tests

  • Added new example fixture files covering the changed grammar areas
  • Added test cases for access modifiers (pub, priv, protect) on all archetype types

Fix 01

image

Fix 02

image

@kugesan1105
kugesan1105 merged commit 5b8a385 into jaseci-labs:main Apr 26, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants