diff --git a/syntax/just.vim b/syntax/just.vim
index de9d5db..5bed122 100644
--- a/syntax/just.vim
+++ b/syntax/just.vim
@@ -341,7 +341,7 @@ hi def link justRecipeAttrSep Operator
hi def link justRecipeColon Operator
hi def link justRecipeDepParamsParen Delimiter
hi def link justRecipeSubsequentDeps Operator
-hi def link justRegexCapture Constant
+hi def link justRegexCapture Identifier
hi def link justSet Statement
hi def link justSetDeprecatedKeywords Underlined
hi def link justSetKeywords Keyword
diff --git a/tests/cases/line-continuations.html b/tests/cases/line-continuations.html
index 83054e5..548c14e 100644
--- a/tests/cases/line-continuations.html
+++ b/tests/cases/line-continuations.html
@@ -45,7 +45,7 @@
( \
"FOOoo",
"([A-Z])[A-Z]+([^A-Z])", \
- "$1${2}"
+ "$1${2}"
\
)
@@ -140,7 +140,7 @@
=\
replace_regex(uuid(),
\
-'^(.+)$', "\"\\\"$1\\\"\"") param3= \
+'^(.+)$', "\"\\\"$1\\\"\"") param3= \
env\
('BAR',
diff --git a/tests/cases/recipes-with-extras.html b/tests/cases/recipes-with-extras.html
index f77060c..3219a5f 100644
--- a/tests/cases/recipes-with-extras.html
+++ b/tests/cases/recipes-with-extras.html
@@ -3,7 +3,7 @@
p1 := 'test'
p2 := canonicalize('..')
-pdirname := replace_regex(p2, '/([^/]*)$', '$1')
+pdirname := replace_regex(p2, '/([^/]*)$', '$1')
param := semver_matches('0.1.1', '>=0.1.0')
@foo1 param1 param2="default test" +varparam='default': dependency1 (dependency2 p1 p2) (dependency3 param)
diff --git a/tests/cases/replace_regex-captures.html b/tests/cases/replace_regex-captures.html
index 4115c0c..4946abb 100644
--- a/tests/cases/replace_regex-captures.html
+++ b/tests/cases/replace_regex-captures.html
@@ -1,4 +1,4 @@
-foo := replace_regex(justfile(), '[^A-Za-z]([A-Za-z]+)\.just$', ' - Test $1')
+foo := replace_regex(justfile(), '[^A-Za-z]([A-Za-z]+)\.just$', ' - Test $1')
foo2 := replace_regex("""
\tLorem ipsum dolor sit amet, consectetur adipiscing elit, sed
@@ -9,38 +9,38 @@
quod angatur. Optime vero Epicurus, quod exiguam dixit
fortunam intervenire sapienti maximasque ab eo dissentiunt,
sed certe non.
-""", '\W(?P<Abc1_>\w{2})\W', " _$Abc1_-")
+""", '\W(?P<Abc1_>\w{2})\W', " _$Abc1_-")
-foo3 := replace_regex(`echo ${HOME}`, '/(\w+)/(\w+)', '${2}at${1}')
+foo3 := replace_regex(`echo ${HOME}`, '/(\w+)/(\w+)', '${2}at${1}')
foo4 := replace_regex('$T$es$t',
'\$([tT])'
,
- '$1'
+ '$1'
)
foo5 := replace_regex("any\n$123", '\$123', """
\t$$abc$
234\
-345 ${456}567
+345 ${456}567
""")
-foo6 := replace_regex("Some text.", '([^a-z])', '$$$1$$2')
+foo6 := replace_regex("Some text.", '([^a-z])', '$$$1$$2')
foo7 := replace_regex("Some text.", '([^a-z])', '$$1')
foo8 := replace_regex("test123", '\w(\d+)', '''
- \t'$1''')
+ \t'$1''')
foo9 := replace_regex("trailing comma is accepted after the final argument,",
"(\\W+)", \
- "${1}_$1",
+ "${1}_$1",
)
foo10 := replace_regex("_abcdef",
'(\w)[a-z]+', \
- '${1}'
+ '${1}'
, \
)
@@ -55,5 +55,5 @@
replacement_split := replace_regex('012034', '(?P<capture>[1-9]+)', "!$cap" + 'ture' + '$captu' / "re")
replacement_in_interp:
- echo '{{replace_regex('A b c d', '\s(\w)', '1$1')}}'
+ echo '{{replace_regex('A b c d', '\s(\w)', '1$1')}}'
echo {{replace_regex(replacement_conditional, '(\d+)', foo3)}}
diff --git a/tests/cases/tricky.html b/tests/cases/tricky.html
index e00ed90..a244360 100644
--- a/tests/cases/tricky.html
+++ b/tests/cases/tricky.html
@@ -36,7 +36,7 @@
not_a_uuid_anymore := replace_regex (
uuid (
), '-4([0-9A-Fa-f]{3})-'
-, '_9${1}_'
+, '_9${1}_'
)
conditional_without_indent := if env('SHELL') == '/bin/bash' {