mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Merge pull request #123 from arlosi/rust2018
Rust: add support for keywords from the 2018 edition
This commit is contained in:
commit
7a07b3daf7
1 changed files with 4 additions and 0 deletions
|
|
@ -42,11 +42,14 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
defaultToken: 'invalid',
|
defaultToken: 'invalid',
|
||||||
keywords: [
|
keywords: [
|
||||||
'as',
|
'as',
|
||||||
|
'async',
|
||||||
|
'await',
|
||||||
'box',
|
'box',
|
||||||
'break',
|
'break',
|
||||||
'const',
|
'const',
|
||||||
'continue',
|
'continue',
|
||||||
'crate',
|
'crate',
|
||||||
|
'dyn',
|
||||||
'else',
|
'else',
|
||||||
'enum',
|
'enum',
|
||||||
'extern',
|
'extern',
|
||||||
|
|
@ -71,6 +74,7 @@ export const language = <languages.IMonarchLanguage>{
|
||||||
'super',
|
'super',
|
||||||
'trait',
|
'trait',
|
||||||
'true',
|
'true',
|
||||||
|
'try',
|
||||||
'type',
|
'type',
|
||||||
'unsafe',
|
'unsafe',
|
||||||
'use',
|
'use',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue