diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:10:37 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-05-24 15:11:17 +0200 |
commit | 7a3df06eb573d36142bd1a8e03c5ce8752d300b3 (patch) | |
tree | 70bfaea8884c374876f607774850a3a51c0cb381 /node_modules/highlight.js/lib/languages/inform7.js | |
parent | aca1143cb9eed16cf37f04e475e4257418dd18ac (diff) | |
download | wallet-core-7a3df06eb573d36142bd1a8e03c5ce8752d300b3.tar.xz |
fix build issues and add typedoc
Diffstat (limited to 'node_modules/highlight.js/lib/languages/inform7.js')
-rw-r--r-- | node_modules/highlight.js/lib/languages/inform7.js | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/node_modules/highlight.js/lib/languages/inform7.js b/node_modules/highlight.js/lib/languages/inform7.js new file mode 100644 index 000000000..4e3724a64 --- /dev/null +++ b/node_modules/highlight.js/lib/languages/inform7.js @@ -0,0 +1,56 @@ +module.exports = function(hljs) { + var START_BRACKET = '\\['; + var END_BRACKET = '\\]'; + return { + aliases: ['i7'], + case_insensitive: true, + keywords: { + // Some keywords more or less unique to I7, for relevance. + keyword: + // kind: + 'thing room person man woman animal container ' + + 'supporter backdrop door ' + + // characteristic: + 'scenery open closed locked inside gender ' + + // verb: + 'is are say understand ' + + // misc keyword: + 'kind of rule' + }, + contains: [ + { + className: 'string', + begin: '"', end: '"', + relevance: 0, + contains: [ + { + className: 'subst', + begin: START_BRACKET, end: END_BRACKET + } + ] + }, + { + className: 'section', + begin: /^(Volume|Book|Part|Chapter|Section|Table)\b/, + end: '$' + }, + { + // Rule definition + // This is here for relevance. + begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/, + end: ':', + contains: [ + { + //Rule name + begin: '\\(This', end: '\\)' + } + ] + }, + { + className: 'comment', + begin: START_BRACKET, end: END_BRACKET, + contains: ['self'] + } + ] + }; +};
\ No newline at end of file |