Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mincss
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
mincss
Commits
b8a0f5c9
Commit
b8a0f5c9
authored
Aug 11, 2015
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup + minor bugfix
parent
e33743d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
shorthand.ml
shorthand.ml
+1
-2
No files found.
shorthand.ml
View file @
b8a0f5c9
...
@@ -117,7 +117,6 @@ let rec unfold = function
...
@@ -117,7 +117,6 @@ let rec unfold = function
|
[]
->
[]
|
[]
->
[]
|
[
color
]
when
Color_names
.
is_color
color
->
[
make
"color"
color
]
|
[
color
]
when
Color_names
.
is_color
color
->
[
make
"color"
color
]
|
tl
->
raise
(
Box_error
(
Expr
(
Concat
tl
)
,
"invalid background shortcut"
))
|
tl
->
raise
(
Box_error
(
Expr
(
Concat
tl
)
,
"invalid background shortcut"
))
(*| _ -> failwith "invalid background shortcut"*)
in
in
let
id_repeat
=
function
let
id_repeat
=
function
|
repeat
::
(
Uri
_
as
image
)
::
tl
->
|
repeat
::
(
Uri
_
as
image
)
::
tl
->
...
@@ -279,7 +278,7 @@ let rec make_shorthands decls =
...
@@ -279,7 +278,7 @@ let rec make_shorthands decls =
let
replace
(
base
,
important
)
group
tl
=
let
replace
(
base
,
important
)
group
tl
=
match
fold
(
List
.
rev
group
)
base
with
match
fold
(
List
.
rev
group
)
base
with
|
Some
short_value
->
(
base
,
short_value
,
important
)
::
tl
|
Some
short_value
->
(
base
,
short_value
,
important
)
::
tl
|
None
->
group
@
tl
|
None
->
List
.
rev_append
group
tl
in
in
let
shorthands
=
KM
.
fold
replace
groups
[]
in
let
shorthands
=
KM
.
fold
replace
groups
[]
in
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment