elm_code: Add initial simple syntax highlighting for C code
authorAndy Williams <andy@andywilliams.me>
Fri, 20 Jan 2017 22:09:16 +0000 (22:09 +0000)
committerAndy Williams <andy@andywilliams.me>
Fri, 20 Jan 2017 22:11:01 +0000 (22:11 +0000)
commit5851a9d4a82b1fb5638d46f510fe9e8b6c7bdbb4
tree9f457827fa32944125d607cff6c5218a5234a85b
parent3090e9c3ae3b12e36cf62dff224d6f6146bcc9d4
elm_code: Add initial simple syntax highlighting for C code

For c source and headers lookup a simple syntax definition.
Use a very simple text processing line by line to tokenise.
Simple but it gets us one step closer to cross-language syntax
17 files changed:
src/Makefile_Elementary.am
src/bin/elementary/test.c
src/bin/elementary/test_code.c
src/lib/elementary/elm_code.h
src/lib/elementary/elm_code_file.c
src/lib/elementary/elm_code_file.h
src/lib/elementary/elm_code_parse.c
src/lib/elementary/elm_code_parse.h
src/lib/elementary/elm_code_private.h
src/lib/elementary/elm_code_syntax.c [new file with mode: 0644]
src/lib/elementary/elm_code_syntax.h [new file with mode: 0644]
src/lib/elementary/elm_code_text.c
src/lib/elementary/elm_code_widget.c
src/lib/elementary/elm_code_widget.eo
src/tests/elementary/elm_code_test_syntax.c [new file with mode: 0644]
src/tests/elementary/elm_suite.c
src/tests/elementary/elm_suite.h