Skip to content

Conversation

@natebosch
Copy link
Member

Add $ as a keyword character since it is allowed in Dart identifiers.
This fixes the behavior of the w word motion as well as allows syntax
groups to match across the character.

Refactor the dartTypeName regex. Use an optional _ at the beginning,
rather than repeating the pattern with an without _. Use the \u
character class instead of the group [A-Z]. Replace the \w character
class with a group that includes the same characters and adds $.

Add `$` as a keyword character since it is allowed in Dart identifiers.
This fixes the behavior of  the `w` word motion as well as allows syntax
groups to match across the character.

Refactor the `dartTypeName` regex. Use an optional `_` at the beginning,
rather than repeating the pattern with an without `_`. Use the `\u`
character class instead of the group `[A-Z]`. Replace the `\w` character
class with a group that includes the same characters and adds `$`.
Copy link
Member

@sigmundch sigmundch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@natebosch natebosch merged commit 1dca4e1 into master Nov 28, 2019
@natebosch natebosch deleted the dollar-in-types branch November 28, 2019 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants