Alhadis / language-apl

APL language support for Atom.
https://atom.io/packages/language-apl
ISC License
7 stars 3 forks source link

Improve syntax colouring for numeric literals #2

Closed jayfoad closed 6 years ago

jayfoad commented 6 years ago

¯2.2e¯20j¯3.3e¯30 is a single numeric literal in APL, but Lightshow shows me that it is coloured in a mixture of red and blue.

There are railway diagrams for the syntax in section 6.1.2 of the ISO Extended APL standard, but it may be simpler to match a superset, e.g. (in egrep syntax): ([¯0-9]|\.[0-9])[¯0-9A-Za-z]*