Open wesinator opened 5 years ago
Thanks for the report - though I can reproduce with 1.34.0 on macOS 10.12.6, I believe this will always be the case if a file starts with ---
. E.g. if you create a file that's just:
---hello world
That will also open as a YAML file.
The workarounds are either to manually use Grammar Selector: Show
to switch to plain text, or you can specifically tell Atom what to do with .asc files:
I.e. you can add this to your config.cson
file in the core
section:
customFileTypes:
"text.plain": [
"asc"
]
Yea, that makes sense.
Personally, I'm not a big fan of autodetection this way. Philosophically I'd rather it not try to guess on the content.
:+1:
I'm assuming that this autodetection isn't something the team would change at this point but I'll double check for you before closing this out.
Prerequisites
Description
.asc
ascii armor PGP key files are unexpectedly highlighted as YAML.Steps to Reproduce
Expected behavior: not highlighted
Actual behavior: Highlighting is set to YAML
Reproduces how often: Always
Versions
Repro'ed on macOS and Ubuntu