-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Scala] Tweak string and interpolation scopes
This commit tweaks string and interpolation related scopes after the scheme of Python and ShellScript. 1. from python use `meta.string.interpolated` and `string.quoted.double.block` 2. from shell use interpolation scopes. Scope guidelines request `punctuation.section.interpolation.[begin|end]`, but `$` variables are historically scoped `punctuation.definition.variable`. This commit (as shellscript) attempt to satisfy both. Hence `$` in `${}` is scoped punctuation.definition.variable, which may appear odd in the first place. Actually `$` is some sort of expansion operator, which adds a variable's or expression's result into containing string. Perl calls it dereferencing operator. Most core syntaxes supporting that kind of syntax struggle with it, currently. TL;TR This commit aligns scopes with existing core syntaxes even though there are still some caveats.
- Loading branch information
Showing
3 changed files
with
86 additions
and
68 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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