hedefalk / atom-vue

Vue component file syntax for Atom
Other
147 stars 40 forks source link

Null Propagation operator support #109

Closed DutchGerman closed 1 year ago

DutchGerman commented 4 years ago

When using the Null Propagation operator ( ?. ) in a file it breaks the syntax highlighting.

When you use it in the template: grafik

When you use it in the script: grafik

confused-Techie commented 1 year ago

Looking into this, this seems that the issue stems from the fact that Atom previously did not support optional chaining operators in JavaScript. That's why as reported by others using language-babel instead would resolve the issue.

This was fixed in Pulsar:

Testing now, with the latest version of Pulsar gives me the following: (When trying to duplicate the shown snippet of text)

image

So as long as you are up to date on Pulsar, this issue should be resolved.