Skip to content

Commit

Permalink
feat: add identifier extractos for annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
jpedroh committed Sep 13, 2024
1 parent 2ecb58c commit dfc4bb4
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions parsing/src/tree_sitter_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,22 @@ impl From<Language> for ParserConfiguration {
tree_sitter_java::language(),
)),
);

map.insert(
"marker_annotation",
Box::new(TreeSitterQuery::new(
r#"(marker_annotation name: _ @name)"#,
tree_sitter_java::language(),
)),
);

map.insert(
"annotation",
Box::new(TreeSitterQuery::new(
r#"(annotation name: _ @name)"#,
tree_sitter_java::language(),
)),
);
map
},
},
Expand Down

0 comments on commit dfc4bb4

Please sign in to comment.