Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
RohanVashisht1234 committed Sep 9, 2024
1 parent 753ddae commit eb81243
Show file tree
Hide file tree
Showing 21 changed files with 21 additions and 21 deletions.
6 changes: 3 additions & 3 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { highlight, highlightElements, highlightElement } from "./main.mjs";
export { bash } from "./language/bash";
export { zig } from "./language/zig";
export { diff } from "./language/diff";
export { bash } from "./language/bash.mjs";
export { zig } from "./language/zig.mjs";
export { diff } from "./language/diff.mjs";
6 changes: 3 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { highlight, highlightElements, highlightElement } from "./main.mjs";
export { bash } from "./language/bash";
export { zig } from "./language/zig";
export { diff } from "./language/diff";
export { bash } from "./language/bash.mjs";
export { zig } from "./language/zig.mjs";
export { diff } from "./language/diff.mjs";
2 changes: 2 additions & 0 deletions dist/language/bash.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { LanguagePattern } from "../types/types.mjs";
export declare const bash: LanguagePattern[];
2 changes: 0 additions & 2 deletions dist/language/bash.d.ts

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions dist/language/diff.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { LanguagePattern } from "../types/types.mjs";
export declare const diff: LanguagePattern[];
2 changes: 0 additions & 2 deletions dist/language/diff.d.ts

This file was deleted.

File renamed without changes.
2 changes: 2 additions & 0 deletions dist/language/zig.d.mts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import { LanguagePattern } from "../types/types.mjs";
export declare const zig: LanguagePattern[];
2 changes: 0 additions & 2 deletions dist/language/zig.d.ts

This file was deleted.

File renamed without changes.
2 changes: 1 addition & 1 deletion dist/main.d.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePattern } from "./types/types";
import { LanguagePattern } from "./types/types.mjs";
export declare function highlight(language: LanguagePattern[], content: string): string;
export declare function highlightElements(language: LanguagePattern[], className: string): void;
export declare function highlightElement(language: LanguagePattern[], id: string): void;
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "zilite",
"version": "0.0.289",
"version": "0.0.291",
"description": "An easy-to-use syntax highlighter for the web.",
"author": {
"name": "Rohan Vashisht",
Expand Down
6 changes: 3 additions & 3 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { highlight, highlightElements, highlightElement } from "./main.mjs"
export { bash } from "./language/bash"
export { zig } from "./language/zig"
export { diff } from "./language/diff"
export { bash } from "./language/bash.mjs"
export { zig } from "./language/zig.mjs"
export { diff } from "./language/diff.mjs"
2 changes: 1 addition & 1 deletion src/language/bash.ts → src/language/bash.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePattern } from "../types/types";
import { LanguagePattern } from "../types/types.mjs";

export const bash:LanguagePattern[] = [
{ regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' },
Expand Down
2 changes: 1 addition & 1 deletion src/language/diff.ts → src/language/diff.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePattern } from "../types/types";
import { LanguagePattern } from "../types/types.mjs";

export const diff:LanguagePattern[] = [
{ regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' },
Expand Down
2 changes: 1 addition & 1 deletion src/language/zig.ts → src/language/zig.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePattern } from "../types/types";
import { LanguagePattern } from "../types/types.mjs";

export const zig:LanguagePattern[] = [
{ regex: /"(?:[^"\\]|\\.)*"/g, className: 'string' },
Expand Down
2 changes: 1 addition & 1 deletion src/main.mts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { LanguagePattern } from "./types/types";
import { LanguagePattern } from "./types/types.mjs";

export function highlight(language: LanguagePattern[], content: string) {
content = content.replace(/ /g, "±±§§±±§§")
Expand Down
File renamed without changes.

0 comments on commit eb81243

Please sign in to comment.