aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/ci.yml24
-rw-r--r--.gitignore1
-rw-r--r--example/mis-match.okml17
-rw-r--r--example/syntax.okml31
4 files changed, 72 insertions, 1 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..b89d5db
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,24 @@
+name: Cargo Build & Test
+
+on:
+ push:
+ pull_request:
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ build_and_test:
+ name: Rust project - latest
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ toolchain:
+ - stable
+ - beta
+ - nightly
+ steps:
+ - uses: actions/checkout@v6
+ - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
+ - run: cargo build --verbose
+ - run: cargo test --verbose \ No newline at end of file
diff --git a/.gitignore b/.gitignore
index 91596d5..ea8c4bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1 @@
/target
-example/
diff --git a/example/mis-match.okml b/example/mis-match.okml
new file mode 100644
index 0000000..e9ee780
--- /dev/null
+++ b/example/mis-match.okml
@@ -0,0 +1,17 @@
+name:okaml
+version : 0.1.0
+price :1.1
+somehow:this\:\:belongs
+somelist{
+ has_key: true
+ this_has: astringvalue
+ sub_lists { sub_sublists {
+ isSubSub: yes
+ } }
+ bar: 123
+ baz: 1204
+}
+
+multi_line:```this
+is multi_line```
+
diff --git a/example/syntax.okml b/example/syntax.okml
new file mode 100644
index 0000000..1ad7b52
--- /dev/null
+++ b/example/syntax.okml
@@ -0,0 +1,31 @@
+name: okaml
+version: 0.1.0
+price: 1.1
+somelist {
+ has_key: true
+ this_has: astringvalue
+ sub_lists {
+ sub_sublists {
+ isSubSub: yes
+ foo: false
+ some_multi: ```
+ this is a very big
+ multi sub list
+ string in a sublist
+ ```
+ }
+ try: yes
+ }
+ bar: 123
+ baz: 1204
+}
+
+multi_line: ```
+this
+is
+multi_line
+```
+
+isBad: false
+isWorse: no
+isNull: null \ No newline at end of file