Skip to content

Commit

Permalink
fix: a bug where a touch note in E group turn it into tap note
Browse files Browse the repository at this point in the history
  • Loading branch information
xhayper committed Nov 10, 2023
1 parent ee7202a commit ef7da18
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simai.js",
"version": "1.0.9",
"version": "1.0.10",
"description": "A serializer(wip)/deserializer for the rhythm game chart format simai.",
"main": "dist/index.js",
"module": "dist/index.mjs",
Expand Down Expand Up @@ -38,8 +38,8 @@
},
"homepage": "https://github.com/reflektone-games/simai.js#readme",
"devDependencies": {
"@types/mocha": "^10.0.3",
"@types/node": "^20.8.10",
"@types/mocha": "^10.0.4",
"@types/node": "^20.9.0",
"del-cli": "^5.1.0",
"mocha": "^10.2.0",
"ts-node": "^10.9.1",
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

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

8 changes: 8 additions & 0 deletions src/internal/lexicalAnalysis/tokenizer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ export class Tokenizer {
return undefined;

case this.endOfFileChar:
try {
const [isLocationToken, locationLength] = this.tryScanLocationToken();
if (isLocationToken) {
this._current += locationLength - 1;
return this.compileToken(TokenType.Location);
}
} catch (ignored) {}

return this.compileToken(TokenType.EndOfFile);

case "|": {
Expand Down

0 comments on commit ef7da18

Please sign in to comment.