-
-
Notifications
You must be signed in to change notification settings - Fork 37
Expand file tree
/
Copy pathsource.vba.js
More file actions
53 lines (51 loc) · 1.2 KB
/
Copy pathsource.vba.js
File metadata and controls
53 lines (51 loc) · 1.2 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// This is a TextMate grammar distributed by `starry-night`.
// This grammar is developed at
// <https://github.com/serkonda7/vscode-vba>
// and licensed `mpl-2.0`.
// See <https://github.com/wooorm/starry-night> for more info.
/**
* @import {Grammar} from '@wooorm/starry-night'
*/
/** @type {Grammar} */
const grammar = {
dependencies: ['source.vb6'],
extensions: ['.bas', '.bas', '.bas', '.ctl', '.dsr', '.vba'],
names: [
'b4x',
'basic-for-android',
'classic-visual-basic',
'vb-6',
'vb6',
'vba',
'visual-basic-6',
'visual-basic-6.0',
'visual-basic-classic',
'visual-basic-for-applications'
],
patterns: [
{include: '#keywords'},
{include: '#types'},
{include: 'source.vb6'}
],
repository: {
keywords: {
patterns: [
{match: '(?i)\\bPtrSafe\\b', name: 'keyword.other.vba'},
{
match: '(?i)\\bOption (Compare Database|Private Module)\\b',
name: 'keyword.other.option.vba'
}
]
},
types: {
patterns: [
{
match: '(?i)(?<= As )(LongLong|LongPtr)\\b',
name: 'support.type.builtin.vba'
}
]
}
},
scopeName: 'source.vba'
}
export default grammar