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: # 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'
} }
] ]

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

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

Loading…
Cancel
Save