Skip to content

Commit

Permalink
ts
Browse files Browse the repository at this point in the history
  • Loading branch information
salazarm committed Mar 7, 2025
1 parent 7d65c02 commit f978db3
Show file tree
Hide file tree
Showing 15 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export function getValue(ctx: ValueContext | KeyValueContext): string {
if (ctx.UNQUOTED_STRING()) {
return ctx.text;
}
if ('UNQUOTED_REGEX_STRING' in ctx && ctx.UNQUOTED_REGEX_STRING()) {
if ('UNQUOTED_WILDCARD_STRING' in ctx && ctx.UNQUOTED_WILDCARD_STRING()) {
return ctx.text;
}
throw new Error('Invalid value');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ value: QUOTED_STRING | UNQUOTED_STRING;
keyValue:
QUOTED_STRING
| UNQUOTED_STRING
| UNQUOTED_REGEX_STRING;
| UNQUOTED_WILDCARD_STRING;

// Tokens for operators and keywords
AND: 'and' | 'AND';
Expand All @@ -60,7 +60,7 @@ ROOTS: 'roots';
// Tokens for strings
QUOTED_STRING: '"' (~["\\\r\n])* '"';
UNQUOTED_STRING: [a-zA-Z_][a-zA-Z0-9_]*;
UNQUOTED_REGEX_STRING: [a-zA-Z_*][a-zA-Z0-9_*]*;
UNQUOTED_WILDCARD_STRING: [a-zA-Z_*][a-zA-Z0-9_*]*;
// Whitespace
WS: [ \t\r\n]+ -> skip;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ value: QUOTED_STRING | UNQUOTED_STRING;
keyValue:
QUOTED_STRING
| UNQUOTED_STRING
| UNQUOTED_REGEX_STRING;
| UNQUOTED_WILDCARD_STRING;

// Tokens for operators and keywords
AND: 'and' | 'AND';
Expand Down Expand Up @@ -63,7 +63,7 @@ ROOTS: 'roots';
// Tokens for strings
QUOTED_STRING: '"' (~["\\\r\n])* '"';
UNQUOTED_STRING: [a-zA-Z_][a-zA-Z0-9_]*;
UNQUOTED_REGEX_STRING: [a-zA-Z_*][a-zA-Z0-9_*]*;
UNQUOTED_WILDCARD_STRING: [a-zA-Z_*][a-zA-Z0-9_*]*;
// Whitespace
WS: [ \t\r\n]+ -> skip;

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit f978db3

Please sign in to comment.