aboutsummaryrefslogtreecommitdiffstats
path: root/doc/phpdoc/js/prettify/lang-n.js
diff options
context:
space:
mode:
authoralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
committeralexichi <alexbankai96@gmail.com>2016-05-11 11:56:19 +0200
commit35efaf74e828b738a20324a664cf9c2e08ef47d4 (patch)
tree183b4704c87c61b690010efbd6f3b30218328bcc /doc/phpdoc/js/prettify/lang-n.js
parent2350d43a09495db18b22b86ffc815a84eeb35579 (diff)
parent1158d2063f00f38de19a4600566b244a942d86ba (diff)
downloadcandybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.gz
candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.bz2
candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.tar.xz
candybox-35efaf74e828b738a20324a664cf9c2e08ef47d4.zip
Merge branch 'master' of piernov.org:candybox into alexichialexichi
Conflicts: inc/perso.inc
Diffstat (limited to 'doc/phpdoc/js/prettify/lang-n.js')
-rw-r--r--doc/phpdoc/js/prettify/lang-n.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/phpdoc/js/prettify/lang-n.js b/doc/phpdoc/js/prettify/lang-n.js
new file mode 100644
index 0000000..6c2e85b
--- /dev/null
+++ b/doc/phpdoc/js/prettify/lang-n.js
@@ -0,0 +1,4 @@
+var a=null;
+PR.registerLangHandler(PR.createSimpleLexer([["str",/^(?:'(?:[^\n\r'\\]|\\.)*'|"(?:[^\n\r"\\]|\\.)*(?:"|$))/,a,'"'],["com",/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\n\r]*)/,a,"#"],["pln",/^\s+/,a," \r\n\t\xa0"]],[["str",/^@"(?:[^"]|"")*(?:"|$)/,a],["str",/^<#[^#>]*(?:#>|$)/,a],["str",/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,a],["com",/^\/\/[^\n\r]*/,a],["com",/^\/\*[\S\s]*?(?:\*\/|$)/,
+a],["kwd",/^(?:abstract|and|as|base|catch|class|def|delegate|enum|event|extern|false|finally|fun|implements|interface|internal|is|macro|match|matches|module|mutable|namespace|new|null|out|override|params|partial|private|protected|public|ref|sealed|static|struct|syntax|this|throw|true|try|type|typeof|using|variant|virtual|volatile|when|where|with|assert|assert2|async|break|checked|continue|do|else|ensures|for|foreach|if|late|lock|new|nolate|otherwise|regexp|repeat|requires|return|surroundwith|unchecked|unless|using|while|yield)\b/,
+a],["typ",/^(?:array|bool|byte|char|decimal|double|float|int|list|long|object|sbyte|short|string|ulong|uint|ufloat|ulong|ushort|void)\b/,a],["lit",/^@[$_a-z][\w$@]*/i,a],["typ",/^@[A-Z]+[a-z][\w$@]*/,a],["pln",/^'?[$_a-z][\w$@]*/i,a],["lit",/^(?:0x[\da-f]+|(?:\d(?:_\d+)*\d*(?:\.\d*)?|\.\d\+)(?:e[+-]?\d+)?)[a-z]*/i,a,"0123456789"],["pun",/^.[^\s\w"-$'./@`]*/,a]]),["n","nemerle"]);