arakashic / chromatica.nvim

Clang based syntax highlighting for Neovim
MIT License
299 stars 17 forks source link

Added handling of space in -I/-isystem switch if path is separated from it #73

Closed xvoidee closed 5 years ago

xvoidee commented 5 years ago

If compilation database contains something like this: -isystem bla -I bla Then chromatica not able to parse it and will not place switch and path in a single row in ChromaticaShowInfo output.

This pull request fixes it.

pierremoreau commented 5 years ago

I wonder whether the relative -> absolute path resolving should be turned into a function as the same code is now found in at least three different places (granted it’s only two lines of code).

By the way, thank you for submitting this MR: I have been running into that issue and only made some quick hack locally.