From 636739d92e0969e613bde01a9c8d80d3bddafb90 Mon Sep 17 00:00:00 2001 From: Michael <2701605+michaelblyons@users.noreply.github.com> Date: Sun, 15 Dec 2024 09:26:41 -0500 Subject: [PATCH] [Diff] Simplify date context Co-authored-by: deathaxe --- Git Formats/Git Diff.sublime-syntax | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/Git Formats/Git Diff.sublime-syntax b/Git Formats/Git Diff.sublime-syntax index 1bedef92ad..b1d4872901 100644 --- a/Git Formats/Git Diff.sublime-syntax +++ b/Git Formats/Git Diff.sublime-syntax @@ -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