atom / language-todo

TODO highlighting package for Atom
Other
80 stars 66 forks source link

Highlighting 'NOTE' with no indentation in <script> of html #51

Open liuderchi opened 8 years ago

liuderchi commented 8 years ago

highlight of // NOTE is not working when no indentation in html file

env: Ubuntu, Atom v1.10.2, atom UI: Atom Dark, atom Theme: Atom Dark

Demo: note_highlight

sample.html

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <title></title>
    <script type="text/javascript">
    var foo = 'bar';
// NOTE
  // NOTE
    // NOTE
      // NOTE
        // NOTE
    </script>
  </head>
</html>

<script type="text/javascript">
var foo = 'bar';
// NOTE
  // NOTE
    // NOTE
</script>