Skip to content

Error for unquoted highlight colors #109

@Rmano

Description

@Rmano

Hi, Thanks for the plugin!

I have a little problem. In the following .vim file (excerpt from my init.vim, it fails:

"
"
hi Error guibg_"#ff0000"
lua << HERE
        color1 = "#ff0000"
        -- color1 = "#ffff00"
HERE
"
hi MarkologyHLu guifg=Black guibg=Pink

It gives the error:

Colorizer: Some error occurred here:  Colorize: ['\%(gui[fb]g\|cterm[fb]g\)\s*=\s*\<\%(\d\+\|#\x\{6}\|\w\+\)\>', function('<SNR>122_PreviewVimColors'), 'colorizer_vimcolors', '&ft ==# "vim"', []]
Colorizer: Position: [0, 9, 17, 0]

and then it will not colorize anything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions