mechatroner / vscode_rainbow_csv

🌈Rainbow CSV - VS Code extension: Highlight CSV and TSV files in different rainbow colors to make them more readable
MIT License
432 stars 53 forks source link

Allow multiple comment prefixes (setting: rainbow_csv.comment_prefix) #169

Open masebu opened 7 months ago

masebu commented 7 months ago

Hi,

thanks for this extension which facilitates my everyday work. I love it and promote it to my colleagues.

I often use it with HDL files; that's a specialized pipe-separated format for importing data in Oracle HCM Cloud. There are two types of lines I would like ignored:

At the moment, apparently only one pattern is considered. Would it be possible to specify multiple prefixes ? I know it's not very "classic CSV".

Thanks for reading

mechatroner commented 7 months ago

Thank you! I am happy to know that Rainbow CSV is useful! Regarding multiple comments - IMO the next level of generalization should be a comment regexp setting e.g. ^(COMMENT|SET) this would allow it to match even in the middle of the string. l am planning to implement this and also extend possible options for available parsing rules - this is high on my priority list, but I am not sure when I would be able to do this, hopefully within a few months.