Match inline comments for new var names

beta
Raymonzut 4 years ago
parent 775fc216fa
commit f404b39845
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 4
      grammars/mblf.cson

@ -14,13 +14,13 @@
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'
}, },

Loading…
Cancel
Save