Skip to content

Handle words containing bare '#' - #109

Merged
maxbrunsfeld merged 2 commits into
tree-sitter:masterfrom
oxalica:fix/word-with-pound
Nov 1, 2021
Merged

maxbrunsfeld merged 2 commits into
tree-sitter:masterfrom
oxalica:fix/word-with-pound

Conversation

@oxalica

@oxalica oxalica commented Oct 6, 2021

Copy link
Copy Markdown
Contributor

Only a word beginning with a '#' starts a comment. A word can contain
'#' character without escaping as long as it is not the first character.

See: Bash Reference Manual section '3.1.3 Comments'
https://www.gnu.org/software/bash/manual/bash.html#Comments

@oxalica
oxalica force-pushed the fix/word-with-pound branch from deda5b2 to bb07c4a Compare October 10, 2021 15:17
Only a word beginning with a '#' starts a comment. A word can contain
'#' character without escaping as long as it is not the first character.

See: Bash Reference Manual section '3.1.3 Comments'
https://www.gnu.org/software/bash/manual/bash.html#Comments
@oxalica
oxalica force-pushed the fix/word-with-pound branch from bb07c4a to 2d3662f Compare November 1, 2021 13:56
@oxalica

oxalica commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

r? @maxbrunsfeld @mjambon

@maxbrunsfeld
maxbrunsfeld merged commit 4094e3a into tree-sitter:master Nov 1, 2021
@oxalica
oxalica deleted the fix/word-with-pound branch November 1, 2021 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants