We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9818025 commit ef236b6Copy full SHA for ef236b6
plugins/pretokenise.js
@@ -230,8 +230,10 @@
230
resultCode += String.fromCharCode(LEX_RAW_INT8, val&255);
231
else if (val>=-32768 && val<32768)
232
resultCode += String.fromCharCode(LEX_RAW_INT16, val&255, (val>>8)&255);
233
- else
+ else {
234
+ if (val<0) resultCode += "-"; // re-add the '-' we took off
235
resultCode += tokenString;
236
+ }
237
} else resultCode += tokenString;
238
} else if (tokenId) {
239
//console.log(JSON.stringify(tok.str)+" => "+tokenId);
0 commit comments