Closed mengstr closed 5 years ago
Looking at the dasm man page that says the following for symbols:
name -beginning with an alpha character and containing letters, numbers, or '_'. Represents some global symbol name.
and also at the code
const char *pushsymbol(const char *str) { SYMBOL *sym; const char *ptr; unsigned char macro = 0; for (ptr = str; *ptr == '_' || *ptr == '.' || (*ptr >= 'a' && *ptr <= 'z') || (*ptr >= 'A' && *ptr <= 'Z') || (*ptr >= '0' && *ptr <= '9'); ++ptr
it is apparent (even if they disagree on the dot/period) that both a dot and an underscore are valid parts of a label. And that a label must start with a upper/lowercase letter as well.
I updated the dasm.tmLanguage.json to match this:
dasm.tmLanguage.json
"labels": { "patterns": [ { "name": "keyword.control.label.dasm", "match": "^[a-zA-Z][a-zA-Z0-9_.]+\\b", "comment": "Label" } ] },
Completed in v0.1.7 Awesome thanks for the update Mats!
Looking at the dasm man page that says the following for symbols:
and also at the code
it is apparent (even if they disagree on the dot/period) that both a dot and an underscore are valid parts of a label. And that a label must start with a upper/lowercase letter as well.
I updated the
dasm.tmLanguage.json
to match this: