mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2025-07-04 13:24:18 +00:00
Compare commits
11 Commits
Author | SHA1 | Date | |
---|---|---|---|
765fce9827 | |||
e387111185 | |||
ada325129d | |||
ca009b986b | |||
aa5faf999f | |||
32ddd31469 | |||
3645d31d58 | |||
118052ebc8 | |||
4a5733826e | |||
6e4108ca91 | |||
0c3e7c9e25 |
@ -1,3 +1,7 @@
|
|||||||
|
# v10.4.0
|
||||||
|
|
||||||
|
* Fix operator regex for ACME grammar (again) [#17](https://github.com/MatthewCallis/language-65asm/pull/17)
|
||||||
|
|
||||||
# v10.0.0
|
# v10.0.0
|
||||||
|
|
||||||
* Add support for asm6 assembler
|
* Add support for asm6 assembler
|
||||||
|
@ -57,4 +57,5 @@ See last line in grammar files for names.
|
|||||||
- [ARM9](https://github.com/ARM9)
|
- [ARM9](https://github.com/ARM9)
|
||||||
- [georgjz](https://github.com/georgjz)
|
- [georgjz](https://github.com/georgjz)
|
||||||
- [GoDot](http://www.godot64.de/)
|
- [GoDot](http://www.godot64.de/)
|
||||||
- [NotArtyom](https://github.com/ProbablyNotArtyom)
|
- [Carson Herrington](https://github.com/ProbablyNotArtyom)
|
||||||
|
- [Michael Lass](https://github.com/michaellass)
|
||||||
|
@ -124,8 +124,8 @@ repository:
|
|||||||
}
|
}
|
||||||
# Operators
|
# Operators
|
||||||
{
|
{
|
||||||
match: '\!|\+|\-|\/|\|<<|>>|&|\||\^|=|<|>|\:'
|
match: '\\!|\\+|\\-|\\/|\\*|<<|>>|&|\\||\\^|=|<|>|\\:'
|
||||||
name: 'keyword.operator'
|
name: 'keyword.operator.acme'
|
||||||
}
|
}
|
||||||
# Operators II
|
# Operators II
|
||||||
{
|
{
|
||||||
|
@ -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'
|
scopeName: 'source.assembly.6502.cc65-toolchain'
|
||||||
name: '6502 Assembly (cc65)' # Name shown in Atom Editor grammar selection
|
name: '6502 Assembly (cc65)' # Name shown in Atom Editor grammar selection
|
||||||
|
@ -36,8 +36,12 @@ repository:
|
|||||||
# ===============================================================
|
# ===============================================================
|
||||||
# Assembler symbols
|
# Assembler symbols
|
||||||
{ # Labels
|
{ # Labels
|
||||||
|
match: '^\\s*[a-zA-Z_][a-zA-Z0-9_]*:'
|
||||||
|
name: 'entity.name.function.kickass'
|
||||||
|
}
|
||||||
|
{ # Local labels
|
||||||
|
match: '!(:|[\\+\\-]+)'
|
||||||
name: 'entity.name.function.kickass'
|
name: 'entity.name.function.kickass'
|
||||||
match: '^\\s*[!a-zA-Z_][a-zA-Z0-9_]*:'
|
|
||||||
}
|
}
|
||||||
{ # Variable functions, like var.getValue()
|
{ # Variable functions, like var.getValue()
|
||||||
match: '(\\w+(?=\\())'
|
match: '(\\w+(?=\\())'
|
||||||
@ -51,9 +55,9 @@ repository:
|
|||||||
name: 'string.char.kickass'
|
name: 'string.char.kickass'
|
||||||
}
|
}
|
||||||
{ # Strings
|
{ # Strings
|
||||||
name: 'string.quoted.kickass'
|
|
||||||
begin: '"'
|
begin: '"'
|
||||||
end: '"'
|
end: '"'
|
||||||
|
name: 'string.quoted.kickass'
|
||||||
}
|
}
|
||||||
|
|
||||||
{ # Hex numbers
|
{ # Hex numbers
|
||||||
@ -62,27 +66,22 @@ repository:
|
|||||||
}
|
}
|
||||||
{ # Octals
|
{ # Octals
|
||||||
match: '@([0-7]+)\\b'
|
match: '@([0-7]+)\\b'
|
||||||
name: 'constant.numeric.octal.merlin'
|
name: 'constant.numeric.octal.kickass'
|
||||||
}
|
}
|
||||||
{ # Binary numbers
|
{ # Binary numbers
|
||||||
match: '%[01]+'
|
match: '%[01]+'
|
||||||
name: 'constant.numeric.binary.merlin'
|
name: 'constant.numeric.binary.kickass'
|
||||||
}
|
}
|
||||||
{ # Decimal numbers
|
{ # Decimal numbers
|
||||||
match: '\\b([0-9]+)\\b'
|
match: '\\b([0-9]+)\\b'
|
||||||
name: 'constant.numeric.decimal.merlin'
|
name: 'constant.numeric.decimal.kickass'
|
||||||
}
|
|
||||||
|
|
||||||
{ # Operators
|
|
||||||
match: '[-+/*^><|#\\[\\](),=.!&]'
|
|
||||||
name: 'keyword.operator.kickass'
|
|
||||||
}
|
}
|
||||||
{ # Immediate values
|
{ # Immediate values
|
||||||
match: '\\#(\'.\'|[^\\s\']+)'
|
match: '\\#([^\\s]+)'
|
||||||
name: 'constant.numeric.hex.kickass'
|
name: 'constant.numeric.hex.kickass'
|
||||||
}
|
}
|
||||||
{ # Constants
|
{ # Constants
|
||||||
match: '\\b([_A-Z]+)\\b'
|
match: '\\b([_A-Z][_A-Z0-9]+)\\b'
|
||||||
name: 'variable.kickass'
|
name: 'variable.kickass'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -139,7 +138,7 @@ repository:
|
|||||||
# ===============================================================
|
# ===============================================================
|
||||||
# Variables and Macros
|
# 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:
|
captures:
|
||||||
1: name: 'keyword.control.directive.kickass'
|
1: name: 'keyword.control.directive.kickass'
|
||||||
2: name: 'keyword.control.directive.kickass'
|
2: name: 'keyword.control.directive.kickass'
|
||||||
@ -147,11 +146,10 @@ repository:
|
|||||||
4: name: 'keyword.operator.kickass'
|
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:
|
captures:
|
||||||
1: name: 'keyword.control.directive.kickass'
|
1: name: 'keyword.control.directive.kickass'
|
||||||
2: name: 'keyword.control.directive.kickass'
|
2: name: 'support.function.kickass'
|
||||||
3: name: 'support.function.kickass'
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
match: '(\\.)(function|macro)([\\s\\w_.]*)(\\()([^)]*)(\\))'
|
match: '(\\.)(function|macro)([\\s\\w_.]*)(\\()([^)]*)(\\))'
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "language-65asm",
|
"name": "language-65asm",
|
||||||
"version": "10.3.0",
|
"version": "10.5.0",
|
||||||
"description": "Adds syntax highlighting to 65816/65C816/65802/6502/65C02 files in Atom, with extra support for various compilers.",
|
"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",
|
"repository": "git@github.com:MatthewCallis/language-65asm.git",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
Reference in New Issue
Block a user