Remove redundant quotes in cson

beta
Raymonzut 4 years ago
parent 3ae7d254c9
commit 9ef9bac8db
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 28
      grammars/mblf.cson
  2. 4
      settings/language-mblf.cson
  3. 12
      snippets/language-mblf.cson

@ -1,37 +1,37 @@
# 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': [
scopeName: 'source.mblf'
name: 'MBLF'
fileTypes: [
'extension'
]
'patterns': [
patterns: [
{
'match': '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")'
'captures':
match: '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")'
captures:
2: name: 'keyword'
3: name: 'string'
},
{
'match': '(^\\s*)(add(b)?|sub(b)?)\ +(((0x)?(\\d|[A-F])+)|(\"\[[:ascii:]]\"))'
'captures':
match: '(^\\s*)(add(b)?|sub(b)?)\ +(((0x)?(\\d|[A-F])+)|(\"\[[:ascii:]]\"))'
captures:
6: name: 'constant'
9: name: 'string'
},
{
'match': '(^\\s*)((del)?var)\ +((?=[[:ascii:]])[^;]+)'
'captures':
match: '(^\\s*)((del)?var)\ +((?=[[:ascii:]])[^;]+)'
captures:
2: name: 'keyword.operator'
4: name: 'builtin.variable'
},
{
'match': '(^\\s*)(point(m)?|addv|subv|copy)\ +((?=[[:ascii:]])[^;]+)'
'captures':
match: '(^\\s*)(point(m)?|addv|subv|copy)\ +((?=[[:ascii:]])[^;]+)'
captures:
4: name: 'builtin.variable'
},
{
'match': ';;.*$'
'name': 'comment'
match: ';;.*$'
name: 'comment'
}
]

@ -2,5 +2,5 @@
# https://github.com/atom/language-gfm/blob/master/settings/gfm.cson
'.source.mblf':
'editor':
'commentStart': ';; '
editor:
commentStart: ';; '

@ -2,9 +2,9 @@
# https://github.com/atom/language-javascript/blob/master/snippets/javascript.cson
'.source.mblf':
'Method documentation':
'prefix': 'doc'
'body': ';; ${1:method} - ${2:description}'
'Variable':
'prefix': 'var'
'body': 'var ${1:name}'
Documentation:
prefix: 'doc'
body: ';; ${1:method} - ${2:description}'
Variable:
prefix: 'var'
body: 'var ${1:name}'

Loading…
Cancel
Save