Comments (10)
Thanks for the report! I will look into this.
I've refactored the font-lock keywords and div.test seems to work fine:
I'll look into inline tags.
from emacs-pug-mode.
Wow, fastest fix ever! Thank you, it does work fine. Amusingly, inline tags are now highlighted in one color, and the first letter of their content another. I guess inline tags aren't a big deal anyway though. I'll leave this issue open for now, just so that there's a record of the inline thing.
Sidenote: what theme are you using?
from emacs-pug-mode.
I have some improvements for pug-mode's syntax highlighting on the horizon that should fix these issues, but there's some refactoring to do first.
As for the theme, I'm using something homebrewed, inspired by Atom's Dark One: https://github.com/hlissner/emacs-doom-theme
from emacs-pug-mode.
I've pushed a [hopeful] fix for your issue. Let me know if it persists!
from emacs-pug-mode.
Looks like this:
Strange, I'm pretty sure I have the latest version.
Total sidenote: in the same vein as pug-mode
, I made stylus-mode
. It works surprisingly well (surprising to me, at least).
from emacs-pug-mode.
Oh wow. And this is with the update?
from emacs-pug-mode.
I mean, I think so, I nuked ~/.emacs.d/elpa
…
from emacs-pug-mode.
I just checked MELPA; it hasn't pulled the update yet.
It usually takes some time for updates to propagate, so we might have to wait a bit, unless you don't mind downloading pug-mode.el straight.
Side-note: you can check it's version by running (find-function 'pug-mode)
and scrolling to the top of the file.
from emacs-pug-mode.
I don't know what it was, but it works now!
Thanks for all the work :D I'm so happy that I can edit templates properly now!
from emacs-pug-mode.
Woohoo! Glad I could help!
from emacs-pug-mode.
Related Issues (20)
- Unable to indent a line when there is a class name in the previous one HOT 2
- Piped text is being highlighted HOT 7
- Problem with interpolated tags and attributes HOT 2
- ".com" is getting highlighted in certain cases HOT 1
- Small elements inside headings are not being indented HOT 5
- "+" Key is working as TAB for indentation but also adds the "+" sign HOT 2
- Consider reworking as a minor mode? HOT 1
- Comments are not highlighted as comments. HOT 6
- Add support for unbuffered comments. HOT 2
- pug-comment-block in visual mode HOT 4
- Error on emacs 25.3 HOT 1
- License issue: must use the same license as slim-mode HOT 1
- how to adujst indentation? HOT 2
- Handle long lines? HOT 1
- Sub-elements of a div that does not have a div tag do not get indented HOT 2
- Support for multi-line attributes
- [low priority] "cannot read property 'length' of undefined"
- "in" keyword is not being recognized HOT 3
- Electric backspace issue when deleting whitespace HOT 4
- Highlight tags when doing interpolation
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 emacs-pug-mode.