Commit 433bcd4b authored by Brett Stottlemyer's avatar Brett Stottlemyer
Browse files

REPC improve comment handling


Allow comments at beginning of file as well as multiple
comment lines.

Change-Id: I821b26068da5133213c357840df536c735a28d2b
Reviewed-by: default avatarContinuous Integration (KDAB) <build@kdab.com>
Reviewed-by: default avatarKevin Funk <kevin.funk@kdab.com>
Reviewed-by: default avatarBogDan Vatra <bogdan@kdab.com>
Showing with 6 additions and 2 deletions
......@@ -558,11 +558,15 @@ bool RepParser::consumeRule(int ruleno)
switch (ruleno) {
./
TopLevel: Types | Newlines Types;
TopLevel: Types | Newlines Types | FileComments Types | Newlines FileComments Types;
FileComments: Comments;
Types: Type | Type Types;
Newlines: newline | newline Newlines;
Comments: comment | comment Newlines;
Comments: Comment | Comment Comments;
Comment: comment | comment Newlines;
Type: Include | Include Newlines;
Type: Pod | Pod Newlines;
Type: Class;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment