We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4ae33e2 + e264c04 commit ebae8fdCopy full SHA for ebae8fd
1 file changed
lambdacalc.js
@@ -21,7 +21,7 @@ CodeMirror.defineMode("lambdacalc", function(_config, modeConfig) {
21
const assign = /=/
22
const brack = /\(|\)/
23
const lamArg = /[a-zA-Z_][a-zA-Z0-9_\-']*|\./
24
- const numconst = /\d+/
+ const numconst = /-?\d+/
25
26
function expectDefOrTerm(stream, state) {
27
if (stream.match(/.*=/, false)) return expectDef(stream, state);
0 commit comments