Revert "Add class name literals."

This commit is contained in:
Knut Sveidqvist
2021-02-18 20:26:58 +01:00
committed by GitHub
parent 4a594ed115
commit 9677aaa715
2 changed files with 1 additions and 60 deletions

View File

@@ -7,7 +7,6 @@
/* lexical grammar */
%lex
%x string
%x bqstring
%x generic
%x struct
%x href
@@ -50,10 +49,6 @@
<string>["] this.popState();
<string>[^"]* return "STR";
[`] this.begin("bqstring");
<bqstring>[`] this.popState();
<bqstring>[^`]+ return "BQUOTE_STR";
/*
---interactivity command---
'href' adds a link to the specified node. 'href' can only be specified when the
@@ -219,15 +214,10 @@ statements
;
className
:
| alphaNumToken { $$=$1; }
| classLiteralName { $$=$1; }
: alphaNumToken { $$=$1; }
| alphaNumToken className { $$=$1+$2; }
| classLiteralName className { $$=$1+$2; }
| alphaNumToken GENERICTYPE className { $$=$1+'~'+$2+$3; }
| classLiteralName GENERICTYPE className { $$=$1+'~'+$2+$3; }
| alphaNumToken GENERICTYPE { $$=$1+'~'+$2; }
| classLiteralName GENERICTYPE { $$=$1+'~'+$2; }
;
statement
@@ -319,6 +309,4 @@ textNoTagsToken: alphaNumToken | SPACE | MINUS | keywords ;
alphaNumToken : UNICODE_TEXT | NUM | ALPHA;
classLiteralName : BQUOTE_STR;
%%