diff --git a/.github/workflows/build-debug-harper-ls.yml b/.github/workflows/build-debug-harper-ls.yml new file mode 100644 index 00000000..e0362782 --- /dev/null +++ b/.github/workflows/build-debug-harper-ls.yml @@ -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 diff --git a/harper-comments/src/comment_parser.rs b/harper-comments/src/comment_parser.rs index f7f58d3e..54536862 100644 --- a/harper-comments/src/comment_parser.rs +++ b/harper-comments/src/comment_parser.rs @@ -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, }; @@ -82,8 +82,8 @@ impl CommentParser { "cs" => "csharp", "toml" => "toml", "lua" => "lua", - "sh" => "sh", - "bash" => "sh", + "sh" => "shellscript", + "bash" => "shellscript", "java" => "java", _ => return None, }) diff --git a/harper-ls/src/backend.rs b/harper-ls/src/backend.rs index 45c81bdb..b29d082f 100644 --- a/harper-ls/src/backend.rs +++ b/harper-ls/src/backend.rs @@ -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