Skip to content

Commit

Permalink
[Diff] Simplify date context
Browse files Browse the repository at this point in the history
Co-authored-by: deathaxe <[email protected]>
  • Loading branch information
michaelblyons and deathaxe authored Dec 15, 2024
1 parent 36b33f1 commit 636739d
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions Git Formats/Git Diff.sublime-syntax
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,15 @@ contexts:
email-header-date-body:
- meta_scope: meta.mapping.diff
- match: |-
(?x:
{{day3}}(,) [ ] # Day of week
[0-3]?[0-9] [ ] # Day of month
{{month3}} [ ] # Month
[0-9]{4} [ ] # Year
[0-9]{2}(:) # Hour
[0-9]{2}(:) # Minute
[0-9]{2} # Second
(?:[ ]([+-][0-9]{4}))? # Optional UTC offset
)
(?x)
{{day3}}(,) [ ] # Day of week
[0-3]?[0-9] [ ] # Day of month
{{month3}} [ ] # Month
[0-9]{4} [ ] # Year
[0-9]{2} (:) # Hour
[0-9]{2} (:) # Minute
[0-9]{2} # Second
(?:[ ]([+-][0-9]{4}))? # Optional UTC offset
scope: meta.date.diff constant.numeric.value.diff
captures:
1: punctuation.separator.date.diff
Expand Down

0 comments on commit 636739d

Please sign in to comment.