Skip to content

Commit 13d4349

Browse files
committed
Improve syntax highlighting for makefiles
1 parent 68fd763 commit 13d4349

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: v2/syntax.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ func adjustSyntaxHighlightingKeywords(m mode.Mode) {
299299
addKeywords(justWords)
300300
fallthrough // Continue to Make
301301
case mode.Make:
302-
delKeywords := []string{"#else", "#endif", "as", "build", "default", "del", "double", "exec", "finally", "float", "fn", "generic", "get", "install", "local", "long", "new", "no", "package", "pass", "print", "property", "require", "ret", "set", "super", "super", "template", "type", "var", "with"}
302+
delKeywords := []string{"#else", "#endif", "and", "as", "build", "default", "del", "double", "exec", "export", "finally", "float", "fn", "generic", "get", "install", "local", "long", "new", "no", "package", "pass", "print", "property", "require", "ret", "set", "stop", "super", "super", "template", "type", "var", "with"}
303303
addAndRemoveKeywords(shellWords, delKeywords)
304304
case mode.Shell:
305305
delKeywords := []string{"#else", "#endif", "as", "build", "default", "del", "double", "exec", "false", "finally", "float", "fn", "generic", "get", "install", "long", "new", "no", "package", "pass", "print", "property", "require", "ret", "set", "super", "super", "template", "true", "type", "var", "with"}

0 commit comments

Comments
 (0)