Skip to content

Commit c204b41

Browse files
committed
Add basic completions #8 #10
1 parent f937c13 commit c204b41

File tree

3 files changed

+314
-1
lines changed

3 files changed

+314
-1
lines changed
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"scope": "source.postcss - meta.property-list - support.function.name.postcss.library - variable.other.root",
3+
4+
"completions": [
5+
"color: ",
6+
"opacity: ",
7+
"background: ",
8+
"background-attachment: ",
9+
"background-color: ",
10+
"background-image: ",
11+
"background-position: ",
12+
"background-repeat: ",
13+
"background-clip: ",
14+
"background-origin: ",
15+
"background-size: ",
16+
"border: ",
17+
"border-bottom: ",
18+
"border-bottom-color: ",
19+
"border-bottom-left-radius: ",
20+
"border-bottom-right-radius: ",
21+
"border-bottom-style: ",
22+
"border-bottom-width: ",
23+
"border-color: ",
24+
"border-image: ",
25+
"border-image-outset: ",
26+
"border-image-repeat: ",
27+
"border-image-slice: ",
28+
"border-image-source: ",
29+
"border-image-width: ",
30+
"border-left: ",
31+
"border-left-color: ",
32+
"border-left-style: ",
33+
"border-left-width: ",
34+
"border-radius: ",
35+
"border-right: ",
36+
"border-right-color: ",
37+
"border-right-style: ",
38+
"border-right-width: ",
39+
"border-style: ",
40+
"border-top: ",
41+
"border-top-color: ",
42+
"border-top-left-radius: ",
43+
"border-top-right-radius: ",
44+
"border-top-style: ",
45+
"border-top-width: ",
46+
"border-width: ",
47+
"box-shadow: ",
48+
"bottom: ",
49+
"clear: ",
50+
"clip: ",
51+
"display: ",
52+
"float: ",
53+
"height: ",
54+
"left: ",
55+
"overflow: ",
56+
"overflow-x: ",
57+
"overflow-y: ",
58+
"padding: ",
59+
"padding-bottom: ",
60+
"padding-left: ",
61+
"padding-right: ",
62+
"padding-top: ",
63+
"position: ",
64+
"right: ",
65+
"top: ",
66+
"visibility: ",
67+
"width: ",
68+
"vertical-align: ",
69+
"z-index: ",
70+
"align-content: ",
71+
"align-items: ",
72+
"align-self: ",
73+
"flex: ",
74+
"flex-basis: ",
75+
"flex-direction: ",
76+
"flex-flow: ",
77+
"flex-grow: ",
78+
"flex-shrink: ",
79+
"flex-wrap: ",
80+
"justify-content: ",
81+
"margin: ",
82+
"margin-bottom: ",
83+
"margin-left: ",
84+
"margin-right: ",
85+
"margin-top: ",
86+
"max-height: ",
87+
"max-width: ",
88+
"min-height: ",
89+
"min-width: ",
90+
"order: ",
91+
"hanging-punctuation: ",
92+
"letter-spacing: ",
93+
"line-height: ",
94+
"tab-size: ",
95+
"text-align: ",
96+
"text-align-last: ",
97+
"text-indent: ",
98+
"text-justify: ",
99+
"text-transform: ",
100+
"white-space: ",
101+
"word-break: ",
102+
"word-spacing: ",
103+
"word-wrap: ",
104+
"text-decoration: ",
105+
"text-decoration-color: ",
106+
"text-decoration-line: ",
107+
"text-decoration-style: ",
108+
"text-shadow: ",
109+
"font: ",
110+
"font-family: ",
111+
"font-size: ",
112+
"font-style: ",
113+
"font-variant: ",
114+
"font-weight: ",
115+
"font-size-adjust: ",
116+
"font-stretch: ",
117+
"direction: ",
118+
"unicode-bidi: ",
119+
"border-collapse: ",
120+
"border-spacing: ",
121+
"caption-side: ",
122+
"empty-cells: ",
123+
"table-layout: ",
124+
"counter-increment: ",
125+
"counter-reset: ",
126+
"list-style: ",
127+
"list-style-image: ",
128+
"list-style-position: ",
129+
"list-style-type: ",
130+
"animation: ",
131+
"animation-delay: ",
132+
"animation-direction: ",
133+
"animation-duration: ",
134+
"animation-fill-mode: ",
135+
"animation-iteration-count: ",
136+
"animation-name: ",
137+
"animation-timing-function: ",
138+
"animation-play-state: ",
139+
"backface-visibility: ",
140+
"perspective: ",
141+
"perspective-origin: ",
142+
"transform: ",
143+
"transform-origin: ",
144+
"transform-style: ",
145+
"transition: ",
146+
"transition-property: ",
147+
"transition-duration: ",
148+
"transition-timing-function: ",
149+
"transition-delay: ",
150+
"box-sizing: ",
151+
"content: ",
152+
"cursor: ",
153+
"icon: ",
154+
"nav-down: ",
155+
"nav-index: ",
156+
"nav-left: ",
157+
"nav-right: ",
158+
"nav-up: ",
159+
"outline: ",
160+
"outline-color: ",
161+
"outline-offset: ",
162+
"outline-style: ",
163+
"outline-width: ",
164+
"resize: ",
165+
"text-overflow: ",
166+
"column-count: ",
167+
"column-fill: ",
168+
"column-gap: ",
169+
"column-rule: ",
170+
"column-rule-color: ",
171+
"column-rule-style: ",
172+
"column-rule-width: ",
173+
"column-span: ",
174+
"column-width: ",
175+
"columns: ",
176+
"page-break-after: ",
177+
"page-break-before: ",
178+
"page-break-inside: ",
179+
"quotes: "
180+
]
181+
}
Lines changed: 132 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,132 @@
1+
{
2+
"scope": "source.postcss meta.property-list.css.postcss - variable.other",
3+
4+
"completions": [
5+
"absolute",
6+
"all-scroll",
7+
"always",
8+
"auto",
9+
"baseline",
10+
"below",
11+
"bidi-override",
12+
"block",
13+
"bold",
14+
"bolder",
15+
"both",
16+
"bottom",
17+
"break-all",
18+
"break-word",
19+
"capitalize",
20+
"center",
21+
"char",
22+
"circle",
23+
"col-resize",
24+
"collapse",
25+
"contain",
26+
"cover",
27+
"crosshair",
28+
"dashed",
29+
"decimal",
30+
"default",
31+
"disabled",
32+
"disc",
33+
"distribute",
34+
"distribute-all-lines",
35+
"distribute-letter",
36+
"distribute-space",
37+
"dotted",
38+
"double",
39+
"e-resize",
40+
"ellipsis",
41+
"fixed",
42+
"groove",
43+
"hand",
44+
"help",
45+
"hidden",
46+
"horizontal",
47+
"ideograph-alpha",
48+
"ideograph-numeric",
49+
"ideograph-parenthesis",
50+
"ideograph-space",
51+
"inactive",
52+
"inherit",
53+
"inline",
54+
"inline-block",
55+
"inset",
56+
"inside",
57+
"inter-ideograph",
58+
"inter-word",
59+
"italic",
60+
"justify",
61+
"keep-all",
62+
"left",
63+
"lighter",
64+
"line",
65+
"line-edge",
66+
"line-through",
67+
"list-item",
68+
"loose",
69+
"lower-alpha",
70+
"lower-roman",
71+
"lowercase",
72+
"lr-tb",
73+
"ltr",
74+
"medium",
75+
"middle",
76+
"move",
77+
"n-resize",
78+
"ne-resize",
79+
"newspaper",
80+
"no-drop",
81+
"no-repeat",
82+
"none",
83+
"normal",
84+
"not-allowed",
85+
"nowrap",
86+
"nw-resize",
87+
"oblique",
88+
"outset",
89+
"outside",
90+
"overline",
91+
"pointer",
92+
"progress",
93+
"relative",
94+
"repeat",
95+
"repeat-x",
96+
"repeat-y",
97+
"ridge",
98+
"right",
99+
"row-resize",
100+
"rtl",
101+
"s-resize",
102+
"scroll",
103+
"se-resize",
104+
"separate",
105+
"small-caps",
106+
"solid",
107+
"square",
108+
"static",
109+
"strict",
110+
"super",
111+
"sw-resize",
112+
"table-footer-group",
113+
"table-header-group",
114+
"tb-rl",
115+
"text",
116+
"text-bottom",
117+
"text-top",
118+
"thick",
119+
"thin",
120+
"top",
121+
"underline",
122+
"upper-alpha",
123+
"upper-roman",
124+
"uppercase",
125+
"vertical-ideographic",
126+
"vertical-text",
127+
"visible",
128+
"w-resize",
129+
"wait",
130+
"whitespace"
131+
]
132+
}

Preferences/Completion Rules.tmPreferences

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<key>name</key>
66
<string>Cancel Completion</string>
77
<key>scope</key>
8-
<string>source.sass comment, source.sass string.quoted, source.sass entity.other, source.sass keyword.control, source.sass support.function.name.sass.no-completions, source.sass sass-script-maps, source.scss comment, source.scss string.quoted, source.scss entity.other, source.scss keyword.control, source.scss support.function.name.sass.no-completions, source.scss sass-script-maps</string>
8+
<string>source.postcss comment, source.postcss string.quoted, source.postcss entity.other, source.postcss keyword.control, source.postcss support.function.name.postcss.no-completions, source.postcss entity.name.tag.css.postcss.symbol</string>
99
<key>settings</key>
1010
<dict>
1111
<key>cancelCompletion</key>

0 commit comments

Comments
 (0)