Repository navigation
Highlight event declarations (1.6.0) - #2
Merged
Merged
Conversation
`event` is a keyword when a name follows it, as in `event login(User)`, and the type in the parentheses is a class name. An event called event, `event => idle`, is left alone. For lucydsl/liblucy#80. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HeTMVE8SQskLfaHRjAiAFJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HeTMVE8SQskLfaHRjAiAFJ
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HeTMVE8SQskLfaHRjAiAFJ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
For the event declarations in lucydsl/liblucy#80, released in liblucy 0.6.0:
eventis akeywordwhen a name follows it. An event calledevent(event => idle) is not highlighted, sinceeventis only a keyword in a declaration.event name(Type)is aclass-name.test/index.htmlhas a couple of declarations added to the demo.v1.6.0tag on the merge commit publishes it.mainis merged in, which brings in the CI and release workflows.Testing
npm test(main's smoke test) passes.keywordfor each declaration'sevent,class-nameforUserandstring, and leavesevent => idlealone.eventis highlighted likemachineandstate, and the types like state names.🤖 Generated with Claude Code
https://claude.ai/code/session_01HeTMVE8SQskLfaHRjAiAFJ