Fix @ symbol highlighting in Dart annotations#73
Open
tsinis wants to merge 2 commits intozed-extensions:mainfrom
Open
Fix @ symbol highlighting in Dart annotations#73tsinis wants to merge 2 commits intozed-extensions:mainfrom
@ symbol highlighting in Dart annotations#73tsinis wants to merge 2 commits intozed-extensions:mainfrom
Conversation
…ator The `@` symbol in Dart annotations (e.g. `@override`, `@Deprecated()`) was highlighted as an operator, making it visually distinct from the annotation name which received `@attribute` styling. This made annotations appear as two separate tokens instead of a single semantic unit. - Capture `@` as `@attribute` inside annotation rules - Remove `@` from the operators block - Move annotation rules after the generic uppercase identifier pattern so `@attribute` takes precedence over `@type` for names like `Deprecated`
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.
Hey Team!
Reference to (part of) the Issue: #29
@symbol in annotations (e.g.@override,@Deprecated()) was highlighted as an operator while the annotation name received@attributestyling, making them appear as two visually distinct tokens@as@attributeinside the annotation rule and remove it from the operators block@typepattern so that@attributetakes final precedence for names likeDeprecatedBefore:
After: