Skip to content

Commit

Permalink
Make actual HEAD commit message optional in the syntax
Browse files Browse the repository at this point in the history
Since we now render lazy and (in some way) async, we need to
reduce visual flicker. By making the actual commit message
optional, we ensure that the literal `HEAD:` is always styled
correctly.
  • Loading branch information
kaste committed Nov 7, 2018
1 parent a03a5b3 commit 1eafd79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntax/dashboard.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ contexts:
comment: ahead or behind
scope: keyword.other.git-savvy.summary-header.ahead-behind

- match: ^ (HEAD:)\s+([0-9a-f]{7,40}) .+
- match: ^ (HEAD:)(?:\s+([0-9a-f]{7,40}) .+)?
comment: head summary
scope: comment.git-savvy.summary-header.head-summary
captures:
Expand Down

0 comments on commit 1eafd79

Please sign in to comment.