12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- function inform7(hljs) {
- const START_BRACKET = '\\[';
- const END_BRACKET = '\\]';
- return {
- name: 'Inform 7',
- aliases: ['i7'],
- case_insensitive: true,
- keywords: {
-
- keyword:
-
- 'thing room person man woman animal container ' +
- 'supporter backdrop door ' +
-
- 'scenery open closed locked inside gender ' +
-
- 'is are say understand ' +
-
- '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: '$'
- },
- {
-
-
- begin: /^(Check|Carry out|Report|Instead of|To|Rule|When|Before|After)\b/,
- end: ':',
- contains: [
- {
-
- begin: '\\(This',
- end: '\\)'
- }
- ]
- },
- {
- className: 'comment',
- begin: START_BRACKET,
- end: END_BRACKET,
- contains: ['self']
- }
- ]
- };
- }
- module.exports = inform7;
|