Quantcast
Channel: User mikyll98 - Stack Overflow
Viewing all articles
Browse latest Browse all 102

Helm template: commas break syntax highlight

$
0
0

I'm using a comma in a Go template action

metadata:  name: {{ $route.name }}-route  annotations:    konghq.com/strip-path: {{ default true $route.stripPath | quote }}    {{- if ne (len $route.plugins) 0 }}    {{- $pluginsString := join "," $route.plugins }}    konghq.com/plugins: {{ $pluginsString | quote }}    {{- end }}

This is what my syntax highlight looks like:enter image description here

And then that "error"/"broken syntax" then propagates to the rest of the file, basically showing everything with the same color, which is very annoying.

Is there a way to prevent commas from breaking the syntax highlight in VS Code?


Viewing all articles
Browse latest Browse all 102

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>