Patch from James Morrison
* lex.l: Add \t as a whitespace character. * treelang.texi (Lexical Syntax): Document a tab as whitespace. From-SVN: r74311
This commit is contained in:
parent
d15ae5d695
commit
ed31a8173b
@ -1,5 +1,8 @@
|
||||
2003-12-04 James A. Morrison <ja2morri@uwaterloo.ca>
|
||||
|
||||
* lex.l: Add \t as a whitespace character.
|
||||
* treelang.texi (Lexical Syntax): Document a tab as whitespace.
|
||||
|
||||
* treelang.texi (What is GNU Treelang?): Fix a typo.
|
||||
(Lexical Syntax): Create an itemize list of keywords. Add commas to
|
||||
paragraph defining names.
|
||||
|
@ -78,7 +78,7 @@ static void dump_lex_value (int lexret);
|
||||
((struct prod_token_parm_item *)yylval)->tp.tok.charno = next_tree_charno;
|
||||
}
|
||||
|
||||
[ \n]+ {
|
||||
[ \n\t]+ {
|
||||
update_lineno_charno ();
|
||||
NOT_RETURN (WHITESPACE);
|
||||
}
|
||||
|
@ -399,8 +399,8 @@ Treelang programs consist of whitespace, comments, keywords and names.
|
||||
@itemize @bullet
|
||||
|
||||
@item
|
||||
Whitespace consists of the space character and the end of line
|
||||
character. Tabs are not allowed. Line terminations are as defined by the
|
||||
Whitespace consists of the space character, a tab, and the end of line
|
||||
character. Line terminations are as defined by the
|
||||
standard C library. Whitespace is ignored except within comments,
|
||||
and where it separates parts of the program. In the example below, A and
|
||||
B are two separate names separated by whitespace.
|
||||
|
Loading…
Reference in New Issue
Block a user