diff --git a/src/tokenizer/python-token-patterns.g.ts b/src/tokenizer/python-token-patterns.g.ts index 448b00b..efc99a7 100644 --- a/src/tokenizer/python-token-patterns.g.ts +++ b/src/tokenizer/python-token-patterns.g.ts @@ -5,7 +5,7 @@ // THIS FILE HAS BEEN GENERATED BY THE `syntax-to-token-pattern.py` GENERATOR // DO NOT EDIT THIS FILE DIRECTLY! INSTEAD RUN THE PYTHON SCRIPT. // ANY MANUAL EDITS MADE TO THIS FILE WILL BE OVERWRITTEN. YOU HAVE BEEN WARNED. -// Last generated: 14/08/2024 16:34:44 (UTC+0) +// Last generated: 15/08/2024 16:36:00 (UTC+0) import { MetaTokenType, KeywordTokenType, CharacterTokenType, EntityTokenType, OperatorTokenType, LiteralTokenType } from "./renpy-tokens"; import { TokenPattern } from "./token-pattern-types"; @@ -2504,10 +2504,10 @@ export const stringQuotedSingleLine: TokenPattern = { debugName: "stringQuotedSingleLine", token: LiteralTokenType.String, /*string.quoted.single.python*/ - begin: /(\b[rRuU])?(\b\w+)?(['"])/dg, + begin: /(?:\b([rR])(?=[uU]))?([uU])?(['"])/dg, beginCaptures: { - 1: { token: MetaTokenType.StringStorageType, /*storage.type.string.python*/ }, - 2: { token: MetaTokenType.Invalid, /*invalid.illegal.prefix.python*/ }, + 1: { token: MetaTokenType.Invalid, /*invalid.illegal.prefix.python*/ }, + 2: { token: MetaTokenType.StringStorageType, /*storage.type.string.python*/ }, 3: { token: MetaTokenType.StringBegin, /*punctuation.definition.string.begin.python*/ }, }, // @ts-ignore: Back references in end patterns are replaced by begin matches at runtime diff --git a/src/tokenizer/renpy-token-patterns.g.ts b/src/tokenizer/renpy-token-patterns.g.ts index 85bd360..663c712 100644 --- a/src/tokenizer/renpy-token-patterns.g.ts +++ b/src/tokenizer/renpy-token-patterns.g.ts @@ -5,7 +5,7 @@ // THIS FILE HAS BEEN GENERATED BY THE `syntax-to-token-pattern.py` GENERATOR // DO NOT EDIT THIS FILE DIRECTLY! INSTEAD RUN THE PYTHON SCRIPT. // ANY MANUAL EDITS MADE TO THIS FILE WILL BE OVERWRITTEN. YOU HAVE BEEN WARNED. -// Last generated: 14/08/2024 16:34:44 (UTC+0) +// Last generated: 15/08/2024 16:36:00 (UTC+0) import { MetaTokenType, CharacterTokenType, LiteralTokenType, EntityTokenType, KeywordTokenType, EscapedCharacterTokenType, OperatorTokenType } from "./renpy-tokens"; import { TokenPattern } from "./token-pattern-types"; @@ -332,14 +332,14 @@ export const keywords: TokenPattern = { // [TODO: Should probably only be a keyword in the expression] Renpy sub expression keywords token: KeywordTokenType.Other, /*keyword.other.renpy*/ - match: /\b(?