Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 9d5fd0c

Browse files
authored
fix: Parser hunging, close #9, close #2 (#10)
1 parent fea0141 commit 9d5fd0c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

grammar.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ module.exports = grammar({
110110

111111
word: ($) => $._unquoted_atom,
112112

113-
extras: ($) => [/[\x00-\x20\x80-\xA0]/, $.comment],
113+
extras: ($) => [/[\x01-\x20\x80-\xA0]/, $.comment],
114114

115115
inline: ($) => [$.term, $.expression],
116116

@@ -166,7 +166,7 @@ module.exports = grammar({
166166
function_clause: ($) =>
167167
prec(PREC.FUNCTION_CLAUSE, seq(field("name", $.atom), $.lambda_clause)),
168168

169-
comment: ($) => /%.*\n/,
169+
comment: ($) => /%.*/,
170170

171171
////////////////////////////////////////////////////////////////////////////
172172
//

0 commit comments

Comments
 (0)