mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Better language detection.
This commit is contained in:
parent
eaf79f924c
commit
18c3da3eb2
@ -118,6 +118,9 @@ void eth::parseTreeLLL(string const& _s, sp::utree& o_out)
|
||||
if (!incomment)
|
||||
s.push_back(i);
|
||||
}
|
||||
qi::phrase_parse(s.cbegin(), s.cend(), element, space, qi::skip_flag::dont_postskip, o_out);
|
||||
auto ret = s.cbegin();
|
||||
qi::phrase_parse(ret, s.cend(), element, space, qi::skip_flag::dont_postskip, o_out);
|
||||
if (ret != s.cend())
|
||||
throw std::exception();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user