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 2f14fde commit a981bcbCopy full SHA for a981bcb
src/editor/pybricksMicroPython.ts
@@ -224,7 +224,7 @@ export const language = <monaco.languages.IMonarchLanguage>{
224
[/\b0[bB](0|1|_)+/, 'constant.numeric.bin'],
225
[/\b0[oO]([0-7]|_)+/, 'constant.numeric.oct'],
226
[/\b0[xX]([abcdef]|[ABCDEF]|\d|_)+/, 'constant.numeric.hex'],
227
- [/\b([\d_]*\.)?[\d_]+([eE][+-]?[\d_]+)?[jJ]?/, 'constant.numeric'],
+ [/\b(\d[\d_]*\.|\.)?\d[\d_]*([eE][+-]?[\d_]+)?[jJ]?/, 'constant.numeric'],
228
],
229
230
// Recognize strings, including those broken across lines with \ (but not without)
0 commit comments