parent
675a581839
commit
c410548caf
|
@ -160,6 +160,16 @@ find "`dirname $file`" -name "$base"'*'
|
||||||
(string (simple_expansion (variable_name)))
|
(string (simple_expansion (variable_name)))
|
||||||
(raw_string))))
|
(raw_string))))
|
||||||
|
|
||||||
|
=========================================
|
||||||
|
Strings containing escape sequence
|
||||||
|
=========================================
|
||||||
|
|
||||||
|
echo "\"The great escape\`\${var}"
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
(program (command (command_name (word)) (string)))
|
||||||
|
|
||||||
=========================================
|
=========================================
|
||||||
Variable declaration: declare & typeset
|
Variable declaration: declare & typeset
|
||||||
=========================================
|
=========================================
|
||||||
|
|
|
@ -269,7 +269,7 @@ module.exports = grammar({
|
||||||
'"'
|
'"'
|
||||||
),
|
),
|
||||||
|
|
||||||
_string_content: $ => /[^"`$]+/,
|
_string_content: $ => /([^"`$]|\\.)*/,
|
||||||
|
|
||||||
array: $ => seq(
|
array: $ => seq(
|
||||||
'(',
|
'(',
|
||||||
|
|
|
@ -976,7 +976,7 @@
|
||||||
},
|
},
|
||||||
"_string_content": {
|
"_string_content": {
|
||||||
"type": "PATTERN",
|
"type": "PATTERN",
|
||||||
"value": "[^\"`$]+"
|
"value": "([^\"`$]|\\\\.)*"
|
||||||
},
|
},
|
||||||
"array": {
|
"array": {
|
||||||
"type": "SEQ",
|
"type": "SEQ",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue