mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 18:32:56 +01:00
fix r roxygen comment highlighting #2086
This commit is contained in:
parent
e50e2a274b
commit
c2d74bbc1d
1 changed files with 1 additions and 4 deletions
|
|
@ -270,6 +270,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
|
|
||||||
tokenizer: {
|
tokenizer: {
|
||||||
root: [
|
root: [
|
||||||
|
[
|
||||||
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
/[a-zA-Z][a-zA-Z0-9_]*!?|_[a-zA-Z0-9_]+/,
|
||||||
{
|
{
|
||||||
cases: {
|
cases: {
|
||||||
|
|
@ -326,10 +327,6 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
[/\\./, 'string.escape.invalid'],
|
[/\\./, 'string.escape.invalid'],
|
||||||
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }]
|
[/"/, { token: 'string.quote', bracket: '@close', next: '@pop' }]
|
||||||
],
|
],
|
||||||
stringraw: [
|
|
||||||
[/[^#"]/, 'string.raw'],
|
|
||||||
[/(#*)".*?"\1/, { token: 'string.raw', bracket: '@close', next: '@pop' }]
|
|
||||||
],
|
|
||||||
numbers: [
|
numbers: [
|
||||||
//Octal
|
//Octal
|
||||||
[/(0o[0-7_]+)(@intSuffixes)?/, { token: 'number' }],
|
[/(0o[0-7_]+)(@intSuffixes)?/, { token: 'number' }],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue