diff options
| author | Laurenz <laurmaedje@gmail.com> | 2020-07-29 18:09:51 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2020-07-29 18:09:51 +0200 |
| commit | bbcdeb128cce04cd95714b7bc7af5a23a7e38bd2 (patch) | |
| tree | e0a1620d335982669cd7671cbd71df46d100e9ea /src/syntax/mod.rs | |
| parent | f34ba3dcda182d9b9c14cc94fdb48810bf18bef0 (diff) | |
Move, rename and switch some things (boring) 🚚
- Problems -> Diagnostics
- Position -> Pos
- offset_spans -> Offset trait
- Size -> Length (and some more size types renamed)
- Paper into its own module
- scope::Parser -> parsing::CallParser
- Create `Decorations` alias
- Remove lots of double newlines
- Switch from f32 to f64
Diffstat (limited to 'src/syntax/mod.rs')
| -rw-r--r-- | src/syntax/mod.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/syntax/mod.rs b/src/syntax/mod.rs index f7321c77..b67d8cd7 100644 --- a/src/syntax/mod.rs +++ b/src/syntax/mod.rs @@ -20,7 +20,6 @@ pub_use_mod!(scope); pub_use_mod!(parsing); pub_use_mod!(tokens); - /// Represents a parsed piece of source that can be layouted and in the future /// also be queried for information used for refactorings, autocomplete, etc. #[async_trait(?Send)] @@ -94,6 +93,9 @@ impl PartialEq for Node { } } +/// A list of spanned decorations. +pub type Decorations = SpanVec<Decoration>; + /// Decorations for semantic syntax highlighting. #[derive(Debug, Copy, Clone, Eq, PartialEq, Hash, Serialize)] #[serde(rename_all = "camelCase")] @@ -110,7 +112,6 @@ pub enum Decoration { /// ^^^^^^ /// ``` InvalidFuncName, - /// A key of a keyword argument: /// ```typst /// [box: width=5cm] @@ -123,7 +124,6 @@ pub enum Decoration { /// ^^^^ ^^^^^ /// ``` ObjectKey, - /// An italic word. Italic, /// A bold word. |
