Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
viperML committed Aug 22, 2024
1 parent e26cc5e commit 00c951d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
7 changes: 0 additions & 7 deletions neohome-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@ extern crate napi_derive;
use tree_sitter_dynamic::{DynTS, STANDARD_CAPTURE_NAMES};
use tree_sitter_highlight::{Highlight, HighlightEvent};

#[napi]
pub fn sum(a: i32, b: i32) -> i32 {
a + b
}


#[napi]
pub fn highlight(text: String, lang: String) -> Option<String> {
let mut lang = DynTS::new(lang, STANDARD_CAPTURE_NAMES).ok()?;
Expand Down Expand Up @@ -45,7 +39,6 @@ pub fn highlight(text: String, lang: String) -> Option<String> {
res.extend("</code>".as_bytes());

let res = String::from_utf8(res).ok()?;
// let encoded = html_escape::encode_text(&res_text).to_string();

Some(res)
}
9 changes: 0 additions & 9 deletions src/styles/tree-sitter.less
Original file line number Diff line number Diff line change
Expand Up @@ -115,15 +115,6 @@
color: @bright_red;
}

// Black: 30.
// Red: 31.
// Green: 32.
// Yellow: 33.
// Blue: 34.
// Magenta: 35.
// Cyan: 36.
// White: 37.

& .ts-operator {
color: @bright_magenta;
}
Expand Down

0 comments on commit 00c951d

Please sign in to comment.