Skip to content

Commit 2e42254

Browse files
committed
Add: Support for Loci files.
1 parent bb132a1 commit 2e42254

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ Changelog
3232
* Prevent editing the `<span>` that wraps math expressions.
3333
* Automatically re-sync Client with IDE when out of sync.
3434
* Update to latest release of MathJax.
35+
* Add support for [Loci](https://github.com/EdwardALuke/loci) files.
3536

3637
Version 0.1.46 -- 2025-Dec-15
3738
--------------------------------------------------------------------------------

server/src/lexer/supported_languages.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ pub fn get_language_lexer_vec() -> Vec<LanguageLexer> {
155155
// [Pest grammars](https://docs.rs/pest/latest/pest/#grammar).
156156
// TODO: Pest doesn't support line continuations and allows
157157
// multiline strings, so this is a inaccurate.
158-
&["c", "cc", "cpp", "h", "hh", "hpp", "ino", "pest"],
158+
// * The .`loci` extension is for
159+
// [Loci](https://github.com/EdwardALuke/loci) files.
160+
&["c", "cc", "cpp", "h", "hh", "hpp", "ino", "pest", "loci"],
159161
&["//"],
160162
&[make_block_comment_delim("/*", "*/", false)],
161163
&[make_string_delimiter_spec(

0 commit comments

Comments
 (0)