File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ class Attribute<T> {
39
39
Attribute .height.key: Attribute .height,
40
40
Attribute .style.key: Attribute .style,
41
41
Attribute .token.key: Attribute .token,
42
+ Attribute .script.key: Attribute .script,
42
43
});
43
44
44
45
static final BoldAttribute bold = BoldAttribute ();
@@ -85,6 +86,8 @@ class Attribute<T> {
85
86
86
87
static final TokenAttribute token = TokenAttribute ('' );
87
88
89
+ static final ScriptAttribute script = ScriptAttribute ('' );
90
+
88
91
static final Set <String > inlineKeys = {
89
92
Attribute .bold.key,
90
93
Attribute .italic.key,
@@ -312,3 +315,8 @@ class StyleAttribute extends Attribute<String?> {
312
315
class TokenAttribute extends Attribute <String > {
313
316
TokenAttribute (String val) : super ('token' , AttributeScope .IGNORE , val);
314
317
}
318
+
319
+ // `script` is supposed to be inline attribute but it is not supported yet
320
+ class ScriptAttribute extends Attribute <String > {
321
+ ScriptAttribute (String val) : super ('script' , AttributeScope .IGNORE , val);
322
+ }
You can’t perform that action at this time.
0 commit comments