Skip to content

Commit

Permalink
build-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
mcecode committed Oct 28, 2024
1 parent 26c0a84 commit aa70a1b
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 5 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-debug-harper-ls.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build Debug

on:
push:
branches: ["build-debug-harper-ls"]

jobs:
build:
name: Build
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
targets: x86_64-unknown-linux-gnu
- name: Build
run: cargo +stable build --locked --profile dev --bin harper-ls --target x86_64-unknown-linux-gnu
- name: Archive
run: |
cd target/x86_64-unknown-linux-gnu/debug
tar -czf ../../../harper-ls.tar.gz harper-ls
cd -
- name: Upload
uses: actions/upload-artifact@v4
with:
name: debug-build
path: harper-ls.tar.gz
6 changes: 3 additions & 3 deletions harper-comments/src/comment_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl CommentParser {
"csharp" => tree_sitter_c_sharp::language(),
"toml" => tree_sitter_toml::language(),
"lua" => tree_sitter_lua::language(),
"sh" => tree_sitter_bash::language(),
"shellscript" => tree_sitter_bash::language(),
"java" => tree_sitter_java::language(),
_ => return None,
};
Expand Down Expand Up @@ -82,8 +82,8 @@ impl CommentParser {
"cs" => "csharp",
"toml" => "toml",
"lua" => "lua",
"sh" => "sh",
"bash" => "sh",
"sh" => "shellscript",
"bash" => "shellscript",
"java" => "java",
_ => return None,
})
Expand Down
4 changes: 2 additions & 2 deletions harper-ls/src/backend.rs
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,11 @@ impl Backend {
}
} else if language_id == "markdown" {
Some(Box::new(Markdown))
} else if language_id == "gitcommit" {
} else if language_id == "git-commit" {
Some(Box::new(GitCommitParser))
} else if language_id == "html" {
Some(Box::new(HtmlParser::default()))
} else if language_id == "mail" {
} else if language_id == "mail" || language_id == "plaintext" {
Some(Box::new(PlainEnglish))
} else {
None
Expand Down

0 comments on commit aa70a1b

Please sign in to comment.