-
-
Notifications
You must be signed in to change notification settings - Fork 31
/
source.nesc.js
30 lines (28 loc) · 923 Bytes
/
source.nesc.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
26
27
28
29
30
// 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 = {
dependencies: ['source.c'],
extensions: ['.nc'],
names: ['nesc'],
patterns: [
{include: 'source.c'},
{
match:
'\\b(abstract|as|async|atomic|call|command|components|configuration|event|implementation|includes|interface|generic|module|new|norace|post|provides|signal|task|uses|nx_struct)\\b',
name: 'keyword.control.nesc'
},
{
match:
'\\b(result_t|error_t|nx_uint8_t|nx_uint16_t|nx_uint32_t|nx_int8_t|nx_int16_t|nx_int32_t|message_t|void)\\b',
name: 'storage.type.nesc'
},
{match: '\\b(SUCCESS|FAIL)\\b', name: 'constant.language.nesc'}
],
scopeName: 'source.nesc'
}
export default grammar