From 168bdf35bd773e67343c965cb473492cc5cae9e7 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 6 Jun 2023 19:10:16 +0200 Subject: [PATCH] Add note to `groups.yml` --- docs/src/reference/groups.yml | 3 +++ src/syntax/mod.rs | 17 +++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/docs/src/reference/groups.yml b/docs/src/reference/groups.yml index cd85b820b..86287cb1b 100644 --- a/docs/src/reference/groups.yml +++ b/docs/src/reference/groups.yml @@ -1,3 +1,6 @@ +# This is responsible for the fact that certain math functions are grouped +# together into one documentation page although they are not part of any scope. + - name: variants display: Variants functions: ["serif", "sans", "frak", "mono", "bb", "cal"] diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index c27547c41..d4aee9d30 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -10,9 +10,14 @@ mod reparser; mod source; mod span; -pub use self::kind::*; -pub use self::lexer::*; -pub use self::node::*; -pub use self::parser::*; -pub use self::source::*; -pub use self::span::*; +pub use self::kind::SyntaxKind; +pub use self::lexer::{is_ident, is_newline}; +pub use self::node::{ErrorPos, LinkedChildren, LinkedNode, SyntaxNode}; +pub use self::parser::{parse, parse_code}; +pub use self::source::{Source, SourceId}; +pub use self::span::{Span, Spanned}; + +pub(crate) use self::lexer::{is_id_continue, is_id_start}; + +use self::lexer::{split_newlines, LexMode, Lexer}; +use self::parser::{reparse_block, reparse_markup};