Skip to content

Commit

Permalink
Regenerate token patterns
Browse files Browse the repository at this point in the history
  • Loading branch information
duckdoom4 committed Aug 7, 2024
1 parent 5775bd2 commit 07a6d83
Show file tree
Hide file tree
Showing 6 changed files with 475 additions and 256 deletions.
40 changes: 20 additions & 20 deletions src/tokenizer/atl-token-patterns.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/07/2024 12:28:58 (UTC+0)
// Last generated: 07/08/2024 16:42:09 (UTC+0)

import { KeywordTokenType, EntityTokenType, MetaTokenType, CharacterTokenType } from "./renpy-tokens";
import { TokenPattern } from "./token-pattern-types";
Expand Down Expand Up @@ -35,91 +35,91 @@ export const atlBuildInProperties: TokenPattern = {
debugName: "atlBuildInProperties.patterns![1]",

// position props (int, absolute, or a float)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:xpos|ypos|xanchor|yanchor|xcenter|ycenter|radius)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![2]",

// position pair props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:pos|anchor|xycenter|around|alignaround|matrixanchor)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![3]",

// float props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:xalign|yalign|zoom|xzoom|yzoom|alpha|additive|angle|delay|events|zpos)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![4]",

// float pair props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:align|knot)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![5]",

// int props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:xoffset|yoffset|xtile|ytile)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![6]",

// int pair props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:offset)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![7]",

// boolean props
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:rotate_pad|transform_anchor|nearest|crop_relative|subpixel|zzoom)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![8]",

// ('#float' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:rotate|xpan|ypan|blur)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![9]",

// ('#position' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:xsize|ysize)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![10]",

// ('\(int, int, int, int\)' | '\(float, float, float, float\)' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:crop)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![11]",

// ('\(int, int\)' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:corner1|corner2)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![12]",

// ('\(position, position\)' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:xysize)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![13]",

// ('#string' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:fit)\b/g,
},
{
Expand All @@ -133,21 +133,21 @@ export const atlBuildInProperties: TokenPattern = {
debugName: "atlBuildInProperties.patterns![15]",

// ('#Matrix' | '#MatrixColor' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:matrixcolor)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![16]",

// ('#Matrix' | '#TransformMatrix' | None)
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:matrixtransform)\b/g,
},
{
debugName: "atlBuildInProperties.patterns![17]",

// ('#bool' | '#float' | '\(float, float, float\)')
token: EntityTokenType.TagName, /*support.type.property-name.transform.renpy entity.name.tag.css.transform.renpy*/
token: EntityTokenType.TagName, /*entity.other.attribute-name.atl.renpy support.type.property-name.atl.renpy entity.name.tag.css.atl.renpy*/
match: /\b(?<!\.)(?:perspective)\b/g,
},
]
Expand Down Expand Up @@ -295,7 +295,7 @@ export const atlOn: TokenPattern = {
contentToken: MetaTokenType.ATLOnParameters, /*meta.atl.on.parameters.renpy*/
begin: /(?<=^[ \t]*)(on)\b[ \t]*/dgm,
beginCaptures: {
1: { token: KeywordTokenType.On, /*keyword.on.renpy*/ },
1: { token: KeywordTokenType.On, /*keyword.control.flow.on.renpy*/ },
},
end: /(?=#|:)|$/gm,
patterns: [
Expand Down Expand Up @@ -450,7 +450,7 @@ export const transform: TokenPattern = {

token: MetaTokenType.TransformStatement, /*meta.transform.statement.renpy*/
contentToken: MetaTokenType.TransformParameters, /*meta.transform.parameters.renpy*/
begin: /(?<=^[ \t]*)(transform)\b[ \t]*/dgm,
begin: /(?<=^[ \t]*)(transform)\b/dgm,
beginCaptures: {
1: { token: KeywordTokenType.Transform, /*keyword.transform.renpy*/ },
},
Expand All @@ -459,7 +459,7 @@ export const transform: TokenPattern = {
{
debugName: "transform.patterns![0]",

token: EntityTokenType.Identifier, /*variable.name.transform.renpy*/
token: EntityTokenType.TransformName, /*entity.name.type.transform.renpy*/
match: /\b([a-zA-Z_]\w*)\b/g,
},
]
Expand Down
6 changes: 3 additions & 3 deletions src/tokenizer/python-token-patterns.g.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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/07/2024 12:28:58 (UTC+0)
// Last generated: 07/08/2024 16:42:09 (UTC+0)

import { MetaTokenType, KeywordTokenType, CharacterTokenType, EntityTokenType, OperatorTokenType, LiteralTokenType } from "./renpy-tokens";
import { TokenPattern } from "./token-pattern-types";
Expand Down Expand Up @@ -896,7 +896,7 @@ export const lambdaParameterWithDefault: TokenPattern = {
begin: /\b([a-zA-Z_]\w*)\s*(=)/dg,
beginCaptures: {
1: { token: EntityTokenType.Identifier, /*variable.parameter.function.language.python*/ },
2: { token: MetaTokenType.Operator, /*keyword.operator.python*/ },
2: { token: OperatorTokenType.Assignment, /*keyword.operator.assignment.python*/ },
},
end: /(,)|(?=:|$)/dgm,
endCaptures: {
Expand Down Expand Up @@ -1003,7 +1003,7 @@ export const looseDefault: TokenPattern = {

begin: /(=)/dg,
beginCaptures: {
1: { token: MetaTokenType.Operator, /*keyword.operator.python*/ },
1: { token: OperatorTokenType.Assignment, /*keyword.operator.assignment.python*/ },
},
end: /(,)|(?=\))/dg,
endCaptures: {
Expand Down
Loading

0 comments on commit 07a6d83

Please sign in to comment.