Skip to content

Commit

Permalink
Improves reformEscapes #18
Browse files Browse the repository at this point in the history
  • Loading branch information
Reza authored and Akilan Elango committed Oct 16, 2019
1 parent affa3d9 commit 6abaa43
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pkg/ligo/ligo.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,27 @@ var escapeSequences = map[string]int{
"\\\\": 0x5C,
"\\a": 0x07,
"\\b": 0x08,
"\\e": 0x1B,
"\\f": 0x0C,
"\\n": 0x0A,
"\\r": 0x0D,
"\\t": 0x09,
"\\v": 0x0B,
"\\'": 0x27,
"\"": 0x22,
"\\ ": 0x20,
"\\!": 0x21,
"\\#": 0x23,
"\\$": 0x24,
"\\%": 0x25,
"\\&": 0x26,
"\\*": 0x2A,
"\\<": 0x3C,
"\\=": 0x3D,
"\\>": 0x3E,
"\\?": 0x3F,
"\\|": 0x7C,
"\\~": 0x7E,
}

// TODO : add escape sequence handling for hex and octal sequences...
Expand Down

0 comments on commit 6abaa43

Please sign in to comment.