seam

Symbolic-Expressions As Markup.
git clone git://git.knutsen.co/seam
Log | Files | Refs | README | LICENSE

commit 9f192ee4eca807893380b5e2a39ab4de60321045
parent 18a44356eeb5c5c560a05678e038d4ad44ef46b5
Author: Demonstrandum <samuel@knutsen.co>
Date:   Fri, 28 Jun 2024 19:26:42 +0100

Add back ability to use colons within symbols.

By mistake, they were parsed as separate keyword tokens.

Diffstat:
MCargo.lock | 2+-
MCargo.toml | 2+-
Msrc/parse/lexer.rs | 4+++-
3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/Cargo.lock b/Cargo.lock @@ -162,7 +162,7 @@ dependencies = [ [[package]] name = "seam" -version = "0.2.0" +version = "0.2.1" dependencies = [ "chrono", "colored", diff --git a/Cargo.toml b/Cargo.toml @@ -4,7 +4,7 @@ description = "Symbolic Expressions As Markup." keywords = ["markup", "lisp", "macro", "symbolic-expression", "sexp"] license-file = "LICENSE" homepage = "https://git.knutsen.co/seam" -version = "0.2.0" +version = "0.2.1" authors = ["Demonstrandum <samuel@knutsen.co>"] edition = "2021" diff --git a/src/parse/lexer.rs b/src/parse/lexer.rs @@ -195,7 +195,9 @@ impl<'a> Lexer { } // Characters that fit in a symbol or number are valid idents. match kind { - tokens::Kind::Symbol | tokens::Kind::Number => {}, + tokens::Kind::Symbol + | tokens::Kind::Number + | tokens::Kind::Keyword => {}, _ => break } let _ = self.consume_char();