commit
ad376d5777
5 changed files with 40 additions and 14 deletions
@ -1,14 +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*@@.*$' |
match: '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")' |
||||||
'name': 'comment' |
captures: |
||||||
|
2: name: 'keyword' |
||||||
|
3: name: 'string' |
||||||
|
}, |
||||||
|
{ |
||||||
|
match: '(^\\s*)(add(b)?|sub(b)?)\ +(((0x)?(\\d|[A-F])+)|(\"\[[:ascii:]]\"))' |
||||||
|
captures: |
||||||
|
6: name: 'constant' |
||||||
|
9: name: 'string' |
||||||
|
}, |
||||||
|
{ |
||||||
|
match: '(^\\s*)((del)?var)\ +((?=[[:ascii:]])[^;]+)' |
||||||
|
captures: |
||||||
|
2: name: 'keyword.operator' |
||||||
|
4: name: 'builtin.variable' |
||||||
|
}, |
||||||
|
{ |
||||||
|
match: '(^\\s*)(point(m)?|addv|subv|copy)\ +((?=[[:ascii:]])[^;]+)' |
||||||
|
captures: |
||||||
|
4: name: 'builtin.variable' |
||||||
|
}, |
||||||
|
{ |
||||||
|
match: ';;.*$' |
||||||
|
name: 'comment' |
||||||
} |
} |
||||||
] |
] |
||||||
|
@ -1,5 +1,5 @@ |
|||||||
{ |
{ |
||||||
"name": "language-mblf", |
"name": "language-mblf", |
||||||
"version": "0.0.0", |
"version": "0.1.0", |
||||||
"lockfileVersion": 1 |
"lockfileVersion": 1 |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue