Hi guys,
first, here comes my little excerpt of code:
Input hidden(): 'input' (WS '-s' WS VARIABLE)? WS value+=STRING+
This will support things like
input "String0" "String1" "String2"
input -s $var "String0" "String1" "String2"
In my given language, we support things like:
input "String0" \
"String1" \
"String2"
input -s $var "String0" \
"String1" \
"String2"
to make the code better readable. The backslash sign is the marker, to tell my compiler, to continue reading in the next line (physically it escapes the <newline> character for my private parser).
How can I support this to be recognized by my Xtext grammar? I tried to define a Terminal Rule and try to hide that within the rule like this:
terminal BS : '\\';
Input hidden(BS): 'input' (WS '-s' WS VARIABLE)? WS value+=STRING+
but it does not work....
Does anybody have an Idea?