You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
714 B
31 lines
714 B
# If this is your first time writing a language grammar, check out:
|
|
# - https://flight-manual.atom.io/hacking-atom/sections/creating-a-grammar/
|
|
|
|
'scopeName': 'source.mblf'
|
|
'name': 'MBLF'
|
|
'fileTypes': [
|
|
'extension'
|
|
]
|
|
'patterns': [
|
|
{
|
|
'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'
|
|
}
|
|
]
|
|
|