Define printWidth at 100

This commit is contained in:
Alex Dima 2020-09-19 01:28:33 +02:00
parent 078ee54715
commit bce6fe83af
No known key found for this signature in database
GPG key ID: 6E58D7B045760DA0
81 changed files with 290 additions and 1156 deletions

View file

@ -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: '' },

View file

@ -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'],