Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions crates/lsh/definitions/cpp.lsh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#[path = "**/*.cxx"]
#[path = "**/*.hpp"]
#[path = "**/*.h"]
#[path = "**/*.hh"]
#[path = "**/*.hxx"]
#[path = "**/*.ixx"]
pub fn cpp() {
until /$/ {
yield other;
Expand Down
1 change: 1 addition & 0 deletions crates/lsh/definitions/fsharp.lsh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#[path = "**/*.fs"]
#[path = "**/*.fsi"]
#[path = "**/*.fsx"]
#[path = "**/*.fsscript"]
pub fn fsharp() {
// Compiler and script directives always occupy the entire line.
if /\s*#(?:if|else|endif|light|line|load|nowarn|time|help|quit|r|I)\>.*/ {
Expand Down
2 changes: 2 additions & 0 deletions crates/lsh/definitions/json.lsh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#[display_name = "JSON"]
#[path = "**/*.json"]
#[path = "**/*.jsonc"]
#[path = "**/*.jsonl"]
#[path = "**/*.ndjson"]
pub fn json() {
until /$/ {
yield other;
Expand Down
1 change: 1 addition & 0 deletions crates/lsh/definitions/markdown.lsh

@nos1dot618 Lakshay Chauhan (nos1dot618) Aug 28, 2026

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not related: This is missing highlighting support for multiple languages in fenced code block.
Not sure, whether this is relevant for this PR or not.

Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#[display_name = "Markdown"]
#[path = "**/*.md"]
#[path = "**/*.markdown"]
pub fn markdown() {
// Any lines that start with a tab or 4+ spaces are code blocks.
if /(?:\t| ).*/ {
Expand Down
2 changes: 1 addition & 1 deletion crates/lsh/definitions/xml.lsh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#[path = "**/*.vcxproj"]
#[path = "**/*.xaml"]
#[path = "**/*.xml"]
#[path = "**/*.xml"]
#[path = "**/*.xhtml"]
pub fn xml() {
until /$/ {
yield other;
Expand Down