Skip to content

Fix file extension conflict between RenderScript and Rust#66

Merged
kezhenxu94 merged 1 commit intoapache:mainfrom
quickwit-inc:guilload--fix-extension-conflict-between-renderscript-and-rust
Sep 8, 2021
Merged

Fix file extension conflict between RenderScript and Rust#66
kezhenxu94 merged 1 commit intoapache:mainfrom
quickwit-inc:guilload--fix-extension-conflict-between-renderscript-and-rust

Conversation

@guilload
Copy link
Contributor

@guilload guilload commented Sep 7, 2021

comment_style_id for Rust was added in #29, but currently, running header fix for Rust files does not work and displays unsupported files: ....

The language configuration file contains two entries for the .rs file extension: RenderScript and Rust. .rs files end up matching RenderScript, which does not have a comment style. Locally, I fixed this for Rust by removing RenderScript from the language configuration file.

However, in this PR, I choose to set the command style for RenderScript to double slash, which is supported by both languages (and actually the preferred style for Rust).

@kezhenxu94 kezhenxu94 added bug Something isn't working feature labels Sep 8, 2021
@kezhenxu94 kezhenxu94 added this to the 0.2.0 milestone Sep 8, 2021
Copy link
Member

@kezhenxu94 kezhenxu94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's interesting, thank you @guilload !

@kezhenxu94 kezhenxu94 merged commit 341837b into apache:main Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants