Quantcast
Channel: Node.js Tools for Visual Studio
Viewing all articles
Browse latest Browse all 4630

Edited Issue: Jade syntax highlighting does not understand JS expressions in attribute values [1775]

$
0
0
The syntax highlighter for jade has some small issues.

For the following codes, if you remove the spaces around the operators, they haven't the same colors anymore:
```jade
body(class=authenticated ? 'authed' : 'anon')
body(class=authenticated?'authed':'anon')
```
```jade
a(href='/home/' + index) Home
a(href='/home/'+index) Home
```
The last line in the second example will also screw up every following code syntax highlight!

![Image](https://www.codeplex.com/Download/AttachmentDownload.ashx?ProjectName=nodejstools&WorkItemId=1775&FileAttachmentId=1420281)

Viewing all articles
Browse latest Browse all 4630

Trending Articles