Merge branch 'beta' into 'master' for v0.1.0

beta v0.1.0
Raymonzut 4 years ago
commit ad376d5777
No known key found for this signature in database
GPG Key ID: 1E9BCC39EDD1DD53
  1. 35
      grammars/mblf.cson
  2. 2
      package-lock.json
  3. 4
      package.json
  4. 4
      settings/language-mblf.cson
  5. 9
      snippets/language-mblf.cson

@ -1,14 +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*@@.*$'
'name': 'comment'
match: '(^\\s*)(\#include)\ +(\"([[:ascii:]]+)(\.mblf)?\")'
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'
}
]

2
package-lock.json generated

@ -1,5 +1,5 @@
{
"name": "language-mblf",
"version": "0.0.0",
"version": "0.1.0",
"lockfileVersion": 1
}

@ -1,13 +1,13 @@
{
"name": "language-mblf",
"version": "0.0.0",
"version": "0.1.0",
"description": "The atom language package for mblf, by the makers of mblf",
"keywords": [
"mblf",
"language",
"grammar"
],
"repository": "https://github.com/Brainfuck-Project/language-mblf",
"repository": "https://github.com/MBLF-Project/language-mblf",
"license": "MIT",
"engines": {
"atom": ">=1.0.0 <2.0.0"

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

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

Loading…
Cancel
Save