hayaku/Hayaku-Core — Issue #56: Allow multiple values in abbreviations
Author: kizu
Created: 2012-01-30 21:45:42+00:00
State: open

After thinking about #36 and some other issues, I came up with that we need to understand abbreviations ilke

- `p3 4` или `p 3,4` → `padding: 3px 4px;` — could be useful in some cases;
- `pos: a` → `position: absolute;` — with that we wouldn't need to redefine the `:` as a command;
- `baF nr` → `background: #FFF no-repeat;` — different sub-properties of a shorthand;
- `m3p5.-4` → `margin: 3px 5em -4px;` — the delimiter could be omitted, so the most appropriate values must be detected.

So, there must be a possibility to write multiple values in abbreviations, they can be divided by:

1. Space symbol — ` `.
2. Comma symbol — `,`.
3. Natural delimiters of values, look at `m3p5.-4` example.

The seemed problem with determining the context doesn't matter since we can write smart contexts. In the case with spaces we won't expand abbreviations if there is a semicolon somewhere after the abbreviation in the code.