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

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

@ -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,6 +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:
prefix: 'var'
body: 'var ${1:name}'

Loading…
Cancel
Save