Skip to content

Commit

Permalink
Consider Elixir sigils as atom nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
crbelaus committed Nov 18, 2024
1 parent 8b6a96e commit 1dfae2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/parse/tree_sitter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ pub(crate) fn from_language(language: guess::Language) -> TreeSitterConfig {
let language = unsafe { tree_sitter_elixir() };
TreeSitterConfig {
language,
atom_nodes: vec!["string", "heredoc"].into_iter().collect(),
atom_nodes: vec!["string", "sigil", "heredoc"].into_iter().collect(),
delimiter_tokens: vec![("(", ")"), ("{", "}"), ("do", "end")]
.into_iter()
.collect(),
Expand Down

0 comments on commit 1dfae2b

Please sign in to comment.