Skip to content

Commit

Permalink
Fix float parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jan 30, 2024
1 parent 4c46141 commit cb36453
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "codemirror-lang-liquidsoap",
"version": "0.3.1",
"version": "0.3.2",
"description": "Liquidsoap language support for prosemirror",
"main": "dist/index.cjs",
"bin": {
Expand Down
2 changes: 1 addition & 1 deletion src/tokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export const floatTok = new ExternalTokenizer((input, stack) => {

next = input.advance();

if (hasPrefix && whiteSpace.test(String.fromCharCode(input.peek(1)))) {
if (hasPrefix && whiteSpace.test(String.fromCharCode(next))) {
stack.context.disabled = true;
input.acceptToken(Float);
return;
Expand Down

0 comments on commit cb36453

Please sign in to comment.