summaryrefslogtreecommitdiffstats
path: root/public/prism/prism-false.js
blob: 67481982a48cdb4bd45323926dc5d9c52fd3b248 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(function (Prism) {
  /**
   * Based on the manual by Wouter van Oortmerssen.
   *
   * @see {@link https://github.com/PrismJS/prism/issues/2801#issue-829717504}
   */
  Prism.languages['false'] = {
    comment: {
      pattern: /\{[^}]*\}/,
    },
    string: {
      pattern: /"[^"]*"/,
      greedy: true,
    },
    'character-code': {
      pattern: /'(?:[^\r]|\r\n?)/,
      alias: 'number',
    },
    'assembler-code': {
      pattern: /\d+`/,
      alias: 'important',
    },
    number: /\d+/,
    operator: /[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,
    punctuation: /\[|\]/,
    variable: /[a-z]/,
    'non-standard': {
      pattern: /[()<BDO®]/,
      alias: 'bold',
    },
  };
})(Prism);