Skip to content

Commit

Permalink
chore: Remove CSpell regex bypass for identifiers starting with $ (#2736
Browse files Browse the repository at this point in the history
)

Remove CSpell regex bypass for identifiers starting with $ ("\\$\\w+"), fixing any violations.
  • Loading branch information
luanpotter committed Sep 12, 2023
1 parent db15697 commit 8726d03
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 41 deletions.
1 change: 0 additions & 1 deletion .github/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
"**/CHANGELOG.md"
],
"ignoreRegExpList": [
"\\$\\w+",
"\\{\\w+",
"\\`\\w+",
"\\:\\w+",
Expand Down
76 changes: 38 additions & 38 deletions packages/flame_jenny/jenny/lib/src/parse/ascii.dart
Original file line number Diff line number Diff line change
@@ -1,41 +1,41 @@
//
// ASCII codes for symbols needed for lexing.
//
const int $tab = 0x09; // '\t'
const int $lineFeed = 0x0A; // '\n'
const int $carriageReturn = 0x0D; // '\r'
const int $space = 0x20; // ' '
const int $exclamation = 0x21; // '!'
const int $doubleQuote = 0x22; // '"'
const int $hash = 0x23; // '#'
const int $dollar = 0x24; // '$'
const int $percent = 0x25; // '%'
const int $ampersand = 0x26; // '&'
const int $singleQuote = 0x27; // '\''
const int $leftParen = 0x28; // '('
const int $rightParen = 0x29; // ')'
const int $asterisk = 0x2a; // '*'
const int $plus = 0x2b; // '+'
const int $comma = 0x2c; // ','
const int $minus = 0x2d; // '-'
const int $dot = 0x2e; // '.'
const int $slash = 0x2f; // '/'
const int $digit0 = 0x30; // '0'
const int $digit9 = 0x39; // '9'
const int $colon = 0x3a; // ':'
const int $lessThan = 0x3c; // '<'
const int $equals = 0x3d; // '='
const int $greaterThan = 0x3e; // '>'
const int $uppercaseA = 0x41; // 'A'
const int $uppercaseZ = 0x5a; // 'Z'
const int $leftBracket = 0x5b; // '['
const int $backslash = 0x5c; // '\\'
const int $rightBracket = 0x5d; // ']'
const int $caret = 0x5e; // '^'
const int $underscore = 0x5f; // '_'
const int $lowercaseA = 0x61; // 'a'
const int $lowercaseN = 0x6e; // 'n'
const int $lowercaseZ = 0x7a; // 'z'
const int $leftBrace = 0x7b; // '{'
const int $pipe = 0x7c; // '|'
const int $rightBrace = 0x7d; // '}'
const int $tab = 0x09; // '\t'
const int $lineFeed = 0x0A; // '\n'
const int $carriageReturn = 0x0D; // '\r'
const int $space = 0x20; // ' '
const int $exclamation = 0x21; // '!'
const int $doubleQuote = 0x22; // '"'
const int $hash = 0x23; // '#'
const int $dollar = 0x24; // '$'
const int $percent = 0x25; // '%'
const int $ampersand = 0x26; // '&'
const int $singleQuote = 0x27; // '\''
const int $leftParenthesis = 0x28; // '('
const int $rightParenthesis = 0x29; // ')'
const int $asterisk = 0x2a; // '*'
const int $plus = 0x2b; // '+'
const int $comma = 0x2c; // ','
const int $minus = 0x2d; // '-'
const int $dot = 0x2e; // '.'
const int $slash = 0x2f; // '/'
const int $digit0 = 0x30; // '0'
const int $digit9 = 0x39; // '9'
const int $colon = 0x3a; // ':'
const int $lessThan = 0x3c; // '<'
const int $equals = 0x3d; // '='
const int $greaterThan = 0x3e; // '>'
const int $uppercaseA = 0x41; // 'A'
const int $uppercaseZ = 0x5a; // 'Z'
const int $leftBracket = 0x5b; // '['
const int $backslash = 0x5c; // '\\'
const int $rightBracket = 0x5d; // ']'
const int $caret = 0x5e; // '^'
const int $underscore = 0x5f; // '_'
const int $lowercaseA = 0x61; // 'a'
const int $lowercaseN = 0x6e; // 'n'
const int $lowercaseZ = 0x7a; // 'z'
const int $leftBrace = 0x7b; // '{'
const int $pipe = 0x7c; // '|'
const int $rightBrace = 0x7d; // '}'
4 changes: 2 additions & 2 deletions packages/flame_jenny/jenny/test/parse/ascii_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ void main() {
check($percent, '%');
check($ampersand, '&');
check($singleQuote, "'");
check($leftParen, '(');
check($rightParen, ')');
check($leftParenthesis, '(');
check($rightParenthesis, ')');
check($asterisk, '*');
check($plus, '+');
check($comma, ',');
Expand Down

0 comments on commit 8726d03

Please sign in to comment.