mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Add hex number tokenization to R language
This commit is contained in:
parent
fbdcb70601
commit
0604e55391
1 changed files with 1 additions and 0 deletions
1
src/r.ts
1
src/r.ts
|
|
@ -193,6 +193,7 @@ export const language = <ILanguage>{
|
|||
|
||||
// Recognize positives, negatives, decimals, imaginaries, and scientific notation
|
||||
numbers: [
|
||||
[/0[xX][0-9a-fA-F]+/, 'number.hex'],
|
||||
[/-?(\d*\.)?\d+([eE][+\-]?\d+)?/, 'number']
|
||||
],
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue