Skip to content

Commit

Permalink
[GitLab] changes after PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall committed May 27, 2024
1 parent b7aef0a commit b034f70
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Gitlab CICD.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
22 changes: 20 additions & 2 deletions tests/syntax_test_gitlab_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit b034f70

Please sign in to comment.