Adding Decorators for comments

This commit is contained in:
K35
2022-01-01 18:47:34 +00:00
parent 579055d8fb
commit 4e389dc472
7 changed files with 145 additions and 15 deletions

View File

@ -3,6 +3,7 @@ export type TokenTypes =
| "comment"
| "string"
| "keyword"
| "at"
| "colon"
| "semicolon"
| "comma"
@ -57,6 +58,7 @@ const matcher = [
regexMatcher(/^".*?"/, "string"),
// regexMatcher(/(?<=^")(.*?)(?=")/, "string"),
regexMatcher(/^(type|enum|import|service)\b/, "keyword"),
regexMatcher(/^\@/, "at"),
regexMatcher(/^\:/, "colon"),
regexMatcher(/^\;/, "semicolon"),
regexMatcher(/^\,/, "comma"),