On Mi, 10 Apr 2024, Tony Mechelynck wrote:
> Suddenly when opening a CSS file in Vim (or when opening an HTML file, > because HTML syntax invokes CSS syntax), I see a huge lot of errors. > This is at patchlevel 9.1.296 or earlier. I didn't see it a few days > ago but I'm not sure at which changeset it appeared. > > I'm copying below what I saw while opening one HTLM file : > > "pub/public/nb_au/nbau.contents.html" > > "pub/public/nb_au/nbau.contents.html" 26L, 799B > Error detected while processing BufRead Autocommands for > "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for > "*"..Syntax Autocommands for "*"..function <SNR>11_SynSet[25]..script > /usr/local/share/vim/vim91/syntax/html.vim[308]../usr/local/share/vim/vim91/syntax/css.vim: > line 129: > E409: Unknown group name: > cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ oneline > E475: Invalid argument: cssMathGroup contained > matchgroup=cssMathParens start="(" end=")" > containedin=cssFunction,cssMathGroup > contains=cssCustomProp,cssValue.*,cssFunction,cssColor,cssStringQ,cssStringQQ > oneline > line 130: > E409: Unknown group name: > cssValue.*,cssFunction,cssURL,cssColor,cssStringQ,cssStringQQ oneline > E475: Invalid argument: cssFunction contained > matchgroup=cssFunctionName start="\<\(var\|calc\)\s*(" end=")" > contains=cssCustomProp,cssValue.*,cssFunction,cssURL,cssColor,cssStringQ,cssStringQQ > oneline > line 453: > E409: Unknown group name: > css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssCustomProp,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssHacks,cssNoise > fold > E475: Invalid argument: cssDefinition transparent matchgroup=cssBraces > start='{' end='}' > contains=cssTagName,cssAttributeSelector,cssClassName,cssIdentifier,cssAtRule,cssAttrRegion,css.*Prop,cssComment,cssValue.*,cssColor,cssURL,cssImportant,cssCustomProp,cssError,cssStringQ,cssStringQQ,cssFunction,cssUnicodeEscape,cssVendor,cssDefinition,cssHacks,cssNoise > fold > line 498: > E409: Unknown group name: > css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise > E475: Invalid argument: cssAttrRegion start=/:/ > end=/\ze\(;\|)\|}\|{\)/ contained > contains=cssPseudoClassId,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise > line 502: > E409: Unknown group name: > css.*Prop,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise > E475: Invalid argument: cssAttrRegion start=/transition\s*:/ > end=/\ze\(;\|)\|}\)/ contained > contains=css.*Prop,css.*Attr,cssColor,cssImportant,cssValue.*,cssFunction,cssString.*,cssURL,cssComment,cssUnicodeEscape,cssVendor,cssError,cssAttrComma,cssNoise > line 527: > E409: Unknown group name: > css.*Prop,cssValue.*,cssVendor,cssAtKeyword,cssComment > nextgroup=cssDefinition > E475: Invalid argument: cssAtRule start=/@supports\>/ end=/\ze{/ > skipwhite skipnl > contains=cssAtRuleLogical,cssAttrRegion,css.*Prop,cssValue.*,cssVendor,cssAtKeyword,cssComment > nextgroup=cssDefinition > Error detected while processing BufRead Autocommands for > "*.html"..function dist#ft#FThtml[13]..FileType Autocommands for > "*"..Syntax Autocommands for "*"..function <SNR>11_SynSet[25]..script > /usr/local/share/vim/vim91/syntax/html.vim: > line 312: > E409: Unknown group name: > css.*Attr,css.*Prop,cssComment,cssLength,cssColor,cssURL,cssImportant,cssError,cssString,@htmlPreproc > E475: Invalid argument: htmlCssDefinition matchgroup=htmlArg > start='style="' keepend matchgroup=htmlString end='"' > contains=css.*Attr,css.*Prop,cssComment,cssLength,cssColor,cssURL,cssImportant,cssError,cssString,@htmlPreproc Hm, may it be related to my patch: https://github.com/vim/vim/pull/14433 It also seems to break on FreeBSD and MacOS CI, so I am planning to back it out later today. Can you please check v9.1.295? And can you also check if `:set re=1` helps? If this is indeed that patch causing the issue, can you please share the html file? Thanks, Christian -- Because the wine remembers. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/ZhY1VEDfQIvUod6v%40256bit.org.