@@ -1,5 +1,5 @@
11use crate::{Change, Rope, RopeSlice, Transaction};
2−pub use helix_syntax::LANG;
2+pub use helix_syntax::Lang;
33pub use helix_syntax::{get_language, get_language_name};
44
55use std::collections::HashMap;
@@ -21,7 +21,7 @@ pub struct LanguageConfiguration {
2121 //
2222 // root_path
2323 //
24− pub(crate) language_id: LANG,
24+ pub(crate) language_id: Lang,
2525 pub(crate) highlight_config: OnceCell<Option<Arc<HighlightConfiguration>>>,
2626 // tags_config OnceCell<> https://github.com/tree-sitter/tree-sitter/pull/583
2727}
@@ -87,7 +87,7 @@ impl Loader {
8787 LanguageConfiguration {
8888 scope: "source.rust".to_string(),
8989 file_types: vec!["rs".to_string()],
90− language_id: LANG::Rust,
90+ language_id: Lang::Rust,
9191 highlight_config: OnceCell::new(),
9292 //
9393 path: "../helix-syntax/languages/tree-sitter-rust".into(),
@@ -95,7 +95,7 @@ impl Loader {
9595 LanguageConfiguration {
9696 scope: "source.toml".to_string(),
9797 file_types: vec!["toml".to_string()],
98− language_id: LANG::Toml,
98+ language_id: Lang::Toml,
9999 highlight_config: OnceCell::new(),
100100 //
101101 path: "../helix-syntax/languages/tree-sitter-toml".into(),
@@ -160,7 +160,7 @@ pub struct Syntax {
160160impl Syntax {
161161 // buffer, grammar, config, grammars, sync_timeout?
162162 pub fn new(
163− /*language: LANG,*/ source: &Rope,
163+ /*language: Lang,*/ source: &Rope,
164164 config: Arc<HighlightConfiguration>,
165165 ) -> Self {
166166 // fetch grammar for parser based on language string
@@ -779,10 +779,10 @@ impl HighlightConfiguration {
779779 non_local_variable_patterns,
780780 injection_content_capture_index,
781781 injection_language_capture_index,
782+ local_scope_capture_index,
782783 local_def_capture_index,
783784 local_def_value_capture_index,
784785 local_ref_capture_index,
785− local_scope_capture_index,
786786 })
787787 }
788788
@@ -1475,7 +1475,7 @@ fn test_parser() {
14751475 .map(String::from)
14761476 .collect();
14771477
1478− let language = get_language(LANG::Rust);
1478+ let language = get_language(Lang::Rust);
14791479 let mut config = HighlightConfiguration::new(
14801480 language,
14811481 &std::fs::read_to_string(