mirror of
https://github.com/hail2u/vim-css3-syntax.git
synced 2026-01-28 03:42:08 +08:00
Add css3-speech.vim and test
This commit is contained in:
@@ -52,6 +52,7 @@ HISTORY
|
|||||||
|
|
||||||
* Add Compositing and Blending Level 1 features
|
* Add Compositing and Blending Level 1 features
|
||||||
* Add CSS Fonts Module Level 3 features
|
* Add CSS Fonts Module Level 3 features
|
||||||
|
* Add CSS Speech Module features
|
||||||
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
|
* Split CSS Counter Styles Level 3 features from `css3-lists.vim`
|
||||||
* Follow spec updates
|
* Follow spec updates
|
||||||
* Add missing values
|
* Add missing values
|
||||||
|
|||||||
6
after/syntax/css/css3-speech.vim
Normal file
6
after/syntax/css/css3-speech.vim
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
syn match cssAuralProp contained "\<voice-\(volume\|balance\|rate\|pitch\|range\|stress\|duration\)\>"
|
||||||
|
syn match cssAuralProp contained "\<rest\(-\(before\|after\)\)\=\>"
|
||||||
|
syn keyword cssAuralAttr contained young old neutral preserve moderate reduced
|
||||||
|
syn match cssAuralAttr contained "\<\(literal\|no\)-punctuation\>"
|
||||||
|
syn match cssAuralAttr contained "\<\(x-\)\=\(weak\|strong\)\>"
|
||||||
|
syn match cssValueNumber contained "[-+]\=\d\+\(dB\|st\)"
|
||||||
@@ -28,6 +28,7 @@ syn include @htmlCss syntax/css/css3-regions.vim
|
|||||||
syn include @htmlCss syntax/css/css3-ruby.vim
|
syn include @htmlCss syntax/css/css3-ruby.vim
|
||||||
syn include @htmlCss syntax/css/css3-selectors.vim
|
syn include @htmlCss syntax/css/css3-selectors.vim
|
||||||
syn include @htmlCss syntax/css/css3-sizing.vim
|
syn include @htmlCss syntax/css/css3-sizing.vim
|
||||||
|
syn include @htmlCss syntax/css/css3-speech.vim
|
||||||
syn include @htmlCss syntax/css/css3-transforms.vim
|
syn include @htmlCss syntax/css/css3-transforms.vim
|
||||||
syn include @htmlCss syntax/css/css3-transitions.vim
|
syn include @htmlCss syntax/css/css3-transitions.vim
|
||||||
syn include @htmlCss syntax/css/css3-ui.vim
|
syn include @htmlCss syntax/css/css3-ui.vim
|
||||||
|
|||||||
@@ -378,6 +378,23 @@
|
|||||||
display: contain-floats;
|
display: contain-floats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.speech {
|
||||||
|
voice-volume: 10dB;
|
||||||
|
voice-balance: literal-punctuation;
|
||||||
|
rest-before: no-punctuation;
|
||||||
|
rest-after: x-weak;
|
||||||
|
rest: weak;
|
||||||
|
voice-rate: strong;
|
||||||
|
voice-pitch: x-strong;
|
||||||
|
voice-range: young;
|
||||||
|
voice-stress: old;
|
||||||
|
voice-duration: neutral;
|
||||||
|
display: preserve;
|
||||||
|
display: 10st;
|
||||||
|
display: moderate;
|
||||||
|
display: reduced;
|
||||||
|
}
|
||||||
|
|
||||||
@supports (display: auto) or
|
@supports (display: auto) or
|
||||||
(display: auto) not
|
(display: auto) not
|
||||||
(display: auto) {
|
(display: auto) {
|
||||||
|
|||||||
@@ -388,6 +388,23 @@
|
|||||||
display: contain-floats;
|
display: contain-floats;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.speech {
|
||||||
|
voice-volume: 10dB;
|
||||||
|
voice-balance: literal-punctuation;
|
||||||
|
rest-before: no-punctuation;
|
||||||
|
rest-after: x-weak;
|
||||||
|
rest: weak;
|
||||||
|
voice-rate: strong;
|
||||||
|
voice-pitch: x-strong;
|
||||||
|
voice-range: young;
|
||||||
|
voice-stress: old;
|
||||||
|
voice-duration: neutral;
|
||||||
|
display: preserve;
|
||||||
|
display: 10st;
|
||||||
|
display: moderate;
|
||||||
|
display: reduced;
|
||||||
|
}
|
||||||
|
|
||||||
@supports (display: auto) or
|
@supports (display: auto) or
|
||||||
(display: auto) not
|
(display: auto) not
|
||||||
(display: auto) {
|
(display: auto) {
|
||||||
|
|||||||
Reference in New Issue
Block a user