source: node_modules/refractor/lang/false.js@ d24f17c

main
Last change on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 869 bytes
Line 
1'use strict'
2
3module.exports = $false
4$false.displayName = '$false'
5$false.aliases = []
6function $false(Prism) {
7 ;(function (Prism) {
8 /**
9 * Based on the manual by Wouter van Oortmerssen.
10 *
11 * @see {@link https://github.com/PrismJS/prism/issues/2801#issue-829717504}
12 */
13 Prism.languages['false'] = {
14 comment: {
15 pattern: /\{[^}]*\}/
16 },
17 string: {
18 pattern: /"[^"]*"/,
19 greedy: true
20 },
21 'character-code': {
22 pattern: /'(?:[^\r]|\r\n?)/,
23 alias: 'number'
24 },
25 'assembler-code': {
26 pattern: /\d+`/,
27 alias: 'important'
28 },
29 number: /\d+/,
30 operator: /[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,
31 punctuation: /\[|\]/,
32 variable: /[a-z]/,
33 'non-standard': {
34 pattern: /[()<BDO®]/,
35 alias: 'bold'
36 }
37 }
38 })(Prism)
39}
Note: See TracBrowser for help on using the repository browser.