[eclipse/golo-lang] a6af3e: Fix special characters escaping in String and char

0 views
Skip to first unread message

GitHub

unread,
Jul 6, 2015, 3:07:57 AM7/6/15
to golo...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/eclipse/golo-lang
Commit: a6af3e842eb2403218bacb8d2b8e1f1576859d6f
https://github.com/eclipse/golo-lang/commit/a6af3e842eb2403218bacb8d2b8e1f1576859d6f
Author: Sylvain <sylvain....@gmail.com>
Date: 2015-07-05 (Sun, 05 Jul 2015)

Changed paths:
M src/main/java/fr/insalyon/citi/golo/compiler/utils/StringUnescaping.java
M src/main/jjtree/Golo.jjt
M src/test/java/fr/insalyon/citi/golo/compiler/CompileAndRunTest.java
M src/test/resources/for-execution/returns.golo

Log Message:
-----------
Fix special characters escaping in String and char

- fixes this:

```golo
print("<\\t>")
```
will print
`̀``
<\ >
```
but the expected value is
`̀``
<\t>
```

- add the ability to the parser to deal with sepcial characters using single quote notation

Signed-off-by: Sylvain <sylvain....@gmail.com>


Commit: 65a8fe2b62bfedec476a8df85cfe5c070f32bcb8
https://github.com/eclipse/golo-lang/commit/65a8fe2b62bfedec476a8df85cfe5c070f32bcb8
Author: Julien Ponge <jpo...@users.noreply.github.com>
Date: 2015-07-06 (Mon, 06 Jul 2015)

Changed paths:
M src/main/java/fr/insalyon/citi/golo/compiler/utils/StringUnescaping.java
M src/main/jjtree/Golo.jjt
M src/test/java/fr/insalyon/citi/golo/compiler/CompileAndRunTest.java
M src/test/resources/for-execution/returns.golo

Log Message:
-----------
Merge pull request #290 from Artpej/fix/chars-strings

Fix special characters escaping in String and char


Compare: https://github.com/eclipse/golo-lang/compare/fc4e47bf2d1c...65a8fe2b62bf
Reply all
Reply to author
Forward
0 new messages