-
-
Notifications
You must be signed in to change notification settings - Fork 30
/
source.bf.js
25 lines (23 loc) · 813 Bytes
/
source.bf.js
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
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/Drako/SublimeBrainfuck>
// and licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
extensions: ['.b'],
names: ['brainfuck'],
patterns: [
{match: '[+-]', name: 'constant.character.modify-value.bf'},
{match: '[<>]', name: 'keyword.operator.modify-pointer.bf'},
{match: '[.,]', name: 'entity.name.function.io.bf'},
{match: '\\[', name: 'punctuation.definition.tag.begin.bf'},
{match: '\\]', name: 'punctuation.definition.tag.end.bf'},
{match: '[^-.,+<>\\[\\]]', name: 'comment.block.bf'}
],
scopeName: 'source.bf'
}
export default grammar