-
-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsource.befunge.js
More file actions
24 lines (22 loc) · 723 Bytes
/
source.befunge.js
File metadata and controls
24 lines (22 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is licensed `mit`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
extensions: ['.befunge'],
names: ['befunge'],
patterns: [
{match: '[0-9]', name: 'constant.numberic.bf'},
{match: '[+\\-*/%!`]', name: 'storage.type.bf'},
{match: '[#<>^v?|_@]', name: 'storage.type.bf'},
{match: '[:$"]', name: 'stack.bf'},
{match: '[.,&~]', name: 'function.io.bf'},
{match: '[pg]', name: 'storage.type.bf'},
{match: '"(.*?)"', name: 'comment.block.bf'}
],
scopeName: 'source.befunge'
}
export default grammar