Skip to content

Commit

Permalink
[GitLab] improvements from PR review
Browse files Browse the repository at this point in the history
  • Loading branch information
keith-hall committed May 28, 2024
1 parent b034f70 commit bc67d94
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 6 additions & 1 deletion Gitlab CICD.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,17 @@ contexts:
- match: ','
scope: punctuation.separator.sequence.yaml
set: gitlab-after-reference-type
- include: flow-pair-no-clear
- include: flow-node-11
- match: (?=\])
pop: 1

gitlab-after-reference-type:
- match: \w+
scope: variable.other.constant.gitlab
pop: 1
- match: ','
scope: punctuation.separator.sequence.yaml
- include: flow-pair-no-clear
- include: flow-node-11
- match: (?=\S)
pop: 1
8 changes: 5 additions & 3 deletions tests/syntax_test_gitlab_cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,14 @@ job1:

job2:
artifacts:
paths: !reference [job1, artifacts, paths]
paths: !reference [job1, artifacts, paths, further_nesting]
# ^^^^^^^^^^ meta.property storage.type.tag-handle
# ^^^^^^^^^^^^^^^^^^^^^^^^ meta.sequence.flow
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.sequence.flow
# ^^^^ constant.other.label
# ^ punctuation.separator.sequence
# ^^^^^^^^^ keyword.other
# ^ punctuation.separator.sequence
# ^^^^^ variable.other.constant
# ^ punctuation.definition.sequence.end
# ^ punctuation.separator.sequence
# ^^^^^^^^^^^^^^^ variable.other.constant
# ^ punctuation.definition.sequence.end

0 comments on commit bc67d94

Please sign in to comment.