Skip to content

Commit

Permalink
fix: editor words pattern extended, zoom and focus work correctly (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
roshan-gh committed Oct 12, 2023
1 parent 65aade4 commit 1d013b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contexts/EditorContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const EditorProvider = ({ children }: { children: ReactNode }) => {

monacoRef.current = monaco;
monacoRef?.current?.languages.setLanguageConfiguration("yaml", {
wordPattern: /\w+\/\w+|\w+/,
wordPattern: /\w+\/[\w_]+(?:-[\w_]+)*|\w+/,
});

const createData: MonacoYamlOptions = {
Expand Down

0 comments on commit 1d013b8

Please sign in to comment.