Add file_extensions to Sublime syntax file (#878)

This commit is contained in:
Frederick Zhang
2021-06-24 18:24:12 +10:00
committed by GitHub
parent 8557a6c6b3
commit 9dc2385c64
6 changed files with 27 additions and 0 deletions

View File

@@ -14,3 +14,4 @@ pub(crate) use just::unindent;
pub(crate) use libc::{EXIT_FAILURE, EXIT_SUCCESS};
pub(crate) use test_utilities::{assert_stdout, tempdir, tmptree};
pub(crate) use which::which;
pub(crate) use yaml_rust::YamlLoader;

View File

@@ -26,4 +26,5 @@ mod search;
mod shebang;
mod shell;
mod string;
mod sublime_syntax;
mod working_directory;

7
tests/sublime_syntax.rs Normal file
View File

@@ -0,0 +1,7 @@
use crate::common::*;
#[test]
fn parse() {
let yaml = fs::read_to_string("extras/just.sublime-syntax").unwrap();
YamlLoader::load_from_str(&yaml).unwrap();
}