Skip to content

Commit

Permalink
readme and vim syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Aug 16, 2024
1 parent 4a0a890 commit 70790d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Bare-OCaml ![build](https://github.com/c-cube/bare/workflows/build/badge.svg)

A simple code generator and runtime library for [BARE](https://baremessages.org/)
following [the spec](https://datatracker.ietf.org/doc/draft-devault-bare).
following [the spec](https://datatracker.ietf.org/doc/draft-devault-bare/11/)

- License: MIT.
- online documentation: https://c-cube.github.io/bare-ocaml/
Expand Down Expand Up @@ -31,5 +31,4 @@ following [the spec](https://datatracker.ietf.org/doc/draft-devault-bare).
In that case, the code for the `Bare` module will be inserted at the beginning
of the generated code.
- basic testing (needs to be improved when test vectors are published)
- basic vim syntax files in `data/vim/`
4 changes: 2 additions & 2 deletions data/vim/syntax/bare.vim
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
set expandtab

syn keyword bareKW type enum
syn keyword bareKW type enum struct enum union

syn match bareComment "#.*" contains=bareTodo

Expand All @@ -10,7 +10,7 @@ syn match bareKW ":"
syn match bareKW "="
syn match bareKW "|"

syn keyword bareType uint int u8 i8 u16 i16 u32 i32 u64 i64 f32 f64 map string data bool void
syn keyword bareType uint int u8 i8 u16 i16 u32 i32 u64 i64 f32 f64 map str data bool void

syn keyword bareTodo contained TODO BUG FIX FIXME NOTE

Expand Down

0 comments on commit 70790d5

Please sign in to comment.