Skip to content

Commit

Permalink
SjASMPlus lua script block support;
Browse files Browse the repository at this point in the history
added showcase images and updated readme
  • Loading branch information
mborik committed Apr 19, 2018
1 parent 67fb8ce commit f96d9ec
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 12 deletions.
39 changes: 29 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Support for Z80 macro-assemblers in Visual Studio Code
# Support for Z80 macro-assemblers in Visual Studio Code

The **Z80 Macro-Assembler** extension for Visual Studio Code provides the following features inside VS Code:

Expand All @@ -10,14 +10,7 @@ The **Z80 Macro-Assembler** extension for Visual Studio Code provides the follow
* label and symbol documenter on hover, defintion provider, completition proposer
* snippets for macros and source control keywords

### Credits

This extension was done by **Martin Bórik** as a compilation of derived work inspired by these VS Code extensions:
- [`z80asm-vscode`](https://github.com/Imanolea/z80asm-vscode) by **Imanol Barriuso**
- [`vscode-pasmo`](https://github.com/BouKiCHi/vscode-pasmo) by **BouKiCHi**
- [`rgbds-vscode`](https://github.com/DonaldHays/rgbds-vscode) by **Donald Hays**

### Problem matchers
## Problem matchers

There are some predefined problem matchers to handle reported errors from compilation output:
- `errmatcher-as` for **Macroassembler AS**
Expand All @@ -30,7 +23,33 @@ These values can be used in `.vscode/tasks.json` of your project's build task, f
...
```

### License
## IntelliSense showcase

### Definition Provider:
> ![Definition provider](images/z80-macroasm-definition.png)
> Generated map of every symbol defined considers also modules or temporal labels:
> ![Peek Definition demo](images/z80-macroasm-definition-peek.gif)
### Completion Proposer
> ![Completion Proposer](images/z80-macroasm-completion.png)
> Inteligent completion of directives, pseudo-instructions, Z80 instructions, registers, labels or symbols:
> ![Completion and snippets demo](images/z80-macroasm-completion-demo.gif)
### Hover over symbol:
> Show symbol's value or specific definiton:
> ![Hover over symbol](images/z80-macroasm-hover.gif)

## Credits

This extension was done by **Martin Bórik** as a compilation of derived work inspired by these VS Code extensions:
- [`z80asm-vscode`](https://github.com/Imanolea/z80asm-vscode) by **Imanol Barriuso**
- [`vscode-pasmo`](https://github.com/BouKiCHi/vscode-pasmo) by **BouKiCHi**
- [`rgbds-vscode`](https://github.com/DonaldHays/rgbds-vscode) by **Donald Hays**

## License

The Z80 Assembly extension is subject to [these license terms](LICENSE).

Expand Down
Binary file added images/z80-macroasm-completion-demo.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/z80-macroasm-completion.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/z80-macroasm-definition-peek.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/z80-macroasm-definition.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/z80-macroasm-hover.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 17 additions & 2 deletions syntaxes/z80-macroasm.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"patterns": [
{
"name": "keyword.control.z80asm",
"match": "(?i:(?<=\\s)(?:equ|eval|org|end?t|align|phase|dephase|unphase|shift|save(bin|hob|sna|tap|trd)|emptytrd|inc(bin|hob|trd)|b?include|insert|binary|end|output|fpos|page|slot|size|outradix)\\b)"
"match": "(?i:(?<=\\s)(?:equ|eval|org|end?t|align|phase|(de|un)phase|shift|save(bin|hob|sna|tap|trd)|emptytrd|inc(bin|hob|trd)|b?include|insert|binary|end|output|fpos|page|slot|size|outradix)\\b)"
},
{
"name": "keyword.control.z80asm",
Expand All @@ -52,7 +52,22 @@
},
{
"name": "keyword.control.z80asm",
"match": "(?i:(?<=\\s)(?:if|ifdef|ifndef|ifused|ifnused|else|elseif|endif)\\b)"
"match": "(?i:(?<=\\s)(?:if|ifn?def|ifn?used|else|elseif|endif)\\b)"
},
{
"name": "string.other.lua.z80asm",
"begin": "(?i:(?<=\\s)(lua)\\b)",
"beginCaptures": {
"1": {
"name": "keyword.control.z80asm"
}
},
"end": "(?i:(?<=\\s)(endlua)\\b)",
"endCaptures": {
"1": {
"name": "keyword.control.z80asm"
}
}
}
]
},
Expand Down

0 comments on commit f96d9ec

Please sign in to comment.