aboutsummaryrefslogtreecommitdiffstats
path: root/Scanner.h
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2014-12-18 20:27:25 +0800
committerLefteris Karapetsas <lefteris@refu.co>2014-12-18 22:03:45 +0800
commitf73278c8b2373e4cd27408618ef4a65001ff1437 (patch)
tree36835e60aebf792e94faada2ef891b82f1ffcd10 /Scanner.h
parentd3234c51b9de3548bef5a2afd0fc55851fce43d7 (diff)
downloaddexon-solidity-f73278c8b2373e4cd27408618ef4a65001ff1437.tar.gz
dexon-solidity-f73278c8b2373e4cd27408618ef4a65001ff1437.tar.zst
dexon-solidity-f73278c8b2373e4cd27408618ef4a65001ff1437.zip
Scanner properly scans multiline natspec comments
- Single and multiline natspect comments get the initial whitespace skipped now - Some rules introduced for the multiline comments. If first line is empty then no newline is added to the literal. Same thing with the last line. Finally in all lines initial '*' are skipped
Diffstat (limited to 'Scanner.h')
-rw-r--r--Scanner.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Scanner.h b/Scanner.h
index 7f1b1835..5e70db51 100644
--- a/Scanner.h
+++ b/Scanner.h
@@ -182,6 +182,8 @@ private:
/// Skips all whitespace and @returns true if something was skipped.
bool skipWhitespace();
+ /// Skips all whitespace except Line feeds and returns true if something was skipped
+ bool skipWhitespaceExceptLF();
Token::Value skipSingleLineComment();
Token::Value skipMultiLineComment();