Skip to content

Commit

Permalink
Merge f940550 into 6fe12fd
Browse files Browse the repository at this point in the history
  • Loading branch information
kaste committed Dec 20, 2018
2 parents 6fe12fd + f940550 commit fec3f4c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
19 changes: 10 additions & 9 deletions syntax/graph.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,16 @@ hidden: true
scope: git-savvy.graph
contexts:
main:
- match: (?=.*\(HEAD )
push:
- meta_scope: meta.graph.graph-line.head.git-savvy
- include: content
- match: $
pop: true

- include: content

content:
- match: '([| \\/_.-]+)'
comment: graph lines
scope: punctuation.other.git-savvy.graph.graph-line
Expand All @@ -18,15 +28,6 @@ contexts:
comment: SHA
scope: constant.numeric.graph.commit-hash.git-savvy

- match: (?=\s*\(HEAD)
push:
- meta_scope: meta.graph.graph-line.head.git-savvy
- include: branch-name
- match: (?=\S)
push: message
- match: $
pop: true

- include: branch-name

- match: (?=\S)
Expand Down
3 changes: 2 additions & 1 deletion syntax/test/syntax_test_graph.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
# ^ punctuation.separator.key-value.branch
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.graph.branch.git-savvy
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.graph.message.git-savvy
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.graph.graph-line.head.git-savvy
# <- meta.graph.graph-line.head.git-savvy
# ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ meta.graph.graph-line.head.git-savvy
* f483ab7 update blame syntax format
* 6929182 update make_commit syntax format
* ede734e update diff syntax format
Expand Down

0 comments on commit fec3f4c

Please sign in to comment.