Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
FIameCaster committed Dec 21, 2023
1 parent 64ce862 commit a32a74a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "prism-code-editor",
"version": "2.2.4",
"version": "2.3.0",
"type": "module",
"description": "Lightweight, extensible code editor component for the web using Prism",
"main": "./dist/index.js",
Expand Down
4 changes: 2 additions & 2 deletions package/src/testsite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ webComponent.addEventListener("ready", () => {
})
editor2.addExtensions(
highlightCurrentWord(
start => !getClosestToken(editor2, ".string, .comment, .keyword, .regex", 0, 0, start)
)
start => !getClosestToken(editor2, ".string, .comment, .keyword, .regex", 0, 0, start),
),
)
})

Expand Down
2 changes: 1 addition & 1 deletion package/src/tooltips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type ShowTooltip = (preferPlacingAboveCursor?: boolean) => void
export type HideTooltip = () => void

/**
* Utility making it easy to add tolltips to an editor. Before you can show the tooltip,
* Utility making it easy to add tooltips to an editor. Before you can show the tooltip,
* a {@link cursorPosition} extension must be added to the editor.
* @param editor Editor you want to add the tooltip to.
* @param element Element for the tooltip.
Expand Down
2 changes: 1 addition & 1 deletion package/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export interface PrismEditor extends EventHandler<EditorEventMap> {
* @param options New options for the editor
*/
setOptions(options: Partial<EditorOptions>): void
/** Forces the editor to update. Might be necessary after adding a tokenize listener. */
/** Forces the editor to update. Can be useful after adding a tokenize listener or modifying a grammar. */
update(): void
/** Gets `selectionStart`, `selectionEnd` and `selectionDirection` for the `textarea`. */
getSelection(): InputSelection
Expand Down

0 comments on commit a32a74a

Please sign in to comment.