fix(cpp): fix cpp language integer suffix

the old config `/(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/` also match some wrong suffix: `lll`, `llLL`, `LLl` and so on.
pull/2748/head
LadyRick 2021-08-19 17:34:22 +08:00 committed by GitHub
parent ddc2f60c7e
commit fd82e6baad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -273,7 +273,7 @@ export const language = <languages.IMonarchLanguage>{
// we include these common regular expressions
symbols: /[=><!~?:&|+\-*\/\^%]+/,
escapes: /\\(?:[abfnrtv\\"']|x[0-9A-Fa-f]{1,4}|u[0-9A-Fa-f]{4}|U[0-9A-Fa-f]{8})/,
integersuffix: /(ll|LL|u|U|l|L)?(ll|LL|u|U|l|L)?/,
integersuffix: /((l|L|ll|LL)?(u|U)?)|((u|U)?(l|L|ll|LL)?)/,
floatsuffix: /[fFlL]?/,
encoding: /u|u8|U|L/,