Adding Decorators for comments
This commit is contained in:
@ -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"),
|
||||
|
Reference in New Issue
Block a user