1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
* rust-intelligence — Ultra-fast, zero-memory code intelligence for Rust
* Copyright (c) 2026 Alexander Panasenko
*
* Contact: alex@prod.codes
* Author: https://prod.codes/about/
* Project: https://github.com/alex09x/rust-intelligence
* SPDX-License-Identifier: MIT OR Apache-2.0
*/
//! Zero-dependency, lossless Rust lexer and CST foundation (`ridx-syntax`).
//!
//! Guarantees for [`lex`]:
//! - Lossless round-trip: concatenating `&src[t.start as usize..t.end as usize]` across
//! all returned tokens reproduces `src` byte-for-byte on arbitrary UTF-8 input.
//! - Panic-free and infallible: malformed or truncated overlay code (unclosed strings,
//! raw strings, block comments, char literals, invalid escapes, stray bytes) produces
//! tokens marked with [`HAS_ERROR`] rather than failing.
//! - Context-free atomic punctuation: multi-character operators are represented as
//! single-character punctuation tokens with [`JOINT_NEXT`] set when adjacent with no
//! intervening trivia.
pub use lex;
pub use ;
pub use SyntaxKind;
pub use ;
pub use ;