mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
Simplify a comment
This commit is contained in:
parent
752f7785b1
commit
5d6057bfc3
1 changed files with 1 additions and 10 deletions
|
@ -4,16 +4,7 @@ use parse::ast::Attempting;
|
||||||
use region::{Located, Region};
|
use region::{Located, Region};
|
||||||
use std::{char, u16};
|
use std::{char, u16};
|
||||||
|
|
||||||
// Strategy:
|
/// A position in a source file.
|
||||||
//
|
|
||||||
// 1. Let space parsers check indentation. They should expect indentation to only ever increase (right?) when
|
|
||||||
// doing a many_whitespaces or many1_whitespaces. Multline strings can have separate whitespace parsers.
|
|
||||||
// 2. For any expression that has subexpressions (e.g. ifs, parens, operators) record their indentation levels
|
|
||||||
// by doing .and(position()) followed by .and_then() which says "I can have a declaration inside me as
|
|
||||||
// long as the entire decl is indented more than me."
|
|
||||||
// 3. Make an alternative to RangeStreamOnce where uncons_while barfs on \t (or maybe just do this in whitespaces?)
|
|
||||||
|
|
||||||
/// Struct which represents a position in a source file.
|
|
||||||
#[derive(Debug, Clone, PartialEq)]
|
#[derive(Debug, Clone, PartialEq)]
|
||||||
pub struct State<'a> {
|
pub struct State<'a> {
|
||||||
/// The raw input string.
|
/// The raw input string.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue