Skip to content

Allow @supports and @viewport (without checking) #174

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 35 additions & 32 deletions org/w3c/css/parser/analyzer/CssParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -2412,7 +2412,10 @@ final public void ignoreStatement() throws ParseException {
addAtRuleError();
}
} else {
addAtRuleError();
if (!n.toString().startsWith("@supports")
&& !n.toString().startsWith("@viewport")) {
addAtRuleError();
}
}
skipStatement();
}
Expand Down Expand Up @@ -5743,37 +5746,6 @@ private boolean jj_2_5(int xla)
finally { jj_save(4, xla); }
}

private boolean jj_3R_175()
{
if (jj_scan_token(STRING)) return true;
return false;
}

private boolean jj_3R_154()
{
if (jj_scan_token(PLUS)) return true;
return false;
}

private boolean jj_3R_174()
{
if (jj_3R_183()) return true;
return false;
}

private boolean jj_3_5()
{
if (jj_3R_127()) return true;
if (jj_scan_token(LPARAN)) return true;
return false;
}

private boolean jj_3R_173()
{
if (jj_3R_152()) return true;
return false;
}

private boolean jj_3R_172()
{
if (jj_3R_151()) return true;
Expand Down Expand Up @@ -6387,6 +6359,37 @@ private boolean jj_3R_176()
return false;
}

private boolean jj_3R_175()
{
if (jj_scan_token(STRING)) return true;
return false;
}

private boolean jj_3R_154()
{
if (jj_scan_token(PLUS)) return true;
return false;
}

private boolean jj_3R_174()
{
if (jj_3R_183()) return true;
return false;
}

private boolean jj_3_5()
{
if (jj_3R_127()) return true;
if (jj_scan_token(LPARAN)) return true;
return false;
}

private boolean jj_3R_173()
{
if (jj_3R_152()) return true;
return false;
}

/** Generated Token Manager. */
public CssParserTokenManager token_source;
SimpleCharStream jj_input_stream;
Expand Down
5 changes: 4 additions & 1 deletion org/w3c/css/parser/analyzer/CssParser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -1553,7 +1553,10 @@ void atRuleDeclaration() :
addAtRuleError();
}
} else {
addAtRuleError();
if (!n.toString().startsWith("@supports")
&& !n.toString().startsWith("@viewport")) {
addAtRuleError();
}
}
skipStatement();
}
Expand Down