mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 17:25:39 +01:00
Define printWidth at 100
This commit is contained in:
parent
078ee54715
commit
bce6fe83af
81 changed files with 290 additions and 1156 deletions
|
|
@ -233,8 +233,7 @@ testTokenization('java', [
|
|||
// Keywords
|
||||
[
|
||||
{
|
||||
line:
|
||||
'package test; class Program { static void main(String[] args) {} } }',
|
||||
line: 'package test; class Program { static void main(String[] args) {} } }',
|
||||
tokens: [
|
||||
{ startIndex: 0, type: 'keyword.package.java' },
|
||||
{ startIndex: 7, type: '' },
|
||||
|
|
|
|||
|
|
@ -34,12 +34,8 @@ export const conf: languages.LanguageConfiguration = {
|
|||
],
|
||||
folding: {
|
||||
markers: {
|
||||
start: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'
|
||||
),
|
||||
end: new RegExp(
|
||||
'^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))'
|
||||
)
|
||||
start: new RegExp('^\\s*//\\s*(?:(?:#?region\\b)|(?:<editor-fold\\b))'),
|
||||
end: new RegExp('^\\s*//\\s*(?:(?:#?endregion\\b)|(?:</editor-fold>))')
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
@ -186,10 +182,7 @@ export const language = <languages.IMonarchLanguage>{
|
|||
|
||||
// numbers
|
||||
[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/, 'number.float'],
|
||||
[
|
||||
/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,
|
||||
'number.float'
|
||||
],
|
||||
[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/, 'number.float'],
|
||||
[/0[xX](@hexdigits)[Ll]?/, 'number.hex'],
|
||||
[/0(@octaldigits)[Ll]?/, 'number.octal'],
|
||||
[/0[bB](@binarydigits)[Ll]?/, 'number.binary'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue