Add C syntax highlight

Julien LepillerFri Nov 12 03:26:00+0100 2021

ebff9c7

Add C syntax highlight

gitile/code.scm

1919
(define-module (gitile code)
2020
  #:use-module (ice-9 match)
2121
  #:use-module (syntax-highlight)
22+
  #:use-module (syntax-highlight c)
2223
  #:use-module (syntax-highlight css)
2324
  #:use-module (syntax-highlight gitignore)
2425
  #:use-module (syntax-highlight scheme)

3637
                     ("m4" "m4")
3738
                     ("ac" "ac")
3839
                     ("css" "css")
40+
                     ("c" "c")
3941
                     (_ (match (basename path)
4042
                         ("bootstrap" "shell")
4143
                         (_ "unknown"))))))

5355
    ("m4" (highlight lex-m4 content))
5456
    ("ac" (highlight lex-autoconf content))
5557
    ("css" (highlight lex-css content))
58+
    ("c" (highlight lex-c content))
5659
    (_ (list content))))
5760
5861
(define (split-lines content)