Compare commits

...

6 Commits

Author SHA1 Message Date
Matthew Callis 765fce9827
Prepare v10.5.0 release 2021-02-08 15:07:05 -08:00
Matthew Callis e387111185
Merge pull request #19 from ProbablyNotArtyom/master
Various fixes for the Kick Assembler grammar
2021-02-08 15:03:58 -08:00
Matthew Callis ada325129d
Merge pull request #18 from secondsun/patch-1
Fix typo in cc65-toolchain.cson
2021-02-08 15:03:14 -08:00
ProbablyNotArtyom ca009b986b Various regex fixes for the Kick Assembler grammar
* Removed all remaining references to the 'merlin' grammar
 * Labels with trailing numbers are now detected as labels
 * Branches to positional labels are detected properly now
2020-10-01 04:25:08 -04:00
Hoyt Summers Pittman aa5faf999f
Fix typo in cc65-toolchain.cson 2020-07-11 13:49:39 -04:00
Matthew Callis 32ddd31469
Update CHANGELOG.md 2020-01-27 12:40:47 -08:00
4 changed files with 17 additions and 19 deletions

View File

@ -1,4 +1,4 @@
# v10.1.0
# v10.4.0
* Fix operator regex for ACME grammar (again) [#17](https://github.com/MatthewCallis/language-65asm/pull/17)

View File

@ -1,4 +1,4 @@
# Syntax Highlighting for the cc65 toolchain ans 6502 support
# Syntax Highlighting for the cc65 toolchain and 6502 support
scopeName: 'source.assembly.6502.cc65-toolchain'
name: '6502 Assembly (cc65)' # Name shown in Atom Editor grammar selection

View File

@ -36,8 +36,12 @@ repository:
# ===============================================================
# Assembler symbols
{ # Labels
match: '^\\s*[a-zA-Z_][a-zA-Z0-9_]*:'
name: 'entity.name.function.kickass'
}
{ # Local labels
match: '!(:|[\\+\\-]+)'
name: 'entity.name.function.kickass'
match: '^\\s*[!a-zA-Z_][a-zA-Z0-9_]*:'
}
{ # Variable functions, like var.getValue()
match: '(\\w+(?=\\())'
@ -51,9 +55,9 @@ repository:
name: 'string.char.kickass'
}
{ # Strings
name: 'string.quoted.kickass'
begin: '"'
end: '"'
name: 'string.quoted.kickass'
}
{ # Hex numbers
@ -62,27 +66,22 @@ repository:
}
{ # Octals
match: '@([0-7]+)\\b'
name: 'constant.numeric.octal.merlin'
name: 'constant.numeric.octal.kickass'
}
{ # Binary numbers
match: '%[01]+'
name: 'constant.numeric.binary.merlin'
name: 'constant.numeric.binary.kickass'
}
{ # Decimal numbers
match: '\\b([0-9]+)\\b'
name: 'constant.numeric.decimal.merlin'
}
{ # Operators
match: '[-+/*^><|#\\[\\](),=.!&]'
name: 'keyword.operator.kickass'
name: 'constant.numeric.decimal.kickass'
}
{ # Immediate values
match: '\\#(\'.\'|[^\\s\']+)'
match: '\\#([^\\s]+)'
name: 'constant.numeric.hex.kickass'
}
{ # Constants
match: '\\b([_A-Z]+)\\b'
match: '\\b([_A-Z][_A-Z0-9]+)\\b'
name: 'variable.kickass'
}
]
@ -139,7 +138,7 @@ repository:
# ===============================================================
# Variables and Macros
{
match: '(\\.)(var|eval|const|label)(\\s*[a-zA-Z0-9_]*)(\\s*=)'
match: '(\\.)(var|eval|const|label)(\\s*[a-zA-Z0-9_]*)(\\s*=)?'
captures:
1: name: 'keyword.control.directive.kickass'
2: name: 'keyword.control.directive.kickass'
@ -147,11 +146,10 @@ repository:
4: name: 'keyword.operator.kickass'
}
{
match: '(\\.)(var|eval|const|label)(\\s*[a-zA-Z0-9_]*)'
match: '(?:\\()(var|eval|const|label)(?=\\s*[a-zA-Z0-9_]*)'
captures:
1: name: 'keyword.control.directive.kickass'
2: name: 'keyword.control.directive.kickass'
3: name: 'support.function.kickass'
2: name: 'support.function.kickass'
}
{
match: '(\\.)(function|macro)([\\s\\w_.]*)(\\()([^)]*)(\\))'

View File

@ -1,6 +1,6 @@
{
"name": "language-65asm",
"version": "10.4.0",
"version": "10.5.0",
"description": "Adds syntax highlighting to 65816/65C816/65802/6502/65C02 files in Atom, with extra support for various compilers.",
"repository": "git@github.com:MatthewCallis/language-65asm.git",
"license": "MIT",