klorenz / atom-xikij

xikij frontend for atom
MIT License
5 stars 0 forks source link

Use hex instead of disallowed octal escape codes #6

Closed ssorallen closed 9 years ago

ssorallen commented 9 years ago

The ANSI grammar generator currently uses octal escape codes to match escape characters, but they are disallowed in CoffeeScript strict mode and in ES5 strict mode. Use hex escape codes instead, which yield the same result and are supported.

Running coffee lib/grammar-ansi-coloring.coffee returns the following error currently:

/atom-xikij/lib/grammar-ansi-coloring.coffee:130:12: error: octal escape
sequences are not allowed \03
    b: /(\033\[)(?=(\d+;)*\d+m)/
         ^^^