parent
3ae7d254c9
commit
9ef9bac8db
3 changed files with 22 additions and 22 deletions
@ -1,37 +1,37 @@ |
|||||||
# If this is your first time writing a language grammar, check out: |
# If this is your first time writing a language grammar, check out: |
||||||
# - https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/ |
# - https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/ |
||||||
|
|
||||||
'scopeName': 'source.mblf' |
scopeName: 'source.mblf' |
||||||
'name': 'MBLF' |
name: 'MBLF' |
||||||
'fileTypes': [ |
fileTypes: [ |
||||||
'extension' |
'extension' |
||||||
] |
] |
||||||
'patterns': [ |
patterns: [ |
||||||
{ |
{ |
||||||
'match': '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")' |
match: '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")' |
||||||
'captures': |
captures: |
||||||
2: name: 'keyword' |
2: name: 'keyword' |
||||||
3: name: 'string' |
3: name: 'string' |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
'match': '(^\\s*)(add(b)?|sub(b)?)\ +(((0x)?(\\d|[A-F])+)|(\"\[[:ascii:]]\"))' |
match: '(^\\s*)(add(b)?|sub(b)?)\ +(((0x)?(\\d|[A-F])+)|(\"\[[:ascii:]]\"))' |
||||||
'captures': |
captures: |
||||||
6: name: 'constant' |
6: name: 'constant' |
||||||
9: name: 'string' |
9: name: 'string' |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
'match': '(^\\s*)((del)?var)\ +((?=[[:ascii:]])[^;]+)' |
match: '(^\\s*)((del)?var)\ +((?=[[:ascii:]])[^;]+)' |
||||||
'captures': |
captures: |
||||||
2: name: 'keyword.operator' |
2: name: 'keyword.operator' |
||||||
4: name: 'builtin.variable' |
4: name: 'builtin.variable' |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
'match': '(^\\s*)(point(m)?|addv|subv|copy)\ +((?=[[:ascii:]])[^;]+)' |
match: '(^\\s*)(point(m)?|addv|subv|copy)\ +((?=[[:ascii:]])[^;]+)' |
||||||
'captures': |
captures: |
||||||
4: name: 'builtin.variable' |
4: name: 'builtin.variable' |
||||||
}, |
}, |
||||||
{ |
{ |
||||||
'match': ';;.*$' |
match: ';;.*$' |
||||||
'name': 'comment' |
name: 'comment' |
||||||
} |
} |
||||||
] |
] |
||||||
|
Loading…
Reference in new issue