From 35e88ebbc7ecefe3c92d267b362e5ec192052e74 Mon Sep 17 00:00:00 2001 From: Garrit Franke Date: Sun, 7 Feb 2021 16:34:03 +0100 Subject: [PATCH] docs: replace rust with sabre --- docs/concepts/SUMMARY.md | 2 +- src/lexer/mod.rs | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/concepts/SUMMARY.md b/docs/concepts/SUMMARY.md index 7724e4f..0c87f07 100644 --- a/docs/concepts/SUMMARY.md +++ b/docs/concepts/SUMMARY.md @@ -1,5 +1,5 @@ # Common language concepts -This chapter covers concepts that appear in almost every programming language and how they work in Rust. Many programming languages have much in common at their core. +This chapter covers concepts that appear in almost every programming language and how they work in Sabre. Many programming languages have much in common at their core. Specifically, you’ll learn about variables, basic types, functions, comments, and control flow. These foundations will be in every Sabre program, and learning them early will give you a strong core to start from. diff --git a/src/lexer/mod.rs b/src/lexer/mod.rs index d3f6eb1..af2d8bf 100644 --- a/src/lexer/mod.rs +++ b/src/lexer/mod.rs @@ -172,15 +172,11 @@ pub fn is_whitespace(c: char) -> bool { } /// True if `c` is valid as a first character of an identifier. -/// See [Rust language reference](https://doc.rust-lang.org/reference/identifiers.html) for -/// a formal definition of valid identifier name. pub fn is_id_start(c: char) -> bool { ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || c == '_' } /// True if `c` is valid as a non-first character of an identifier. -/// See [Rust language reference](https://doc.rust-lang.org/reference/identifiers.html) for -/// a formal definition of valid identifier name. pub fn is_id_continue(c: char) -> bool { ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z') || ('0' <= c && c <= '9') || c == '_' }