-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #793 from zeitgeist87/BashString
Substantially reduce wrongly highlighted stuff for Bash
- Loading branch information
Showing
6 changed files
with
148 additions
and
25 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
(( 4 + 5 )) | ||
$((5 * 7)) | ||
"foo $((5 * 7)) bar" | ||
for (( NUM=1 ; NUM<=1000 ; NUM++ )) | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["variable", [ | ||
["punctuation", "(("], | ||
["number", "4"], | ||
["operator", "+"], | ||
["number", "5"], | ||
["punctuation", "))"] | ||
]], | ||
["variable", [ | ||
["variable", "$(("], | ||
["number", "5"], | ||
["operator", "*"], | ||
["number", "7"], | ||
["variable", "))"] | ||
]], | ||
["string", [ | ||
"\"foo ", | ||
["variable", [ | ||
["variable", "$(("], | ||
["number", "5"], | ||
["operator", "*"], | ||
["number", "7"], | ||
["variable", "))"] | ||
]], | ||
" bar\"" | ||
]], | ||
["keyword", "for"], | ||
["variable", [ | ||
["punctuation", "(("], | ||
" NUM", | ||
["operator", "="], | ||
["number", "1"], | ||
["punctuation", ";"], | ||
" NUM", | ||
["operator", "<="], | ||
["number", "1000"], | ||
["punctuation", ";"], | ||
" NUM", | ||
["operator", "++"], | ||
["punctuation", "))"] | ||
]] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks arithmetic environments |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
$(echo foo) | ||
`echo foo` | ||
"$(echo foo) bar" | ||
|
||
---------------------------------------------------- | ||
|
||
[ | ||
["variable", [ | ||
["variable", "$("], | ||
["keyword", "echo"], | ||
" foo", | ||
["variable", ")"] | ||
]], | ||
["variable", [ | ||
["variable", "`"], | ||
["keyword", "echo"], | ||
" foo", | ||
["variable", "`"] | ||
]], | ||
["string", [ | ||
"\"", | ||
["variable", [ | ||
["variable", "$("], | ||
["keyword", "echo"], | ||
" foo", | ||
["variable", ")"] | ||
]], | ||
" bar\"" | ||
]] | ||
] | ||
|
||
---------------------------------------------------- | ||
|
||
Checks for command substitution. |
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