Giter VIP home page Giter VIP logo

Comments (10)

hlissner avatar hlissner commented on June 2, 2024

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.

vladh avatar vladh commented on June 2, 2024

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.

hlissner avatar hlissner commented on June 2, 2024

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.

hlissner avatar hlissner commented on June 2, 2024

I've pushed a [hopeful] fix for your issue. Let me know if it persists!

from emacs-pug-mode.

vladh avatar vladh commented on June 2, 2024

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.

hlissner avatar hlissner commented on June 2, 2024

Oh wow. And this is with the update?

from emacs-pug-mode.

vladh avatar vladh commented on June 2, 2024

I mean, I think so, I nuked ~/.emacs.d/elpa

from emacs-pug-mode.

hlissner avatar hlissner commented on June 2, 2024

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.

vladh avatar vladh commented on June 2, 2024

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.

hlissner avatar hlissner commented on June 2, 2024

Woohoo! Glad I could help!

from emacs-pug-mode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.