Skip to content

Fix span of multibyte short flags#8866

Merged
sholderbach merged 2 commits intonushell:mainfrom
sholderbach:fixup-8849
Apr 14, 2023
Merged

Fix span of multibyte short flags#8866
sholderbach merged 2 commits intonushell:mainfrom
sholderbach:fixup-8849

Conversation

@sholderbach
Copy link
Copy Markdown
Member

Description

Follow up to #8849

Work for #8821
Should unblock work on #8808

Missing is a restriction to printables or identifiers according to UAX31

User-Facing Changes

Non ASCII characters should be allowed in shortflags.

Tests + Formatting

Want to add some tests for the error reporting cases

@sholderbach sholderbach marked this pull request as ready for review April 13, 2023 18:18
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 14, 2023

Codecov Report

Merging #8866 (1e76503) into main (8efbb48) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #8866      +/-   ##
==========================================
- Coverage   68.50%   68.49%   -0.01%     
==========================================
  Files         635      635              
  Lines      101520   101520              
==========================================
- Hits        69545    69536       -9     
- Misses      31975    31984       +9     
Impacted Files Coverage Δ
crates/nu-parser/src/parser.rs 85.35% <100.00%> (-0.03%) ⬇️

... and 2 files with indirect coverage changes

@sholderbach sholderbach merged commit 6cedc05 into nushell:main Apr 14, 2023
sholderbach added a commit to MariaSolOs/nushell that referenced this pull request Apr 14, 2023
- Include the span fixes from nushell#8866
- Include the `break;` back in
- Remove unnecessary clone
bobhy pushed a commit to bobhy/nushell that referenced this pull request Apr 15, 2023
# Description

Follow up to nushell#8849

Work for nushell#8821
Should unblock work on nushell#8808

Missing is a restriction to printables or identifiers according to
[UAX31](https://www.unicode.org/reports/tr31/)

# User-Facing Changes

Non ASCII characters should be allowed in shortflags.

# Tests + Formatting

Want to add some tests for the error reporting cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant