Menu

#1261 [PATCH] Enhance the styling of backticks in Nim

Committed
closed
5
2019-03-07
2019-01-28
Jad Altahan
No

Enhancement patch for backticks. Its does two things:

  1. Applies SCE_NIM_STRINGEOL style if the backtick is not closed.
  2. Styles backticks as SCE_NIM_FUNCNAME if funcNameExists == true, otherwise use the dedicated SCE_NIM_BACKTICKS style. Example:
    img
1 Attachments

Discussion

  • Jad Altahan

    Jad Altahan - 2019-01-29

    Text version of the image above:

    # Style ticks as SCE_NIM_FUNCNAME if the indent before it is detected
    # as a func name via IsFuncName()
    proc `$` (x: myDataType): string = ...
    
    # If IsFuncName() doesn't apply, style ticks as SCE_NIM_BACKTICKS
    if `==`( `+`(3,4),7): echo "True"
    
     
  • Neil Hodgson

    Neil Hodgson - 2019-01-30
     
  • Neil Hodgson

    Neil Hodgson - 2019-01-30

    Committed as [a5c658].

     

    Related

    Commit: [a5c658]

  • Neil Hodgson

    Neil Hodgson - 2019-03-07
    • 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.