CMake: Handle '-' better in pro2cmake
Do not fail on tests/benchmarks/benchmark.pro. Change-Id: I0ffdf9d38ea6fa73856f33d44c5a428c9cab9107 Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
parent
f3cf1a6856
commit
96ddd79b03
@ -300,7 +300,7 @@ class QmakeParser:
|
|||||||
LC = pp.Suppress(pp.Literal('\\') + pp.LineEnd())
|
LC = pp.Suppress(pp.Literal('\\') + pp.LineEnd())
|
||||||
EOL = pp.Suppress(pp.Optional(pp.pythonStyleComment()) + pp.LineEnd())
|
EOL = pp.Suppress(pp.Optional(pp.pythonStyleComment()) + pp.LineEnd())
|
||||||
|
|
||||||
Identifier = pp.Word(pp.alphas + '_', bodyChars=pp.alphanums+'_./')
|
Identifier = pp.Word(pp.alphas + '_', bodyChars=pp.alphanums+'_-./')
|
||||||
Substitution = pp.Combine(pp.Literal('$')
|
Substitution = pp.Combine(pp.Literal('$')
|
||||||
+ (((pp.Literal('$') + Identifier + pp.Optional(pp.nestedExpr()))
|
+ (((pp.Literal('$') + Identifier + pp.Optional(pp.nestedExpr()))
|
||||||
| (pp.Literal('(') + Identifier + pp.Literal(')'))
|
| (pp.Literal('(') + Identifier + pp.Literal(')'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user