From b65aca954cf04c8fef37000f6009b376359ac682 Mon Sep 17 00:00:00 2001 From: yunfachi Date: Tue, 19 Dec 2023 10:54:53 +0000 Subject: [PATCH] feat(languages): add code nix (yunfachi) (#4874) --- frontend/static/languages/_groups.json | 1 + frontend/static/languages/_list.json | 1 + frontend/static/languages/code_nix.json | 131 ++++++++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 frontend/static/languages/code_nix.json diff --git a/frontend/static/languages/_groups.json b/frontend/static/languages/_groups.json index 4239642f3..efe02847a 100644 --- a/frontend/static/languages/_groups.json +++ b/frontend/static/languages/_groups.json @@ -499,6 +499,7 @@ "code_haskell", "code_html", "code_nim", + "code_nix", "code_pascal", "code_java", "code_kotlin", diff --git a/frontend/static/languages/_list.json b/frontend/static/languages/_list.json index 41cf8a70e..8f244e53f 100644 --- a/frontend/static/languages/_list.json +++ b/frontend/static/languages/_list.json @@ -274,6 +274,7 @@ ,"code_haskell" ,"code_html" ,"code_nim" + ,"code_nix" ,"code_pascal" ,"code_java" ,"code_kotlin" diff --git a/frontend/static/languages/code_nix.json b/frontend/static/languages/code_nix.json new file mode 100644 index 000000000..1b3e17aea --- /dev/null +++ b/frontend/static/languages/code_nix.json @@ -0,0 +1,131 @@ +{ + "name": "code_nix", + "noLazyMode": true, + "words": [ + "abort", + "add", + "addDrvOutputDependencies", + "addErrorContext", + "all", + "any", + "appendContext", + "assert", + "attrNames", + "attrValues", + "baseNameOf", + "bitAnd", + "bitOr", + "bitXor", + "break", + "builtins", + "builtins.unsafeDiscardStringContext", + "catAttrs", + "ceil", + "compareVersions", + "concatLists", + "concatMap", + "concatStringsSep", + "convertHash", + "currentSystem", + "currentTime", + "deepSeq", + "derivation", + "derivationStrict", + "dirOf", + "div", + "elem", + "elemAt", + "else", + "false", + "fetchClosure", + "fetchGit", + "fetchMercurial", + "fetchTarball", + "fetchurl", + "filter", + "filterSource", + "findFile", + "flakeRefToString", + "floor", + "fromJSON", + "fromTOML", + "functionArgs", + "genList", + "genericClosure", + "getAttr", + "getContext", + "getEnv", + "getFlake", + "groupBy", + "hasAttr", + "hasContext", + "hashFile", + "hashString", + "head", + "if", + "import", + "in", + "inherit", + "intersectAttrs", + "isAttrs", + "isBool", + "isFloat", + "isFunction", + "isInt", + "isList", + "isPath", + "isString", + "langVersion", + "length", + "lessThan", + "let", + "listToAttrs", + "map", + "mapAttrs", + "match", + "mul", + "nixPath", + "nixVersion", + "null", + "outputOf", + "parseDrvName", + "parseFlakeRef", + "partition", + "path", + "pathExists", + "placeholder", + "readDir", + "readFile", + "readFileType", + "rec", + "removeAttrs", + "replaceStrings", + "seq", + "sort", + "split", + "splitVersion", + "storeDir", + "storePath", + "stringLength", + "sub", + "substring", + "tail", + "then", + "throw", + "toFile", + "toJSON", + "toPath", + "toString", + "toXML", + "trace", + "traceVerbose", + "true", + "tryEval", + "typeOf", + "unsafeDiscardOutputDependency", + "unsafeDiscardStringContext", + "unsafeGetAttrPos", + "with", + "zipAttrsWith" + ] +}