kylegoetz / tree-sitter-unison

Tree Sitter grammar for Unison programming language
MIT License
7 stars 8 forks source link

Hex-formatted numbers not yet supported? #52

Closed fmguerreiro closed 10 months ago

fmguerreiro commented 1 year ago

On version 1.0.2, getting some error nodes when parsing this bit of code (taken from https://exercism.org/tracks/unison/exercises/zebra-puzzle/solutions/runarorama):

zebraPuzzle.eachHouse : '{Each} Nat
zebraPuzzle.eachHouse = do each [0x10,0x08,0x04,0x02,0x01]

output:

term_declaration:
    type_signature:
      path:
      wordy_id:
      type_signature_colon:
      term_type:
        delayed:
          effect:
            wordy_id:
          wordy_id:
    term_definition:
      path:
      wordy_id:
      kw_equals:
      delay_block:
        do:
        function_application:
          wordy_id:
          literal_list:
            ERROR:
              ERROR:
              ERROR:
              ERROR:
              ERROR:
              ERROR:
kylegoetz commented 10 months ago

merged in

Thanks for the PR!