main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
483 bytes
|
Line | |
---|
1 | 'use strict'
|
---|
2 |
|
---|
3 | module.exports = brainfuck
|
---|
4 | brainfuck.displayName = 'brainfuck'
|
---|
5 | brainfuck.aliases = []
|
---|
6 | function brainfuck(Prism) {
|
---|
7 | Prism.languages.brainfuck = {
|
---|
8 | pointer: {
|
---|
9 | pattern: /<|>/,
|
---|
10 | alias: 'keyword'
|
---|
11 | },
|
---|
12 | increment: {
|
---|
13 | pattern: /\+/,
|
---|
14 | alias: 'inserted'
|
---|
15 | },
|
---|
16 | decrement: {
|
---|
17 | pattern: /-/,
|
---|
18 | alias: 'deleted'
|
---|
19 | },
|
---|
20 | branching: {
|
---|
21 | pattern: /\[|\]/,
|
---|
22 | alias: 'important'
|
---|
23 | },
|
---|
24 | operator: /[.,]/,
|
---|
25 | comment: /\S+/
|
---|
26 | }
|
---|
27 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.