nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src: handle new bitwise operators
[nit.git]
/
src
/
literal.nit
diff --git
a/src/literal.nit
b/src/literal.nit
index
5af1808
..
d6cb84e
100644
(file)
--- a/
src/literal.nit
+++ b/
src/literal.nit
@@
-20,6
+20,7
@@
module literal
import phase
redef class ToolContext
import phase
redef class ToolContext
+ # Parses literal values in the whole AST and produces errors if needed
var literal_phase: Phase = new LiteralPhase(self, null)
end
var literal_phase: Phase = new LiteralPhase(self, null)
end
@@
-122,7
+123,7
@@
redef class ACharExpr
do
var txt = self.n_char.text.unescape_nit
if txt.length != 3 then
do
var txt = self.n_char.text.unescape_nit
if txt.length != 3 then
- v.toolcontext.error(self.hot_location, "Invalid character literal {txt}")
+ v.toolcontext.error(self.hot_location, "Syntax Error: invalid character literal `{txt}`.")
return
end
self.value = txt.chars[1]
return
end
self.value = txt.chars[1]