Wiki

Ticket #167 (closed defect: duplicate)

Opened 15 years ago

Last modified 15 years ago

LexerError when nesting single quotes in Strings

Reported by: webnov8 Owned by:
Priority: critical Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

The compilation error: "error: Expecting COMMA, but got "'" (SINGLE_QUOTE) instead." is raised when using escaped single-quoted characters.

For example:

print '\''

Current workaround is to use a temp variable containing the single quote, like:

single = c'\''
print '[single]'

Change History

Changed 15 years ago by eric.sellon

This a duplicate of ticket:166

Changed 15 years ago by Chuck

  • status changed from new to closed
  • resolution set to duplicate
Note: See TracTickets for help on using tickets.