aboutsummaryrefslogtreecommitdiff
path: root/helix-core
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-11-09 01:57:08 +0000
committerBlaž Hrastnik2021-11-09 01:57:08 +0000
commitf804ed3192600fcfd704f3613edde37bbba26050 (patch)
treef6118c6be616ee1d153581966c4a951084b50766 /helix-core
parent41fc3263256615219d2930398817b961d9a54512 (diff)
Make shebangs optional, they don't make sense outside of scripts
Diffstat (limited to 'helix-core')
-rw-r--r--helix-core/src/syntax.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/helix-core/src/syntax.rs b/helix-core/src/syntax.rs
index 0164092d..a5dd0c59 100644
--- a/helix-core/src/syntax.rs
+++ b/helix-core/src/syntax.rs
@@ -52,7 +52,8 @@ pub struct LanguageConfiguration {
pub language_id: String,
pub scope: String, // source.rust
pub file_types: Vec<String>, // filename ends_with? <Gemfile, rb, etc>
- pub shebangs: Vec<String>, // interpreter(s) associated with language
+ #[serde(default)]
+ pub shebangs: Vec<String>, // interpreter(s) associated with language
pub roots: Vec<String>, // these indicate project roots <.git, Cargo.toml>
pub comment_token: Option<String>,