Skip to content

Commit

Permalink
refactor: clean up regexes
Browse files Browse the repository at this point in the history
  • Loading branch information
zlataovce committed Nov 26, 2024
1 parent fa694ed commit c4717f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util/languages/diff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const diffLanguage: languages.IMonarchLanguage = {
// Comments
[/Index: .*/, 'comment'],
[/^index.*/, 'comment'],
[/^={3,}/, 'comment'],
[/={3,}/, 'comment'],
[/^-{3}.*/, 'comment'],
[/^\*{3} .*/, 'comment'],
[/^\+{3}.*/, 'comment'],
Expand All @@ -23,7 +23,7 @@ export const diffLanguage: languages.IMonarchLanguage = {
[/^\+.*/, 'addition'],

// Deletions
[/^-+.*/, 'deletion'],
[/^-.*/, 'deletion'],

// Other additions (e.g., `!`)
[/^!.*/, 'addition'],
Expand Down

0 comments on commit c4717f9

Please sign in to comment.