diff options
author | piegames <git@piegames.de> | 2024-07-13 07:55:17 +0200 |
---|---|---|
committer | piegames <git@piegames.de> | 2024-08-17 20:31:57 +0200 |
commit | 278fddc317cf0cf4d3602d0ec0f24d1dd281fadb (patch) | |
tree | 002c63288018f70755e2a60f9af554fe5cbca85b /src/libexpr/parser | |
parent | 49d61b2e4bf338042364c85d3c2ead0b33963e65 (diff) |
libexpr: Deprecate URL literals
Closes #437.
Change-Id: I9f67fc965bb4a7e7fd849e5067ac1cb3bab064cd
Diffstat (limited to 'src/libexpr/parser')
-rw-r--r-- | src/libexpr/parser/parser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libexpr/parser/parser.cc b/src/libexpr/parser/parser.cc index e45776ca6..d57c33a30 100644 --- a/src/libexpr/parser/parser.cc +++ b/src/libexpr/parser/parser.cc @@ -656,10 +656,10 @@ template<> struct BuildAST<grammar::expr::path> : p::maybe_nothing {}; template<> struct BuildAST<grammar::expr::uri> { static void apply(const auto & in, ExprState & s, State & ps) { - bool noURLLiterals = ps.featureSettings.isEnabled(Xp::NoUrlLiterals); - if (noURLLiterals) + bool URLLiterals = ps.featureSettings.isEnabled(Dep::UrlLiterals); + if (!URLLiterals) throw ParseError({ - .msg = HintFmt("URL literals are disabled"), + .msg = HintFmt("URL literals are deprecated, allow using them with --extra-deprecated-features=url-literals"), .pos = ps.positions[ps.at(in)] }); s.pushExpr<ExprString>(ps.at(in), in.string()); |