mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
Merge pull request #2728 from gpanders/push-zptlqykzosss
vim: fix comment syntax pattern
This commit is contained in:
@ -14,7 +14,7 @@ const Template = struct {
|
|||||||
\\contexts:
|
\\contexts:
|
||||||
\\ main:
|
\\ main:
|
||||||
\\ # Comments
|
\\ # Comments
|
||||||
\\ - match: '#.*$'
|
\\ - match: '^\s*#.*$'
|
||||||
\\ scope: comment.line.number-sign.ghostty
|
\\ scope: comment.line.number-sign.ghostty
|
||||||
\\
|
\\
|
||||||
\\ # Keywords
|
\\ # Keywords
|
||||||
|
@ -70,7 +70,7 @@ fn writeSyntax(writer: anytype) !void {
|
|||||||
try writer.writeAll(
|
try writer.writeAll(
|
||||||
\\
|
\\
|
||||||
\\
|
\\
|
||||||
\\syn match ghosttyConfigComment /#.*/ contains=@Spell
|
\\syn match ghosttyConfigComment /^\s*#.*/ contains=@Spell
|
||||||
\\
|
\\
|
||||||
\\hi def link ghosttyConfigComment Comment
|
\\hi def link ghosttyConfigComment Comment
|
||||||
\\hi def link ghosttyConfigKeyword Keyword
|
\\hi def link ghosttyConfigKeyword Keyword
|
||||||
|
Reference in New Issue
Block a user