mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-02 19:32:17 +00:00
Fix parsing of tuple accessors after an identifier - e.g. myIdent.2
This commit is contained in:
parent
53b1525139
commit
31a4eb2bfd
8 changed files with 150 additions and 59 deletions
|
@ -15,7 +15,7 @@ use roc_load::docs::{ModuleDocumentation, RecordField};
|
|||
use roc_load::{ExecutionMode, LoadConfig, LoadedModule, LoadingProblem, Threading};
|
||||
use roc_module::symbol::{Interns, Symbol};
|
||||
use roc_packaging::cache::{self, RocCacheDir};
|
||||
use roc_parse::ident::{parse_ident, Ident};
|
||||
use roc_parse::ident::{parse_ident, Accessor, Ident};
|
||||
use roc_parse::state::State;
|
||||
use roc_region::all::Region;
|
||||
use std::fs;
|
||||
|
@ -816,7 +816,7 @@ fn markdown_to_html(
|
|||
let mut iter = parts.iter();
|
||||
|
||||
match iter.next() {
|
||||
Some(symbol_name) if iter.next().is_none() => {
|
||||
Some(Accessor::RecordField(symbol_name)) if iter.next().is_none() => {
|
||||
let DocUrl { url, title } = doc_url(
|
||||
all_exposed_symbols,
|
||||
scope,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue