Skip to content

Commit

Permalink
Add ends keyword into highligher and lang.parser
Browse files Browse the repository at this point in the history
- closes #17
  • Loading branch information
mborik committed Jun 1, 2021
1 parent d9a2252 commit 7fa64d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/defs_regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
endmoduleLine: /\bendmod(ule)?\b/i,
controlKeywordLine: mkRegex`
\b(
rept|e?dup|end[mprw]|exitm|endmod(ule)?|(?:de|un)?phase|
rept|e?dup|end[mprsw]|exitm|endmod(ule)?|(?:de|un)?phase|
(end)?(struct|section|switch|lua|maxnest)|while|repeat|[rw]end|
if|ifn?def|ifn?used|ifn?exist|else(if)?|endif|
until|(else|end)?case|default|break
Expand Down Expand Up @@ -63,7 +63,7 @@ export default {
fpos|fname|slot|size|opt|page|newpage|radix|outradix|encoding|charset|codepage|
macexp_(?:dft|ovr)|listing|(?:end)?(?:struct|section|switch|lua|maxnest)|
cpu|device|proc|label|local|global|shared|public|forward|export|
e?dup|block|rept|macro|end[mprw]|exitm|module|endmod(?:ule)?|(?:de|un)?define|
e?dup|block|rept|macro|end[mprsw]|exitm|module|endmod(?:ule)?|(?:de|un)?define|
disp|textarea|map|mmu|field|defarray|segment|restore|pushv|popv|enum|enumconf|nextenum|
list|nolist|let|labelslist|bplist|setbp|setbreakpoint|cspectmap|
assert|fatal|error|warning|message|display|print|fail|
Expand Down
2 changes: 1 addition & 1 deletion syntaxes/z80-macroasm.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
},
{
"name": "keyword.control.z80asm",
"match": "(?i:(?<=\\s)(?:cpu|device|proc|macro|label|local|global|shared|public|forward|rept|e?dup|block|end[mprw]|exitm|module|endmod(?:ule)?|(?:un)?define|export|disp|textarea|map|mmu|field|defarray|segment|restore|pushv|popv|enum|enumconf|nextenum)\\b)"
"match": "(?i:(?<=\\s)(?:cpu|device|proc|macro|label|local|global|shared|public|forward|rept|e?dup|block|end[mprsw]|exitm|module|endmod(?:ule)?|(?:un)?define|export|disp|textarea|map|mmu|field|defarray|segment|restore|pushv|popv|enum|enumconf|nextenum)\\b)"
},
{
"name": "keyword.control.z80asm",
Expand Down

0 comments on commit 7fa64d8

Please sign in to comment.