Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[display_name = "Git Commit Message"]
#[path = "**/COMMIT_EDITMSG"]
#[path = "**/MERGE_MSG"]
pub fn git_commit_message() {
pub fn git_commit() {
if /#\s*/ {
yield comment;
if /(?:modified:|renamed:).*/ {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[display_name = "Git Rebase Message"]
#[path = "**/git-rebase-todo"]
#[path = "**/rebase-merge/done"]
pub fn git_rebase_todo() {
pub fn git_rebase() {
if /#.*/ {
yield comment;
} else if /(?:break|exec|b|x)\>/ {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#[display_name = "Ignore"]
#[path = "**/.git-blame-ignore-revs"]
#[path = "**/.gitignore"]
pub fn git_ignore() {
pub fn ignore() {
if /#.*/ {
yield comment;
}
Expand Down
4 changes: 3 additions & 1 deletion crates/lsh/src/compiler/generator.rs
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ impl TryFrom<u32> for HighlightKind {{
_ = writeln!(
output,
" Language {{ id: {:?}, name: {:?}, entrypoint: {} }},",
ep.name, ep.display_name, ep.address
ep.name.replace('_', "-"),
ep.display_name,
ep.address,
);
}
output.push_str("];\n");
Expand Down
Loading