diff --git a/Gitlab CICD.sublime-syntax b/Gitlab CICD.sublime-syntax index 365725c..468a464 100644 --- a/Gitlab CICD.sublime-syntax +++ b/Gitlab CICD.sublime-syntax @@ -66,7 +66,7 @@ contexts: property: - meta_prepend: true - - match: (!reference\b)\s*(\[) + - match: (!reference)\s*(\[) captures: 1: meta.property.yaml storage.type.tag-handle.yaml 2: meta.sequence.flow.yaml punctuation.definition.sequence.begin.yaml @@ -87,7 +87,7 @@ contexts: gitlab-after-reference: - match: \w+ - scope: constant.other.gitlab + scope: keyword.other.gitlab - match: ',' scope: punctuation.separator.sequence.yaml set: gitlab-after-reference-type diff --git a/tests/syntax_test_gitlab_cicd.yml b/tests/syntax_test_gitlab_cicd.yml index b68d962..977be0e 100644 --- a/tests/syntax_test_gitlab_cicd.yml +++ b/tests/syntax_test_gitlab_cicd.yml @@ -170,7 +170,7 @@ test: # ^ punctuation.definition.sequence.begin # ^^^^^^ constant.other.label # ^ punctuation.separator.sequence -# ^^^^^^ constant.other +# ^^^^^^ keyword.other # ^ punctuation.definition.sequence.end # ^ - meta.sequence - echo running my own command @@ -197,8 +197,26 @@ test-vars-2: # ^ punctuation.definition.sequence.begin # ^^^^^ constant.other.label # ^ punctuation.separator.sequence - # ^^^^^^^^^ constant.other + # ^^^^^^^^^ keyword.other # ^ punctuation.separator.sequence # ^^^^^^^^^^^^^ variable.other.constant script: - printenv + +job1: + artifacts: + paths: + - binaries/ + - .config + +job2: + artifacts: + paths: !reference [job1, artifacts, paths] +# ^^^^^^^^^^ meta.property storage.type.tag-handle +# ^^^^^^^^^^^^^^^^^^^^^^^^ meta.sequence.flow +# ^^^^ constant.other.label +# ^ punctuation.separator.sequence +# ^^^^^^^^^ keyword.other +# ^ punctuation.separator.sequence +# ^^^^^ variable.other.constant +# ^ punctuation.definition.sequence.end