vim-pug
vim-pug copied to clipboard
Vim Pug (formerly Jade) template engine syntax highlighting and indention
the linter works well, failed to find a re-formatter for this to use with ALE(or just from command line), is there a reformatter somewhere?
Without word delimiter in pattern regexp `form` will be incorrectly attributed to the `pugScriptLoopRegion`.
I think it requires whitespace or end of line after the regex, otherwise `form` will be highlighted as `pugScriptLoopRegion`. ```viml syn region pugScriptLoopRegion start="^\s*\(for\|each\)\(\s\|$\)" end="$" contains=pugScriptLoopKeywords ```
On the commit 862314141a689770ecf85076a8fa36600ecb66f7, it was added the `each` keyword to the vim-pug syntax/plug.vim However, it doesn't check if there is a `m` after `for`, making `form` a `pugScriptLoopRegion` instead...
Two issues that seem to have been introduced by 0b4f42ac1ae491adac2b99b81eddd2bfd79337ee: Javascript highlighting occurs in the text of all tags. Try a file with just div this or that and `this`...
Picture's worth 24.5 words:  I changed laptops, and moved all my config files over, but of course, some things don't work. This be one of 'em...
If I call a function inside a template string like this: ``` div #{someNumber.toFixed(2)} ``` I get a `jsParensError` on the `}`.
I cannot see any highlight if I write some JavaScript inside my pug files, for example ``` - var test = 'test'; ``` Or ``` - var obj = {...
Hey, Noticed the following breaks syntax highlighting for anything that follows: ```pug body(onclick="") strong foo ``` The cause is the empty `onclick=""` attribute.