Skip to content
Permalink
Branch: master
Commits on Nov 6, 2019
  1. Highlight %O printing verb

    arp242 committed Nov 6, 2019
    Introduced in Go 1.12
  2. Support Go 1.13 digit separators, binary literals, new octal literals

    arp242 committed Nov 6, 2019
    https://golang.org/doVc/go1.13#language
    
    - New octal literals: 0o666
    - Binary literals: 0b1001
    - Digit separators in literals: 42_42, 0xff_00, etc.
    
    Not added yet are are imaginary literals for non-ints and hex floating
    points. These are not common features and adding them is quite complex
    and (probably) resource intensive.
    
    Also simplify the regexps a bit:
    
    - \c for case insensitive, so we don't need to do [bB] all the time.
    
    - The - before numbers wouldn't get highlighted, and AFAIK never
      did, so remove needless -?< (I'm not sure why this is the case, but -
      is not part of the number but a unary operator, we'd also have to
      highlight the other ones like + and ^)
  3. Fix return value highlighting

    arp242 committed Nov 6, 2019
    Fixes #28
Commits on Nov 5, 2019
  1. Update golang.org/x/tools

    arp242 committed Nov 5, 2019
Commits on Nov 4, 2019
  1. Revert "Don't override existing user mappings"

    arp242 committed Nov 4, 2019
    This reverts commit 6404926.
    
    It's more complex than I thought, and may break things for some users.
    See #26.
You can’t perform that action at this time.