aboutsummaryrefslogtreecommitdiff
path: root/node_modules/highlight.js/lib/languages/monkey.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-24 15:10:37 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-24 15:11:17 +0200
commit7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch)
tree70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/highlight.js/lib/languages/monkey.js
parentaca1143cb9eed16cf37f04e475e4257418dd18ac (diff)
fix build issues and add typedoc
Diffstat (limited to 'node_modules/highlight.js/lib/languages/monkey.js')
-rw-r--r--node_modules/highlight.js/lib/languages/monkey.js74
1 files changed, 74 insertions, 0 deletions
diff --git a/node_modules/highlight.js/lib/languages/monkey.js b/node_modules/highlight.js/lib/languages/monkey.js
new file mode 100644
index 000000000..5e9b9624d
--- /dev/null
+++ b/node_modules/highlight.js/lib/languages/monkey.js
@@ -0,0 +1,74 @@
+module.exports = function(hljs) {
+ var NUMBER = {
+ className: 'number', relevance: 0,
+ variants: [
+ {
+ begin: '[$][a-fA-F0-9]+'
+ },
+ hljs.NUMBER_MODE
+ ]
+ };
+
+ return {
+ case_insensitive: true,
+ keywords: {
+ keyword: 'public private property continue exit extern new try catch ' +
+ 'eachin not abstract final select case default const local global field ' +
+ 'end if then else elseif endif while wend repeat until forever for ' +
+ 'to step next return module inline throw import',
+
+ built_in: 'DebugLog DebugStop Error Print ACos ACosr ASin ASinr ATan ATan2 ATan2r ATanr Abs Abs Ceil ' +
+ 'Clamp Clamp Cos Cosr Exp Floor Log Max Max Min Min Pow Sgn Sgn Sin Sinr Sqrt Tan Tanr Seed PI HALFPI TWOPI',
+
+ literal: 'true false null and or shl shr mod'
+ },
+ illegal: /\/\*/,
+ contains: [
+ hljs.COMMENT('#rem', '#end'),
+ hljs.COMMENT(
+ "'",
+ '$',
+ {
+ relevance: 0
+ }
+ ),
+ {
+ className: 'function',
+ beginKeywords: 'function method', end: '[(=:]|$',
+ illegal: /\n/,
+ contains: [
+ hljs.UNDERSCORE_TITLE_MODE
+ ]
+ },
+ {
+ className: 'class',
+ beginKeywords: 'class interface', end: '$',
+ contains: [
+ {
+ beginKeywords: 'extends implements'
+ },
+ hljs.UNDERSCORE_TITLE_MODE
+ ]
+ },
+ {
+ className: 'built_in',
+ begin: '\\b(self|super)\\b'
+ },
+ {
+ className: 'meta',
+ begin: '\\s*#', end: '$',
+ keywords: {'meta-keyword': 'if else elseif endif end then'}
+ },
+ {
+ className: 'meta',
+ begin: '^\\s*strict\\b'
+ },
+ {
+ beginKeywords: 'alias', end: '=',
+ contains: [hljs.UNDERSCORE_TITLE_MODE]
+ },
+ hljs.QUOTE_STRING_MODE,
+ NUMBER
+ ]
+ }
+}; \ No newline at end of file