aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/parsing/Scanner.h
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-09-14 00:38:41 +0800
committerGitHub <noreply@github.com>2018-09-14 00:38:41 +0800
commit59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb (patch)
tree76b1734d7360d73825f9737a1c7b530468f4bddd /libsolidity/parsing/Scanner.h
parente67f0147998a9e3835ed3ce8bf6a0a0c634216c5 (diff)
parent76812ed5675eb9d9bcd8f939adfec3ba4f02e970 (diff)
downloaddexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar.gz
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar.bz2
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar.lz
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar.xz
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.tar.zst
dexon-solidity-59dbf8f1085b8b92e8b7eb0ce380cbeb642e97eb.zip
Merge pull request #4957 from ethereum/develop_v0425
Merge to release for 0.4.25
Diffstat (limited to 'libsolidity/parsing/Scanner.h')
-rw-r--r--libsolidity/parsing/Scanner.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/parsing/Scanner.h b/libsolidity/parsing/Scanner.h
index 0adaa6fd..602532e4 100644
--- a/libsolidity/parsing/Scanner.h
+++ b/libsolidity/parsing/Scanner.h
@@ -197,8 +197,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();
+ /// Skips all whitespace that are neither '\r' nor '\n'.
+ void skipWhitespaceExceptUnicodeLinebreak();
Token::Value skipSingleLineComment();
Token::Value skipMultiLineComment();
@@ -218,6 +218,9 @@ private:
/// is scanned.
bool scanEscape();
+ /// @returns true iff we are currently positioned at a unicode line break.
+ bool isUnicodeLinebreak();
+
/// Return the current source position.
int sourcePos() const { return m_source.position(); }
bool isSourcePastEndOfInput() const { return m_source.isPastEndOfInput(); }