genoma / language-pug

A Pug (was Jade) syntax highlighting for Atom, derived from https://github.com/davidrios/jade-tmbundle
MIT License
26 stars 8 forks source link

Broken syntax color #23

Open juandinella opened 7 years ago

juandinella commented 7 years ago
screen shot 2017-01-20 at 5 34 46 pm
gfpacheco commented 7 years ago

Any idea on what could've happened or when it will be fixed?

gfpacheco commented 7 years ago

I'm back to using the old language-jade since it works better.

in-in commented 7 years ago

Also returned to language-jade but it can't see .pug extension. To resolve it add that to the core section in your config.cson

customFileTypes:
      'source.jade': [
        'pug'
      ]

http://flight-manual.atom.io/using-atom/sections/basic-customization/#customizing-language-recognition

juandinella commented 7 years ago

I 'fixed' it modifying the style.less file in atom.

This is my config:

atom-workspace,
atom-text-editor {
  font-family: "OperatorMono-Light";
  font-size: 14px;
  line-height: 1.7;
}

atom-panel.tool-panel {
  font-size: 0.88em;
}

atom-text-editor {
  font-size: 14px;
}

atom-text-editor.editor{
  .syntax--entity.syntax--other.syntax--attribute-name {
    font-style: italic;
  }
}

.syntax--source.syntax--script.syntax--jade.entity.syntax--name.syntax--tag.syntax--pug{
  color: #e06c75;
}

.syntax--constant.syntax--language.syntax--js,
.syntax--string.syntax--quoted.syntax--single.syntax--js{
  font-style: italic;
}
screen shot 2017-02-10 at 11 53 20 pm