Skip to content

Commit

Permalink
[ShellScript] Scope glob strings meta.string.glob
Browse files Browse the repository at this point in the history
This commit assigns `meta.string.glob` scope to strings,
which support filename expansions.
  • Loading branch information
deathaxe committed Sep 22, 2024
1 parent b29ad25 commit d243ff2
Show file tree
Hide file tree
Showing 4 changed files with 1,188 additions and 1,188 deletions.
6 changes: 3 additions & 3 deletions Makefile/syntax_test_makefile.mak
Original file line number Diff line number Diff line change
Expand Up @@ -1021,23 +1021,23 @@ html:
shell_string_interpolation:
var1="double nquoted $(string) value"
# ^^^^^^^^^^^^^^^^ string.quoted.double.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.glob.shell
# ^^^^^^^^^ meta.interpolation
# ^^ keyword.other.block.begin.makefile
# ^^^^^^ variable.parameter.makefile
# ^ keyword.other.block.end.makefile
# ^^^^^^^ string.quoted.double.shell
var1='single nquoted $(string) value'
# ^^^^^^^^^^^^^^^^ string.quoted.single.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.glob.shell
# ^^^^^^^^^ meta.interpolation
# ^^ keyword.other.block.begin.makefile
# ^^^^^^ variable.parameter.makefile
# ^ keyword.other.block.end.makefile
# ^^^^^^^ string.quoted.single.shell
var1=unquoted\ $(string)\ value
# ^^^^^^^^^^ string.unquoted.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.shell
# ^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.function.body.makefile source.shell.embedded.makefile meta.string.glob.shell
# ^^^^^^^^^ meta.interpolation
# ^^ keyword.other.block.begin.makefile
# ^^^^^^ variable.parameter.makefile
Expand Down
4 changes: 2 additions & 2 deletions ShellScript/Bash.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -2097,7 +2097,7 @@ contexts:

group-path-pattern-body:
- meta_include_prototype: false
- meta_scope: meta.string.shell string.unquoted.shell
- meta_scope: meta.string.glob.shell string.unquoted.shell
- include: string-path-pattern-content
- include: word-end

Expand All @@ -2121,7 +2121,7 @@ contexts:

string-path-pattern-body:
- meta_include_prototype: false
- meta_scope: meta.string.shell string.unquoted.shell
- meta_scope: meta.string.glob.shell string.unquoted.shell
- include: string-path-pattern-content
- include: word-end

Expand Down
Loading

0 comments on commit d243ff2

Please sign in to comment.