From 1b2b7c3eb939724696894f31ff27db97b0cac84c Mon Sep 17 00:00:00 2001 From: Andreas Widen Date: Sat, 25 Nov 2023 17:21:37 +0100 Subject: Initial commit. Signed-off-by: Andreas Widen --- static/base/highlight/languages/nix.min.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 static/base/highlight/languages/nix.min.js (limited to 'static/base/highlight/languages/nix.min.js') diff --git a/static/base/highlight/languages/nix.min.js b/static/base/highlight/languages/nix.min.js new file mode 100644 index 0000000..2564044 --- /dev/null +++ b/static/base/highlight/languages/nix.min.js @@ -0,0 +1,12 @@ +/*! `nix` grammar compiled for Highlight.js 11.3.1 */ +(()=>{var e=(()=>{"use strict";return e=>{const n={ +keyword:["rec","with","let","in","inherit","assert","if","else","then"], +literal:["true","false","or","and","null"], +built_in:["import","abort","baseNameOf","dirOf","isNull","builtins","map","removeAttrs","throw","toString","derivation"] +},i={className:"subst",begin:/\$\{/,end:/\}/,keywords:n},s={className:"string", +contains:[i],variants:[{begin:"''",end:"''"},{begin:'"',end:'"'}] +},t=[e.NUMBER_MODE,e.HASH_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s,{ +begin:/[a-zA-Z0-9-_]+(\s*=)/,returnBegin:!0,relevance:0,contains:[{ +className:"attr",begin:/\S+/}]}];return i.contains=t,{name:"Nix", +aliases:["nixos"],keywords:n,contains:t}}})();hljs.registerLanguage("nix",e) +})(); \ No newline at end of file -- cgit v1.2.3-54-g00ecf