diff --git a/Git Formats/Git Log.sublime-syntax b/Git Formats/Git Log.sublime-syntax index 204c2f6e5f2..425ac21d9c8 100644 --- a/Git Formats/Git Log.sublime-syntax +++ b/Git Formats/Git Log.sublime-syntax @@ -44,7 +44,7 @@ contexts: escape: $ - match: (?=^index\s) embed: scope:source.diff - escape: (?=^diff\s--git) + escape: (?=^diff\s--git|^commit\s) commit-header: # All header attributes are mappings of `key: value` format. diff --git a/Git Formats/tests/syntax_test_git_log b/Git Formats/tests/syntax_test_git_log index 50bf14c8b4c..17f75f7bbc8 100644 --- a/Git Formats/tests/syntax_test_git_log +++ b/Git Formats/tests/syntax_test_git_log @@ -115,4 +115,7 @@ index c90bfab4..e9338c70 100644 + + () => {}; +// ^^^^^^^^^^^ meta.function -#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.diff markup.inserted \ No newline at end of file +#^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ source.diff markup.inserted + +commit e2077c6e006acfd2f060aef03c4ef8f89c4db362 (HEAD -> branch_name, origin/branch_name) +#^^^^^ meta.header.git markup.raw.block.git keyword.other.commit.git - source.diff