Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Policy service attribute not highlighted incorrectly #2

Open
f0r71n37 opened this issue Oct 4, 2021 · 1 comment
Open

Policy service attribute not highlighted incorrectly #2

f0r71n37 opened this issue Oct 4, 2021 · 1 comment

Comments

@f0r71n37
Copy link

f0r71n37 commented Oct 4, 2021

There seems to be something wrong with the service attribute being highlighted incorrectly. "service" in "set service xxxx" gets highlighted like a string inside quotations marks.

@GSGBen
Copy link
Owner

GSGBen commented Oct 7, 2021

Thanks, you're right. It looks like there's insufficient limiting on the bits that are meant to be highlighted in config... lines:

"match": "(?<!\\w)@?(global|policy|interface|user|service|local|dns)\\b",

I'll have to play around with trying to catch and skip the exceptions first, or filtering that to only be caught after config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants