Comments (5)
Omg, I think I found the problem ...
Since we do not use a comma to split the attributes, pug assumes that it's JavaScript syntax
So if we split the attributes with a comma, the syntax error is gone
... took me some hours ...
from pug-lint-vue.
Also experiencing this.
The order doesn't seem to matter. The failing line is always the second colon-prefixed attribute.
from pug-lint-vue.
I've opened a ticket in the pug-lint repo for this. I believe that it is related directly to pug-lint, since I was receiving these syntax errors when running pug-lint itself.
from pug-lint-vue.
This issue was prematurely closed—there shouldn't be a need to add commas to each line. The good folks at pug-lint
found the underlying issue and the above PR should take care of it. :)
from pug-lint-vue.
Will be fixed in next release.
from pug-lint-vue.
Related Issues (9)
- sort messages by line number
- False positive about `validateAttributeSeperator` with attributes starting with `:` or `@` HOT 5
- if template without lang="pug" have custom element will show error HOT 5
- Error on run HOT 2
- Create webpack loader HOT 1
- Line numbers are wrong HOT 2
- Added to syntastic
- Non-Sense Error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pug-lint-vue.