From ebe109fee63cf57435de7a23b3e54ba44709fe1a Mon Sep 17 00:00:00 2001 From: TheBrambleShark Date: Tue, 21 Jul 2026 14:00:16 -0500 Subject: [PATCH] Add C# as language, fix typo --- src/webpage/highlighter/clike/langs.json | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/webpage/highlighter/clike/langs.json b/src/webpage/highlighter/clike/langs.json index d0f95bb..8500243 100644 --- a/src/webpage/highlighter/clike/langs.json +++ b/src/webpage/highlighter/clike/langs.json @@ -11,7 +11,7 @@ { "names":["h","c"], "keywords":["auto", "break", "case", "char", "continue", "do", "default", "const", "double", "else", "enum", "extern", "for", "if", "goto", "float", "int", "long", "register", "return", "signed", "static", "sizeof", "short", "struct", "switch", "typedef", "union", "void", "while", "volatile", "unsigned"], - "firstLineShabang": false, + "firstLineShebang": false, "hashComments": true, "doubleSlashComments": true, "multilineSlashComments": true, @@ -34,5 +34,14 @@ "doubleSlashComments": true, "multilineSlashComments": true, "JSLikeTemplateStrings": false +}, +{ + "names": ["cs", "csharp"], + "keywords": ["abstract", "add", "alias", "allows", "and", "args", "as", "ascending", "async", "await", "base", "bool", "break", "by", "byte", "case", "catch", "char", "checked", "class", "closed", "const", "continue", "decimal", "default", "delegate", "descending", "do", "double", "dynamic", "else", "enum", "equals", "event", "explicit", "extension", "extern", "field", "file", "finally", "fixed", "float", "for", "foreach", "from", "get", "global", "goto", "group", "if", "implicit", "in", "init", "interface", "internal", "into", "is", "join", "let", "lock", "long", "managed", "nameof", "namespace", "new", "nint", "not", "notnull", "nuint", "null", "object", "on", "operator", "or", "orderby", "out", "override", "params", "partial", "private", "protected", "public", "readonly", "record", "ref", "remove", "required", "return", "safe", "sbyte", "scoped", "sealed", "select", "set", "short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw", "try", "typeof", "uint", "ulong", "unchecked", "unmanaged", "unsafe", "ushort", "using", "value", "var", "virtual", "void", "volatile", "when", "where", "while", "with", "yield", "true", "false"], + "firstLineShebang": false, + "hashComments": false, + "doubleSlashComments": true, + "multilineSlashComments": true, + "JSLikeTemplateStrings": false } ]