PyneComp Updates (v6.0.20)

Based on user feedback and edge cases we’ve encountered, we’ve rolled out several fixes and improvements to Pine Script compatibility:

New Features:

  • โœจ Underscore (_) discard variable fully supported (both simple and tuple declarations)

Bug Fixes:

  • ๐Ÿ”ง Integer literals with leading zeros now accepted (00, 01, 010)
  • ๐Ÿ”ง Zero literal properly recognized
  • ๐Ÿ”ง Exponential notation for decimal floats (e.g., 1.5e10)
  • ๐Ÿ”ง Type form modifiers now require whitespace to prevent collisions
  • ๐Ÿ”ง method keyword now properly distinguished from parameter names
  • ๐Ÿ”ง Reference array types fully supported in template parser
  • ๐Ÿ”ง Added missing reference array type constructors
  • ๐Ÿ”ง Better error messages for nested array types
  • ๐Ÿ”ง UDT field assignments with array/map/matrix constructors now work correctly
  • ๐Ÿ”ง Switch expressions now work with UDT field assignments (e.g., trade.price := switch...)

Pine Script v6 compatibility keeps getting better! ๐Ÿ’ช


Thank you to everyone providing feedback and reporting issues! Your input helps us improve PyneSys and make it more robust. If you encounter any bugs or have suggestions, please don’t hesitate to reach out - we’re here to help and actively working on making the compiler better. ๐Ÿ™