mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Scanner: Generate error on inbalanced RLO/LRO/PDF override markers.
This commit is contained in:
committed by
chriseth
parent
67b7267735
commit
381c63ec99
@@ -6,7 +6,10 @@
|
||||
REPO_ROOT="$(dirname "$0")"/..
|
||||
cd $REPO_ROOT
|
||||
|
||||
WHITESPACE=$(git grep -n -I -E "^.*[[:space:]]+$" | grep -v "test/libsolidity/ASTJSON\|test/libsolidity/ASTRecoveryTests\|test/compilationTests/zeppelin/LICENSE")
|
||||
WHITESPACE=$(git grep -n -I -E "^.*[[:space:]]+$" |
|
||||
grep -v "test/libsolidity/ASTJSON\|test/libsolidity/ASTRecoveryTests\|test/compilationTests/zeppelin/LICENSE" |
|
||||
grep -v -E "test/libsolidity/syntaxTests/comments/unicode_direction_override_1.sol"
|
||||
)
|
||||
|
||||
if [[ "$WHITESPACE" != "" ]]
|
||||
then
|
||||
|
||||
@@ -116,7 +116,10 @@ done < <(
|
||||
grep -riL -E \
|
||||
"^\/\/ (Syntax|Type|Declaration)Error|^\/\/ ParserError (2837|3716|3997|5333|6275|6281|6933|7319)|^==== Source:" \
|
||||
"${ROOT_DIR}/test/libsolidity/syntaxTests" \
|
||||
"${ROOT_DIR}/test/libsolidity/semanticTests" \
|
||||
"${ROOT_DIR}/test/libsolidity/semanticTests" |
|
||||
grep -v -E 'comments/.*_direction_override.*.sol' |
|
||||
grep -v -E 'literals/.*_direction_override.*.sol'
|
||||
# Skipping the unicode tests as I couldn't adapt the lexical grammar to recursively counting RLO/LRO/PDF's.
|
||||
)
|
||||
|
||||
YUL_FILES=()
|
||||
|
||||
Reference in New Issue
Block a user