Commit Graph

7 Commits

Author SHA1 Message Date
Michael Lass 0c3e7c9e25 Fix operator regex for ACME grammar (again)
Currently, the regex causes the following error:

Uncaught Error: target of repeat operator is not specified

```
At /usr/lib/atom/node_modules/first-mate/lib/scanner.js:31

Error: target of repeat operator is not specified
    at Scanner.module.exports.Scanner.createScanner (/usr/lib/atom/node_modules/first-mate/lib/scanner.js:31:24)
    at Scanner.module.exports.Scanner.getScanner (/usr/lib/atom/node_modules/first-mate/lib/scanner.js:37:31)
    at Scanner.module.exports.Scanner.findNextMatch (/usr/lib/atom/node_modules/first-mate/lib/scanner.js:56:22)
    at Rule.module.exports.Rule.findNextMatch (/usr/lib/atom/node_modules/first-mate/lib/rule.js:98:28)
    at Rule.module.exports.Rule.getNextTags (/usr/lib/atom/node_modules/first-mate/lib/rule.js:154:21)
    at Grammar.module.exports.Grammar.tokenizeLine (/usr/lib/atom/node_modules/first-mate/lib/grammar.js:162:44)
    at TextMateLanguageMode.buildTokenizedLineForRowWithText (/usr/lib/atom/src/text-mate-language-mode.js:503:46)
    at TextMateLanguageMode.buildTokenizedLineForRow (/usr/lib/atom/src/text-mate-language-mode.js:488:17)
    at TextMateLanguageMode.tokenizeNextChunk (/usr/lib/atom/src/text-mate-language-mode.js:340:41)
    at _.defer (/usr/lib/atom/src/text-mate-language-mode.js:324:57)
    at /usr/lib/atom/node_modules/underscore/underscore.js:768:19
```

Fix the regex by applying the following modifications:
* use double backslashes to escape special characters
* insert missing * into regex

While here, also give the pattern a .acme suffix as all the other have.
2020-01-18 23:35:06 +01:00
Matthew Callis a198b529b7
Fix bug in Acme grammar with arithmetic operators 2019-08-29 15:50:55 -07:00
Matthew Callis b4a88e0a42
Updated ACME grammar from GoDot 2018-06-21 10:39:19 -07:00
Georg Ziegler 42530f66bc DASM: Add opcodes and comments 2018-06-07 18:24:53 +02:00
Georg Ziegler bbc826f2cd Add missing pseudo opcodes to acme 2018-06-03 02:58:07 +02:00
Georg Ziegler cf574c0d54 Fixed acme 2018-06-03 02:26:43 +02:00
Matthew Callis 0779d70727 Add Marco Baye's ACME Crossassembler from GoDot 2018-05-27 19:23:47 -07:00