Add css highlighting support

Julien LepillerTue Aug 24 23:16:50+0200 2021

ad8d9c6

Add css highlighting support

gitile/code.scm

1919
(define-module (gitile code)
2020
  #:use-module (ice-9 match)
2121
  #:use-module (syntax-highlight)
22-
  #:use-module (syntax-highlight scheme)
22+
  #:use-module (syntax-highlight css)
2323
  #:use-module (syntax-highlight gitignore)
24+
  #:use-module (syntax-highlight scheme)
2425
  #:use-module (gitile highlight shell)
2526
  #:export (display-code
2627
            display-formatted-code))

3435
                     ("bash" "shell")
3536
                     ("m4" "m4")
3637
                     ("ac" "ac")
38+
                     ("css" "css")
3739
                     (_ (match (basename path)
3840
                         ("bootstrap" "shell")
3941
                         (_ "unknown"))))))

5052
    ("gitignore" (highlight lex-gitignore content))
5153
    ("m4" (highlight lex-m4 content))
5254
    ("ac" (highlight lex-autoconf content))
55+
    ("css" (highlight lex-css content))
5356
    (_ (list content))))
5457
5558
(define (split-lines content)