Skip to content

Commit bdf6042

Browse files
committed
Add meta.string.shell to backtick context, like Bash syntax.
1 parent ea211e5 commit bdf6042

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

Syntax/Just.sublime-syntax

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ contexts:
202202
- match: '```'
203203
scope: punctuation.section.interpolation.begin.just
204204
push:
205-
- meta_scope: meta.interpolation.command.shell
205+
- meta_scope: meta.string.shell meta.interpolation.command.shell
206206
- meta_include_prototype: false
207207
- match: '```'
208208
scope: punctuation.section.interpolation.end.just
@@ -213,7 +213,7 @@ contexts:
213213
- match: '`'
214214
scope: punctuation.section.interpolation.begin.just
215215
push:
216-
- meta_scope: meta.interpolation.command.shell
216+
- meta_scope: meta.string.shell meta.interpolation.command.shell
217217
- meta_include_prototype: false
218218
- match: '`'
219219
scope: punctuation.section.interpolation.end.just

Syntax/tests/syntax_test_just.quotes.just

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,28 +21,28 @@ double_escapes := "\t\n\r\"\\"
2121
backtick_code := `echo 'hello'`
2222
# ^ punctuation.section.interpolation.begin.just
2323
# ^ punctuation.section.interpolation.end.just
24-
# ^^^^^^^^^^^^^^ meta.interpolation.command.shell
24+
# ^^^^^^^^^^^^^^ meta.string.shell meta.interpolation.command.shell
2525

2626
# Just interpolation doesn't work inside backticks
2727
backtick_no_interp := `echo {{single_backslash}}`
28-
# ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.interpolation.command.shell - meta.interpolation.just
28+
# ^^^^^^^^^^^^^^^^^^^^^^^^^ meta.string.shell meta.interpolation.command.shell - meta.interpolation.just
2929

3030
CUR_DIR_NAME := ```
3131
# ^^^ punctuation.section.interpolation.begin.just
3232
basename `pwd`
33-
#^^^^^^^^^^^^^ meta.interpolation.command.shell
33+
#^^^^^^^^^^^^^ meta.string.shell meta.interpolation.command.shell
3434
```
3535

3636
# This backtick evaluates the command `echo foo\necho bar\n`, which produces the value `foo\nbar\n`.
3737
stuff := ```
3838
# <- variable.other.just
3939
# ^^ keyword.operator.assignment.just
40-
# ^^^ meta.interpolation.command.shell punctuation.section.interpolation.begin.just
40+
# ^^^ meta.string.shell meta.interpolation.command.shell punctuation.section.interpolation.begin.just
4141
echo foo
4242
echo bar
43-
# ^^^^^^^^ meta.interpolation.command.shell
43+
# ^^^^^^^^ meta.string.shell meta.interpolation.command.shell
4444
```
45-
# ^^^ punctuation.section.interpolation.end.just
45+
# ^^^ meta.string.shell punctuation.section.interpolation.end.just
4646

4747
single_block_with_nested_quotes := '''
4848
# ^^^ string.quoted.single.block.just punctuation.definition.string.begin.just

0 commit comments

Comments
 (0)