Merge pull request #2728 from gpanders/push-zptlqykzosss

vim: fix comment syntax pattern
This commit is contained in:
Mitchell Hashimoto
2024-11-18 14:40:38 -08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ const Template = struct {
\\contexts:
\\ main:
\\ # Comments
\\ - match: '#.*$'
\\ - match: '^\s*#.*$'
\\ scope: comment.line.number-sign.ghostty
\\
\\ # Keywords

View File

@ -70,7 +70,7 @@ fn writeSyntax(writer: anytype) !void {
try writer.writeAll(
\\
\\
\\syn match ghosttyConfigComment /#.*/ contains=@Spell
\\syn match ghosttyConfigComment /^\s*#.*/ contains=@Spell
\\
\\hi def link ghosttyConfigComment Comment
\\hi def link ghosttyConfigKeyword Keyword