Skip to content

Commit ef7a16e

Browse files
committed
preparse for zef upload
1 parent 6078c9c commit ef7a16e

File tree

10 files changed

+171
-172
lines changed

10 files changed

+171
-172
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- windows-latest
1919
raku-version:
2020
- 'latest'
21-
- '2020.05.1'
21+
- '2021.12'
2222
runs-on: ${{ matrix.os }}
2323
steps:
2424
- uses: actions/checkout@v2

META6.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"auth": "cpan:WARRINGD",
2+
"auth": "zef:dwarring",
33
"authors": [
44
"David Warring"
55
],

dist.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
[ReadmeFromPod]
44
; if you want to disable generating README.md from main module's pod, then:
55
disable = true
6+
[UploadToZef]

lib/CSS/Grammar/AST.rakumod

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@ class CSS::Grammar::AST {
1111
constant css-units is export(:CSSUnits) = CSSUnits;
1212
constant css-trait is export(:CSSTrait) = CSSTrait;
1313

14-
BEGIN our %known-type =
15-
%( CSSObject.enums.invert ),
16-
%( CSSValue.enums.invert ),
17-
%( CSSSelector.enums.invert ),
14+
BEGIN our %known-type =
15+
%( CSSObject.enums.invert ),
16+
%( CSSValue.enums.invert ),
17+
%( CSSSelector.enums.invert ),
1818
;
1919

20-
2120
#| utility token builder method, e.g.: $.token(42, :type<cm>) --> :cm(42)
2221
method token(Mu $ast, Str :$type is copy) {
2322

@@ -58,7 +57,7 @@ BEGIN our %known-type =
5857
$value .= ast
5958
// next;
6059

61-
if substr($key, 0, 5) eq 'expr-' {
60+
if $key.starts-with('expr-') {
6261
$key.substr-rw(4,1) = ':';
6362
}
6463
elsif $value.isa(Pair) {
@@ -100,7 +99,7 @@ BEGIN our %known-type =
10099
$value .= ast
101100
// next;
102101

103-
if substr($key, 0, 5) eq 'expr-' {
102+
if $key.starts-with('expr-') {
104103
$key.substr-rw(4,1) = ':';
105104
}
106105
elsif $value.isa(Pair) {

lib/CSS/Grammar/Actions.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class CSS::Grammar::Actions {
124124
}
125125

126126
method name($/) {
127-
my Str $name = [~] @<nmchar.ast.Slip;
127+
my Str $name = [~] @<nmchar.ast;
128128
make $.build.token( $name, :type(CSSValue::NameComponent));
129129
}
130130
method num($/) {

lib/CSS/Grammar/CSS1.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use v6;
33
use CSS::Grammar;
44
# specification: http://www.w3.org/TR/2008/REC-CSS1-20080411/
55

6-
grammar CSS::Grammar::CSS1 #:api<css1-20080411>
6+
grammar CSS::Grammar::CSS1
77
is CSS::Grammar {
88

99
rule TOP {^ <stylesheet> $}

lib/CSS/Grammar/CSS21.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use v6;
33
use CSS::Grammar;
44
# specification: http://www.w3.org/TR/2011/REC-CSS2-20110607/
55

6-
grammar CSS::Grammar::CSS21 #:api<css2-20110607>
6+
grammar CSS::Grammar::CSS21
77
is CSS::Grammar {
88

99
rule TOP {^ <stylesheet> $}

lib/CSS/Grammar/CSS3.rakumod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ use CSS::Grammar::CSS21;
44

55
# specification: http://www.w3.org/TR/2014/CR-css-syntax-3-20140220/
66

7-
grammar CSS::Grammar::CSS3 #:api<css-syntax-3-20140220>
7+
grammar CSS::Grammar::CSS3
88
is CSS::Grammar::CSS21 {
99

1010
rule TOP {^ <stylesheet> $}

lib/CSS/Grammar/Defs.rakumod

Lines changed: 70 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,80 @@
11
unit module CSS::Grammar::Defs;
22

3-
# These tables map AST types to standard W3C component definitions.
3+
# These tables map AST types to standard W3C component definitions.
44

5-
# CSS object definitions based on http://dev.w3.org/csswg/cssom/
6-
# for example 6.4.1 CSSRuleList maps to CSSObject::RuleList
7-
our Str enum CSSObject is export(:CSSObject) «
8-
:AtRule<at-rule>
9-
:Priority<prio>
10-
:RuleSet<ruleset>
11-
:RuleList<rule-list>
12-
:StyleDeclaration<style>
13-
:StyleRule<style-rule>
14-
:StyleSheet<stylesheet>
15-
»;
5+
# CSS object definitions based on http://dev.w3.org/csswg/cssom/
6+
# for example 6.4.1 CSSRuleList maps to CSSObject::RuleList
7+
our Str enum CSSObject is export(:CSSObject) «
8+
:AtRule<at-rule>
9+
:Priority<prio>
10+
:RuleSet<ruleset>
11+
:RuleList<rule-list>
12+
:StyleDeclaration<style>
13+
:StyleRule<style-rule>
14+
:StyleSheet<stylesheet>
15+
»;
1616

17-
# CSS value types based on http://dev.w3.org/csswg/cssom-values/
18-
# for example 3.3 CSSStyleDeclarationValue maps to CSSValue::StyleDeclaration
19-
our Str enum CSSValue is export(:CSSValue) «
20-
:ColorComponent<color>
21-
:Component<value>
22-
:IdentifierComponent<ident>
23-
:KeywordComponent<keyw>
24-
:LengthComponent<length>
25-
:Map<map>
26-
:PercentageComponent<percent>
27-
:Property<property>
28-
:PropertyList<declarations>
29-
:StringComponent<string>
30-
:URLComponent<url>
17+
# CSS value types based on http://dev.w3.org/csswg/cssom-values/
18+
# for example 3.3 CSSStyleDeclarationValue maps to CSSValue::StyleDeclaration
19+
our Str enum CSSValue is export(:CSSValue) «
20+
:ColorComponent<color>
21+
:Component<value>
22+
:IdentifierComponent<ident>
23+
:KeywordComponent<keyw>
24+
:LengthComponent<length>
25+
:Map<map>
26+
:PercentageComponent<percent>
27+
:Property<property>
28+
:PropertyList<declarations>
29+
:StringComponent<string>
30+
:URLComponent<url>
3131

32-
:NameComponent<name>
33-
:NumberComponent<num>
34-
:IntegerComponent<int>
35-
:AngleComponent<angle>
36-
:FrequencyComponent<freq>
37-
:FunctionComponent<func>
38-
:ResolutionComponent<resolution>
39-
:TimeComponent<time>
40-
:QnameComponent<qname>
41-
:OtherUnitComponent<units>
42-
:NamespacePrefixComponent<ns-prefix>
43-
:ElementNameComponent<element-name>
44-
:OperatorComponent<op>
45-
:ExpressionComponent<expr>
46-
:ArgumentListComponent<args>
47-
:AtKeywordComponent<at-keyw>
48-
:UnicodeRangeComponent<unicode-range>
49-
»;
32+
:NameComponent<name>
33+
:NumberComponent<num>
34+
:IntegerComponent<int>
35+
:AngleComponent<angle>
36+
:FrequencyComponent<freq>
37+
:FunctionComponent<func>
38+
:ResolutionComponent<resolution>
39+
:TimeComponent<time>
40+
:QnameComponent<qname>
41+
:OtherUnitComponent<units>
42+
:NamespacePrefixComponent<ns-prefix>
43+
:ElementNameComponent<element-name>
44+
:OperatorComponent<op>
45+
:ExpressionComponent<expr>
46+
:ArgumentListComponent<args>
47+
:AtKeywordComponent<at-keyw>
48+
:UnicodeRangeComponent<unicode-range>
49+
»;
5050

51-
our Str enum CSSSelector is export(:CSSSelector) «
52-
:AttributeSelector<attrib>
53-
:Class<class>
54-
:Id<id>
55-
:MediaList<media-list>
56-
:MediaQuery<media-query>
57-
:PseudoClass<pseudo-class>
58-
:PseudoElement<pseudo-elem>
59-
:PseudoFunction<pseudo-func>
60-
:SelectorList<selectors>
61-
:Selector<selector>
62-
:SelectorComponent<simple-selector>
63-
»;
51+
our Str enum CSSSelector is export(:CSSSelector) «
52+
:AttributeSelector<attrib>
53+
:Class<class>
54+
:Id<id>
55+
:MediaList<media-list>
56+
:MediaQuery<media-query>
57+
:PseudoClass<pseudo-class>
58+
:PseudoElement<pseudo-elem>
59+
:PseudoFunction<pseudo-func>
60+
:SelectorList<selectors>
61+
:Selector<selector>
62+
:SelectorComponent<simple-selector>
63+
»;
6464

65-
# an enumerated list of all unit types for validation purposes.
66-
# Adapted from the out-of-date http://www.w3.org/TR/DOM-Level-2-Style/css.html
65+
# an enumerated list of all unit types for validation purposes.
66+
# Adapted from the out-of-date http://www.w3.org/TR/DOM-Level-2-Style/css.html
6767

68-
our Str enum CSSUnits is export(:CSSUnits) «
69-
:ems<length> :exs<length> :px<length> :cm<length> :mm<length> :in<length> :pt<length> :pc<length>
70-
:em<length> :ex<length> :rem<length> :ch<length> :vw<length> :vh<length> :vmin<length> :vmax<length>
71-
:dpi<resolution> :dpcm<resolution> :dppx<resolution>
72-
:deg<angle> :rad<angle> :grad<angle> :turn<angle>
73-
:ms<time> :s<time>
74-
:hz<freq> :khz<freq>
75-
:rgb<color> :rgba<color> :hsl<color> :hsla<color>
76-
»;
68+
our Str enum CSSUnits is export(:CSSUnits) «
69+
:ems<length> :exs<length> :px<length> :cm<length> :mm<length> :in<length> :pt<length> :pc<length>
70+
:em<length> :ex<length> :rem<length> :ch<length> :vw<length> :vh<length> :vmin<length> :vmax<length>
71+
:dpi<resolution> :dpcm<resolution> :dppx<resolution>
72+
:deg<angle> :rad<angle> :grad<angle> :turn<angle>
73+
:ms<time> :s<time>
74+
:hz<freq> :khz<freq>
75+
:rgb<color> :rgba<color> :hsl<color> :hsla<color>
76+
»;
7777

78-
# from http://dev.w3.org/csswg/cssom-view/
79-
our Str enum CSSTrait is export(:CSSTrait) «:Box<box>»;
78+
# from http://dev.w3.org/csswg/cssom-view/
79+
our Str enum CSSTrait is export(:CSSTrait) «:Box<box>»;
8080

0 commit comments

Comments
 (0)