Skip to content

Commit

Permalink
Add support for Org
Browse files Browse the repository at this point in the history
  • Loading branch information
me-johnomar authored and valentjn committed Apr 18, 2021
1 parent 7e21afd commit 6de025a
Show file tree
Hide file tree
Showing 11 changed files with 1,172 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
- `ltex.hideFalsePositives``_ltex.hideFalsePositives`
- `ltex.checkDocument``_ltex.checkDocument`
- `ltex.getServerStatus``_ltex.getServerStatus`
- Add support for Org; use the code language ID `org` (fixes [vscode-ltex#277](https://github.com/valentjn/vscode-ltex/issues/277))
- Add basic support for reStructuredText; use the code language ID `restructuredtext` (fixes [vscode-ltex#32](https://github.com/valentjn/vscode-ltex/issues/32))
- Add `--server-type=tcpSocket` option to communicate over a TCP socket
- Add `--host` and `--port` options to control host and port of the TCP socket
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Find more information about LT<sub>E</sub>X at the [website of vscode-ltex](http

## Features

- **Supported markup languages:** L<sup>A</sup>T<sub>E</sub>X, Markdown, reStructuredText, R Sweave
- **Supported markup languages:** L<sup>A</sup>T<sub>E</sub>X, Markdown, Org, reStructuredText, R Sweave
- Comes with **everything included,** no need to install Java or LanguageTool
- **Offline checking:** Does not upload anything to the internet
- Supports **over 20 languages:** English, French, German, Dutch, Chinese, Russian, etc.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.util.function.Function;
import org.bsplines.ltexls.parsing.latex.LatexAnnotatedTextBuilder;
import org.bsplines.ltexls.parsing.markdown.MarkdownAnnotatedTextBuilder;
import org.bsplines.ltexls.parsing.org.OrgAnnotatedTextBuilder;
import org.bsplines.ltexls.parsing.plaintext.PlaintextAnnotatedTextBuilder;
import org.bsplines.ltexls.parsing.restructuredtext.RestructuredtextAnnotatedTextBuilder;
import org.bsplines.ltexls.settings.Settings;
Expand All @@ -30,6 +31,8 @@ public abstract class CodeAnnotatedTextBuilder extends AnnotatedTextBuilder {
new LatexAnnotatedTextBuilder(codeLanguageId));
constructorMap.put("markdown", (String codeLanguageId) ->
new MarkdownAnnotatedTextBuilder(codeLanguageId));
constructorMap.put("org", (String codeLanguageId) ->
new OrgAnnotatedTextBuilder(codeLanguageId));
constructorMap.put("plaintext", (String codeLanguageId) ->
new PlaintextAnnotatedTextBuilder(codeLanguageId));
constructorMap.put("restructuredtext", (String codeLanguageId) ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.bsplines.ltexls.parsing.bibtex.BibtexFragmentizer;
import org.bsplines.ltexls.parsing.latex.LatexFragmentizer;
import org.bsplines.ltexls.parsing.markdown.MarkdownFragmentizer;
import org.bsplines.ltexls.parsing.org.OrgFragmentizer;
import org.bsplines.ltexls.parsing.plaintext.PlaintextFragmentizer;
import org.bsplines.ltexls.parsing.restructuredtext.RestructuredtextFragmentizer;
import org.bsplines.ltexls.settings.Settings;
Expand All @@ -32,6 +33,8 @@ public abstract class CodeFragmentizer {
new LatexFragmentizer(codeLanguageId));
constructorMap.put("markdown", (String codeLanguageId) ->
new MarkdownFragmentizer(codeLanguageId));
constructorMap.put("org", (String codeLanguageId) ->
new OrgFragmentizer(codeLanguageId));
constructorMap.put("plaintext", (String codeLanguageId) ->
new PlaintextFragmentizer(codeLanguageId));
constructorMap.put("restructuredtext", (String codeLanguageId) ->
Expand Down
Loading

0 comments on commit 6de025a

Please sign in to comment.