Fix some declarations.
[emacs.git] / lisp / textmodes / css-mode.el
blob48c24844a683fb4600d42ba77e1036dd6604c720
1 ;;; css-mode.el --- Major mode to edit CSS files -*- lexical-binding: t -*-
3 ;; Copyright (C) 2006-2016 Free Software Foundation, Inc.
5 ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
6 ;; Maintainer: Simen Heggestøyl <simenheg@gmail.com>
7 ;; Keywords: hypermedia
9 ;; This file is part of GNU Emacs.
11 ;; GNU Emacs is free software: you can redistribute it and/or modify
12 ;; it under the terms of the GNU General Public License as published by
13 ;; the Free Software Foundation, either version 3 of the License, or
14 ;; (at your option) any later version.
16 ;; GNU Emacs is distributed in the hope that it will be useful,
17 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
18 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 ;; GNU General Public License for more details.
21 ;; You should have received a copy of the GNU General Public License
22 ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
24 ;;; Commentary:
26 ;; Yet another CSS mode.
28 ;;; Todo:
30 ;; - electric ; and }
31 ;; - filling code with auto-fill-mode
32 ;; - attribute value completion
33 ;; - fix font-lock errors with multi-line selectors
35 ;;; Code:
37 (defgroup css nil
38 "Cascading Style Sheets (CSS) editing mode."
39 :group 'languages)
41 (defconst css-pseudo-class-ids
42 '("active" "checked" "disabled" "empty" "enabled" "first"
43 "first-child" "first-of-type" "focus" "hover" "indeterminate" "lang"
44 "last-child" "last-of-type" "left" "link" "not" "nth-child"
45 "nth-last-child" "nth-last-of-type" "nth-of-type" "only-child"
46 "only-of-type" "right" "root" "target" "visited")
47 "Identifiers for pseudo-classes.")
49 (defconst css-pseudo-element-ids
50 '("after" "before" "first-letter" "first-line")
51 "Identifiers for pseudo-elements.")
53 (defconst css-at-ids
54 '("charset" "font-face" "import" "media" "namespace" "page")
55 "Identifiers that appear in the form @foo.")
57 (defconst css-descriptor-ids
58 '("ascent" "baseline" "bbox" "cap-height" "centerline" "definition-src"
59 "descent" "font-family" "font-size" "font-stretch" "font-style"
60 "font-variant" "font-weight" "mathline" "panose-1" "slope" "src" "stemh"
61 "stemv" "topline" "unicode-range" "units-per-em" "widths" "x-height")
62 "Identifiers for font descriptors.")
64 (defconst css-media-ids
65 '("all" "aural" "bitmap" "continuous" "grid" "paged" "static" "tactile"
66 "visual")
67 "Identifiers for types of media.")
69 (defconst css-property-ids
70 '(;; CSS 2.1 properties (http://www.w3.org/TR/CSS21/propidx.html).
72 ;; Properties duplicated by any of the CSS3 modules below have
73 ;; been removed.
74 "azimuth" "border-collapse" "border-spacing" "bottom"
75 "caption-side" "clear" "clip" "content" "counter-increment"
76 "counter-reset" "cue" "cue-after" "cue-before" "direction" "display"
77 "elevation" "empty-cells" "float" "height" "left" "line-height"
78 "list-style" "list-style-image" "list-style-position"
79 "list-style-type" "margin" "margin-bottom" "margin-left"
80 "margin-right" "margin-top" "max-height" "max-width" "min-height"
81 "min-width" "orphans" "padding" "padding-bottom" "padding-left"
82 "padding-right" "padding-top" "page-break-after"
83 "page-break-before" "page-break-inside" "pause" "pause-after"
84 "pause-before" "pitch" "pitch-range" "play-during" "position"
85 "quotes" "richness" "right" "speak" "speak-header" "speak-numeral"
86 "speak-punctuation" "speech-rate" "stress" "table-layout" "top"
87 "unicode-bidi" "vertical-align" "visibility" "voice-family" "volume"
88 "widows" "width" "z-index"
90 ;; CSS Animations
91 ;; (http://www.w3.org/TR/css3-animations/#property-index)
92 "animation" "animation-delay" "animation-direction"
93 "animation-duration" "animation-fill-mode"
94 "animation-iteration-count" "animation-name"
95 "animation-play-state" "animation-timing-function"
97 ;; CSS Backgrounds and Borders Module Level 3
98 ;; (http://www.w3.org/TR/css3-background/#property-index)
99 "background" "background-attachment" "background-clip"
100 "background-color" "background-image" "background-origin"
101 "background-position" "background-repeat" "background-size"
102 "border" "border-bottom" "border-bottom-color"
103 "border-bottom-left-radius" "border-bottom-right-radius"
104 "border-bottom-style" "border-bottom-width" "border-color"
105 "border-image" "border-image-outset" "border-image-repeat"
106 "border-image-slice" "border-image-source" "border-image-width"
107 "border-left" "border-left-color" "border-left-style"
108 "border-left-width" "border-radius" "border-right"
109 "border-right-color" "border-right-style" "border-right-width"
110 "border-style" "border-top" "border-top-color"
111 "border-top-left-radius" "border-top-right-radius"
112 "border-top-style" "border-top-width" "border-width" "box-shadow"
114 ;; CSS Basic User Interface Module Level 3 (CSS3 UI)
115 ;; (http://www.w3.org/TR/css3-ui/#property-index)
116 "box-sizing" "caret-color" "cursor" "nav-down" "nav-left"
117 "nav-right" "nav-up" "outline" "outline-color" "outline-offset"
118 "outline-style" "outline-width" "resize" "text-overflow"
120 ;; CSS Color Module Level 3
121 ;; (http://www.w3.org/TR/css3-color/#property)
122 "color" "opacity"
124 ;; CSS Flexible Box Layout Module Level 1
125 ;; (http://www.w3.org/TR/css-flexbox-1/#property-index)
126 "align-content" "align-items" "align-self" "flex" "flex-basis"
127 "flex-direction" "flex-flow" "flex-grow" "flex-shrink" "flex-wrap"
128 "justify-content" "order"
130 ;; CSS Fonts Module Level 3
131 ;; (http://www.w3.org/TR/css3-fonts/#property-index)
132 "font" "font-family" "font-feature-settings" "font-kerning"
133 "font-language-override" "font-size" "font-size-adjust"
134 "font-stretch" "font-style" "font-synthesis" "font-variant"
135 "font-variant-alternates" "font-variant-caps"
136 "font-variant-east-asian" "font-variant-ligatures"
137 "font-variant-numeric" "font-variant-position" "font-weight"
139 ;; CSS Overflow Module Level 3
140 ;; (http://www.w3.org/TR/css-overflow-3/#property-index)
141 "max-lines" "overflow" "overflow-x" "overflow-y"
143 ;; CSS Text Decoration Module Level 3
144 ;; (http://dev.w3.org/csswg/css-text-decor-3/#property-index)
145 "text-decoration" "text-decoration-color" "text-decoration-line"
146 "text-decoration-skip" "text-decoration-style" "text-emphasis"
147 "text-emphasis-color" "text-emphasis-position" "text-emphasis-style"
148 "text-shadow" "text-underline-position"
150 ;; CSS Text Module Level 3
151 ;; (http://www.w3.org/TR/css3-text/#property-index)
152 "hanging-punctuation" "hyphens" "letter-spacing" "line-break"
153 "overflow-wrap" "tab-size" "text-align" "text-align-last"
154 "text-indent" "text-justify" "text-transform" "white-space"
155 "word-break" "word-spacing" "word-wrap"
157 ;; CSS Transforms Module Level 1
158 ;; (http://www.w3.org/TR/css3-2d-transforms/#property-index)
159 "backface-visibility" "perspective" "perspective-origin"
160 "transform" "transform-origin" "transform-style"
162 ;; CSS Transitions
163 ;; (http://www.w3.org/TR/css3-transitions/#property-index)
164 "transition" "transition-delay" "transition-duration"
165 "transition-property" "transition-timing-function"
167 ;; Filter Effects Module Level 1
168 ;; (http://www.w3.org/TR/filter-effects/#property-index)
169 "color-interpolation-filters" "filter" "flood-color"
170 "flood-opacity" "lighting-color")
171 "Identifiers for properties.")
173 (defcustom css-electric-keys '(?\} ?\;) ;; '()
174 "Self inserting keys which should trigger re-indentation."
175 :version "22.2"
176 :type '(repeat character)
177 :options '((?\} ?\;))
178 :group 'css)
180 (defvar css-mode-syntax-table
181 (let ((st (make-syntax-table)))
182 ;; C-style comments.
183 (modify-syntax-entry ?/ ". 14" st)
184 (modify-syntax-entry ?* ". 23b" st)
185 ;; Strings.
186 (modify-syntax-entry ?\" "\"" st)
187 (modify-syntax-entry ?\' "\"" st)
188 ;; Blocks.
189 (modify-syntax-entry ?\{ "(}" st)
190 (modify-syntax-entry ?\} "){" st)
191 ;; Args in url(...) thingies and other "function calls".
192 (modify-syntax-entry ?\( "()" st)
193 (modify-syntax-entry ?\) ")(" st)
194 ;; To match attributes in selectors.
195 (modify-syntax-entry ?\[ "(]" st)
196 (modify-syntax-entry ?\] ")[" st)
197 ;; Special chars that sometimes come at the beginning of words.
198 (modify-syntax-entry ?@ "'" st)
199 ;; (modify-syntax-entry ?: "'" st)
200 (modify-syntax-entry ?# "'" st)
201 ;; Distinction between words and symbols.
202 (modify-syntax-entry ?- "_" st)
203 st))
205 (eval-and-compile
206 (defconst css--uri-re
207 (concat
208 "url\\((\\)[[:space:]]*\\(?:\\\\.\\|[^()[:space:]\n'\"]\\)+"
209 "[[:space:]]*\\()\\)")))
211 (defconst css-syntax-propertize-function
212 (syntax-propertize-rules
213 (css--uri-re (1 "|") (2 "|"))))
215 (defconst css-escapes-re
216 "\\\\\\(?:[^\000-\037\177]\\|[0-9a-fA-F]+[ \n\t\r\f]?\\)")
217 (defconst css-nmchar-re (concat "\\(?:[-[:alnum:]]\\|" css-escapes-re "\\)"))
218 (defconst css-nmstart-re (concat "\\(?:--\\)?\\(?:[[:alpha:]]\\|" css-escapes-re "\\)"))
219 (defconst css-ident-re ;; (concat css-nmstart-re css-nmchar-re "*")
220 ;; Apparently, "at rules" names can start with a dash, e.g. @-moz-keyframes.
221 (concat css-nmchar-re "+"))
222 (defconst css-proprietary-nmstart-re ;; Vendor-specific properties.
223 (concat "[-_]" (regexp-opt '("ms" "moz" "o" "khtml" "webkit")) "-"))
224 (defconst css-name-re (concat css-nmchar-re "+"))
226 (defconst scss--hash-re "#\\(?:{[$-_[:alnum:]]+}\\|[[:alnum:]]+\\)")
228 (defface css-selector '((t :inherit font-lock-function-name-face))
229 "Face to use for selectors."
230 :group 'css)
231 (defface css-property '((t :inherit font-lock-variable-name-face))
232 "Face to use for properties."
233 :group 'css)
234 (defface css-proprietary-property '((t :inherit (css-property italic)))
235 "Face to use for vendor-specific properties.")
237 (defun css--font-lock-keywords (&optional sassy)
238 `((,(concat "!\\s-*"
239 (regexp-opt (append (if sassy '("global"))
240 '("important"))))
241 (0 font-lock-builtin-face))
242 ;; Atrules keywords. IDs not in css-at-ids are valid (ignored).
243 ;; In fact the regexp should probably be
244 ;; (,(concat "\\(@" css-ident-re "\\)\\([ \t\n][^;{]*\\)[;{]")
245 ;; (1 font-lock-builtin-face))
246 ;; Since "An at-rule consists of everything up to and including the next
247 ;; semicolon (;) or the next block, whichever comes first."
248 (,(concat "@" css-ident-re) (0 font-lock-builtin-face))
249 ;; Selectors.
250 ;; FIXME: attribute selectors don't work well because they may contain
251 ;; strings which have already been highlighted as f-l-string-face and
252 ;; thus prevent this highlighting from being applied (actually now that
253 ;; I use `keep' this should work better). But really the part of the
254 ;; selector between [...] should simply not be highlighted.
255 (,(concat
256 "^[ \t]*\\("
257 (if (not sassy)
258 ;; We don't allow / as first char, so as not to
259 ;; take a comment as the beginning of a selector.
260 "[^@/:{} \t\n][^:{}]+"
261 ;; Same as for non-sassy except we do want to allow { and }
262 ;; chars in selectors in the case of #{$foo}
263 ;; variable interpolation!
264 (concat "\\(?:" scss--hash-re
265 "\\|[^@/:{} \t\n#]\\)"
266 "[^:{}#]*\\(?:" scss--hash-re "[^:{}#]*\\)*"))
267 ;; Even though pseudo-elements should be prefixed by ::, a
268 ;; single colon is accepted for backward compatibility.
269 "\\(?:\\(:" (regexp-opt (append css-pseudo-class-ids
270 css-pseudo-element-ids) t)
271 "\\|\\::" (regexp-opt css-pseudo-element-ids t) "\\)"
272 "\\(?:([^)]+)\\)?"
273 (if (not sassy)
274 "[^:{}\n]*"
275 (concat "[^:{}\n#]*\\(?:" scss--hash-re "[^:{}\n#]*\\)*"))
276 "\\)*"
277 "\\)\\(?:\n[ \t]*\\)*{")
278 (1 'css-selector keep))
279 ;; In the above rule, we allow the open-brace to be on some subsequent
280 ;; line. This will only work if we properly mark the intervening text
281 ;; as being part of a multiline element (and even then, this only
282 ;; ensures proper refontification, but not proper discovery).
283 ("^[ \t]*{" (0 (save-excursion
284 (goto-char (match-beginning 0))
285 (skip-chars-backward " \n\t")
286 (put-text-property (point) (match-end 0)
287 'font-lock-multiline t)
288 ;; No face.
289 nil)))
290 ;; Properties. Again, we don't limit ourselves to css-property-ids.
291 (,(concat "\\(?:[{;]\\|^\\)[ \t]*\\("
292 "\\(?:\\(" css-proprietary-nmstart-re "\\)\\|"
293 css-nmstart-re "\\)" css-nmchar-re "*"
294 "\\)\\s-*:")
295 (1 (if (match-end 2) 'css-proprietary-property 'css-property)))
296 ;; Make sure the parens in a url(...) expression receive the
297 ;; default face. This is done because the parens may sometimes
298 ;; receive generic string delimiter syntax (see
299 ;; `css-syntax-propertize-function').
300 (,css--uri-re
301 (1 'default t) (2 'default t))))
303 (defvar css-font-lock-keywords (css--font-lock-keywords))
305 (defvar css-font-lock-defaults
306 '(css-font-lock-keywords nil t))
308 (defcustom css-indent-offset 4
309 "Basic size of one indentation step."
310 :version "22.2"
311 :type 'integer
312 :safe 'integerp)
314 (require 'smie)
316 (defconst css-smie-grammar
317 (smie-prec2->grammar
318 (smie-precs->prec2 '((assoc ";") (assoc ",") (left ":")))))
320 (defun css-smie--forward-token ()
321 (cond
322 ((and (eq (char-before) ?\})
323 (scss-smie--not-interpolation-p)
324 ;; FIXME: If the next char is not whitespace, what should we do?
325 (or (memq (char-after) '(?\s ?\t ?\n))
326 (looking-at comment-start-skip)))
327 (if (memq (char-after) '(?\s ?\t ?\n))
328 (forward-char 1) (forward-comment 1))
329 ";")
330 ((progn (forward-comment (point-max))
331 (looking-at "[;,:]"))
332 (forward-char 1) (match-string 0))
333 (t (smie-default-forward-token))))
335 (defun css-smie--backward-token ()
336 (let ((pos (point)))
337 (forward-comment (- (point)))
338 (cond
339 ;; FIXME: If the next char is not whitespace, what should we do?
340 ((and (eq (char-before) ?\}) (scss-smie--not-interpolation-p)
341 (> pos (point))) ";")
342 ((memq (char-before) '(?\; ?\, ?\:))
343 (forward-char -1) (string (char-after)))
344 (t (smie-default-backward-token)))))
346 (defun css-smie-rules (kind token)
347 (pcase (cons kind token)
348 (`(:elem . basic) css-indent-offset)
349 (`(:elem . arg) 0)
350 (`(:list-intro . ,(or `";" `"")) t) ;"" stands for BOB (bug#15467).
351 (`(:before . "{")
352 (when (or (smie-rule-hanging-p) (smie-rule-bolp))
353 (smie-backward-sexp ";")
354 (smie-indent-virtual)))
355 (`(:before . ,(or "{" "("))
356 (if (smie-rule-hanging-p) (smie-rule-parent 0)))))
358 ;;; Completion
360 (defun css--complete-property ()
361 "Complete property at point."
362 (save-excursion
363 (let ((pos (point)))
364 (skip-chars-backward "-[:alnum:]")
365 (let ((start (point)))
366 (skip-chars-backward " \t\r\n")
367 (when (memq (char-before) '(?\{ ?\;))
368 (list start pos css-property-ids))))))
370 (defun css--complete-pseudo-element-or-class ()
371 "Complete pseudo-element or pseudo-class at point."
372 (save-excursion
373 (let ((pos (point)))
374 (skip-chars-backward "-[:alnum:]")
375 (when (eq (char-before) ?\:)
376 (list (point) pos
377 (if (eq (char-before (- (point) 1)) ?\:)
378 css-pseudo-element-ids
379 css-pseudo-class-ids))))))
381 (defun css--complete-at-rule ()
382 "Complete at-rule (statement beginning with `@') at point."
383 (save-excursion
384 (let ((pos (point)))
385 (skip-chars-backward "-[:alnum:]")
386 (when (eq (char-before) ?\@)
387 (list (point) pos css-at-ids)))))
389 (defun css-completion-at-point ()
390 "Complete current symbol at point.
391 Currently supports completion of CSS properties, pseudo-elements,
392 pseudo-classes, and at-rules."
393 (or (css--complete-property)
394 (css--complete-pseudo-element-or-class)
395 (css--complete-at-rule)))
397 ;;;###autoload
398 (define-derived-mode css-mode prog-mode "CSS"
399 "Major mode to edit Cascading Style Sheets."
400 (setq-local font-lock-defaults css-font-lock-defaults)
401 (setq-local comment-start "/*")
402 (setq-local comment-start-skip "/\\*+[ \t]*")
403 (setq-local comment-end "*/")
404 (setq-local comment-end-skip "[ \t]*\\*+/")
405 (setq-local syntax-propertize-function
406 css-syntax-propertize-function)
407 (setq-local fill-paragraph-function #'css-fill-paragraph)
408 (setq-local adaptive-fill-function #'css-adaptive-fill)
409 (setq-local add-log-current-defun-function #'css-current-defun-name)
410 (smie-setup css-smie-grammar #'css-smie-rules
411 :forward-token #'css-smie--forward-token
412 :backward-token #'css-smie--backward-token)
413 (setq-local electric-indent-chars
414 (append css-electric-keys electric-indent-chars))
415 (add-hook 'completion-at-point-functions
416 #'css-completion-at-point nil 'local))
418 (defvar comment-continue)
420 (defun css-fill-paragraph (&optional justify)
421 (save-excursion
422 ;; Fill succeeding comment when invoked right before a multi-line
423 ;; comment.
424 (when (save-excursion
425 (beginning-of-line)
426 (comment-search-forward (point-at-eol) t))
427 (goto-char (match-end 0)))
428 (let ((ppss (syntax-ppss))
429 (eol (line-end-position)))
430 (cond
431 ((and (nth 4 ppss)
432 (save-excursion
433 (goto-char (nth 8 ppss))
434 (forward-comment 1)
435 (prog1 (not (bolp))
436 (setq eol (point)))))
437 ;; Filling inside a comment whose comment-end marker is not \n.
438 ;; This code is meant to be generic, so that it works not only for
439 ;; css-mode but for all modes.
440 (save-restriction
441 (narrow-to-region (nth 8 ppss) eol)
442 (comment-normalize-vars) ;Will define comment-continue.
443 (let ((fill-paragraph-function nil)
444 (paragraph-separate
445 (if (and comment-continue
446 (string-match "[^ \t]" comment-continue))
447 (concat "\\(?:[ \t]*\\(?:"
448 (regexp-quote comment-continue) "\\|"
449 comment-start-skip "\\|"
450 comment-end-skip "\\)\\)?"
451 "\\(?:" paragraph-separate "\\)")
452 paragraph-separate))
453 (paragraph-start
454 (if (and comment-continue
455 (string-match "[^ \t]" comment-continue))
456 (concat "\\(?:[ \t]*" (regexp-quote comment-continue)
457 "\\)?\\(?:" paragraph-start "\\)")
458 paragraph-start)))
459 (fill-paragraph justify)
460 ;; Don't try filling again.
461 t)))
463 ((and (null (nth 8 ppss))
464 (or (nth 1 ppss)
465 (and (ignore-errors
466 (down-list 1)
467 (when (<= (point) eol)
468 (setq ppss (syntax-ppss)))))))
469 (goto-char (nth 1 ppss))
470 (let ((end (save-excursion
471 (ignore-errors (forward-sexp 1) (copy-marker (point) t)))))
472 (when end
473 (while (re-search-forward "[{;}]" end t)
474 (cond
475 ;; This is a false positive inside a string or comment.
476 ((nth 8 (syntax-ppss)) nil)
477 ;; This is a false positive when encountering an
478 ;; interpolated variable (bug#19751).
479 ((eq (char-before (- (point) 1)) ?#) nil)
480 ((eq (char-before) ?\})
481 (save-excursion
482 (forward-char -1)
483 (skip-chars-backward " \t")
484 (when (and (not (bolp))
485 (scss-smie--not-interpolation-p))
486 (newline))))
488 (while
489 (progn
490 (setq eol (line-end-position))
491 (and (forward-comment 1)
492 (> (point) eol)
493 ;; A multi-line comment should be on its own line.
494 (save-excursion (forward-comment -1)
495 (when (< (point) eol)
496 (newline)
497 t)))))
498 (if (< (point) eol) (newline)))))
499 (goto-char (nth 1 ppss))
500 (indent-region (line-beginning-position 2) end)
501 ;; Don't use the default filling code.
502 t)))))))
504 (defun css-adaptive-fill ()
505 (when (looking-at "[ \t]*/\\*[ \t]*")
506 (let ((str (match-string 0)))
507 (and (string-match "/\\*" str)
508 (replace-match " *" t t str)))))
510 (defun css-current-defun-name ()
511 "Return the name of the CSS section at point, or nil."
512 (save-excursion
513 (let ((max (max (point-min) (- (point) 1600)))) ; approx 20 lines back
514 (when (search-backward "{" max t)
515 (skip-chars-backward " \t\r\n")
516 (beginning-of-line)
517 (if (looking-at "^[ \t]*\\([^{\r\n]*[^ {\t\r\n]\\)")
518 (match-string-no-properties 1))))))
520 ;;; SCSS mode
522 (defvar scss-mode-syntax-table
523 (let ((st (make-syntax-table css-mode-syntax-table)))
524 (modify-syntax-entry ?/ ". 124" st)
525 (modify-syntax-entry ?\n ">" st)
526 st))
528 (defvar scss-font-lock-keywords
529 (append `((,(concat "$" css-ident-re) (0 font-lock-variable-name-face)))
530 (css--font-lock-keywords 'sassy)
531 `((,(concat "@mixin[ \t]+\\(" css-ident-re "\\)[ \t]*(")
532 (1 font-lock-function-name-face)))))
534 (defun scss-smie--not-interpolation-p ()
535 (save-excursion
536 (forward-char -1)
537 (or (zerop (skip-chars-backward "-[:alnum:]"))
538 (not (looking-back "#{\\$" (- (point) 3))))))
540 ;;;###autoload (add-to-list 'auto-mode-alist '("\\.scss\\'" . scss-mode))
541 ;;;###autoload
542 (define-derived-mode scss-mode css-mode "SCSS"
543 "Major mode to edit \"Sassy CSS\" files."
544 (setq-local comment-start "// ")
545 (setq-local comment-end "")
546 (setq-local comment-continue " *")
547 (setq-local comment-start-skip "/[*/]+[ \t]*")
548 (setq-local comment-end-skip "[ \t]*\\(?:\n\\|\\*+/\\)")
549 (setq-local font-lock-defaults '(scss-font-lock-keywords nil t)))
551 (provide 'css-mode)
552 ;;; css-mode.el ends here