Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Proost
Manage
Activity
Members
Labels
Plan
Issues
33
Issue boards
Milestones
Code
Merge requests
18
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loutr
Proost
Merge requests
!36
Resolve "Better Error Locations"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Resolve "Better Error Locations"
38-error-locations
into
main
Overview
17
Commits
18
Pipelines
35
Changes
28
Merged
loutr
requested to merge
38-error-locations
into
main
2 years ago
Overview
17
Commits
18
Pipelines
35
Changes
3
Expand
Closes
#38 (closed)
Edited
2 years ago
by
v-lafeychine
👍
0
👎
0
Merge request reports
Viewing commit
e4fbc585
Prev
Next
Show latest version
3 files
+
15
−
7
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
Verified
e4fbc585
feat(loc): Specify localisation for Command::Import
· e4fbc585
v-lafeychine
authored
2 years ago
parser/src/command/mod.rs
+
2
−
2
Options
@@ -29,7 +29,7 @@ pub enum Command<'build> {
Eval
(
Builder
<
'build
>
),
/// Import a (series of) file(s).
Import
(
Vec
<&
'build
str
>
),
Import
(
Vec
<
(
Location
,
&
'build
str
)
>
),
/// Search for a variable
Search
(
&
'build
str
),
@@ -57,7 +57,7 @@ impl<'build> fmt::Display for Command<'build> {
Import
(
ref
files
)
=>
{
write!
(
f
,
"imports"
)
?
;
files
.iter
()
.try_for_each
(|
file
|
write!
(
f
,
" {file}"
))
files
.iter
()
.try_for_each
(|
(
_
,
file
)
|
write!
(
f
,
" {file}"
))
},
Search
(
name
)
=>
write!
(
f
,
"search {name}"
),
Loading