Menu

#1268 [PATCH] Improve the styling of numbers in Nim

Committed
closed
5
2019-04-16
2019-03-08
Jad Altahan
No

This is a rather small improvement patch within the SCE_NIM_NUMBER style to conform more with the Nim syntax. It does the following:

  • Breaks the style if the digit separator is two underscores instead of one, e.g. 1__1
  • Breaks the style if the number ends with an underscore, e.g. 1_

The patch also fixes a harmless, but annoying bug with decimal points in ranges where the fourth decimal point gets styled as SCE_NIM_NUMBER instead of SCE_NIM_OPERATOR when followed by a sequence of three decimal points. See:
Imgur

Test cases for x.nim are included in the patch.

1 Attachments

Discussion

  • Neil Hodgson

    Neil Hodgson - 2019-03-08

    Committed as [3710c1].

     

    Related

    Commit: [3710c1]

  • Neil Hodgson

    Neil Hodgson - 2019-04-16
    • status: open --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.