Repository navigation
Rename ansii_c_string and string_expansion - #121
Merged
Merged
Conversation
Collaborator
Author
|
Actually, |
verhovsky
force-pushed
the
translated-string
branch
from
April 27, 2022 05:24
1e48e1e to
8a5e783
Compare
Contributor
Yeah, I think it's actually ok to rename it. Thanks for taking a critical look. |
verhovsky
force-pushed
the
translated-string
branch
2 times, most recently
from
April 28, 2022 04:21
98187eb to
fd4d8e8
Compare
verhovsky
force-pushed
the
translated-string
branch
from
October 20, 2022 18:24
fd4d8e8 to
b81eeee
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This reverts commit 30844a0.
to translated_string and ansi_c_string
verhovsky
force-pushed
the
translated-string
branch
2 times, most recently
from
October 22, 2022 19:26
54c8939 to
ba8786f
Compare
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.
$''are ANSI-C quoted strings, they are a Bash-specific feature that lets you type special characters like newlines using escape codeswithout having to type a literal newline character like you do with normal strings
Support for them in tree-sitter was explicitly added in #54 but this hack was never removed. This doesn't seem to actually cause issues because for whatever reason the ANSI-C quoted strings grammar takes precedence.
$""are translated strings, which cause bash to look up the locale of the shell and then look up the translation of the given string to that locale.string_expansionis the wrong name for them though, they have nothing to do with "string expansion", this is about$""not"$var_name".