yorokobi / vim-splunk

Syntax highlighting for Splunk .conf files
http://yorokobi.github.io/vim-splunk/
The Unlicense
74 stars 20 forks source link

rolemap stanza role name highlights #12

Closed j4cknife closed 6 years ago

j4cknife commented 6 years ago

added regex to highlight lines in the rolemap stanza, essentially any line starting with non white space character with a space = space pattern.

yorokobi commented 6 years ago

The purpose of this project is to ensure Splunk .conf files not only have syntax highlighting but also to—albeit roughly—lint the syntax. Allowing "any string = any string" removes the linting capability. For .conf files that allow free-form key=value pairs, this isn't a bad idea but it should use a separate grouping so that it can also have a different color from keys detailed in the .spec files.

I toyed with this previously but found that color scheme limitations and vim's syntax types prevent this from being very effective. You are welcome to keep this change in your fork.