Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add regex.find_offsets, regex.find, improve regex.match #1232

Merged
merged 1 commit into from
Dec 12, 2022

Conversation

Guldoman
Copy link
Member

regex.match now behaves like string.match.
This required changes in the tokenizer and in the detectindent plugin.

The regexreplacepreview plugin also needs changes.

I have tested the tokenizer changes with utf-8 strings, but more testing is welcome.

`regex.match` now behaves like `string.match`.
This required changes in the `tokenizer` and in the `detectindent` 
plugin.
@jgmdev
Copy link
Member

jgmdev commented Dec 12, 2022

Tested and working nicely, merging...

@jgmdev jgmdev merged commit 9d48441 into lite-xl:master Dec 12, 2022
jgmdev added a commit to jgmdev/lite-xl-plugins that referenced this pull request Dec 14, 2022
jgmdev added a commit to jgmdev/lite-xl-plugins that referenced this pull request Dec 14, 2022
jgmdev added a commit to jgmdev/lite-xl-plugins that referenced this pull request Dec 25, 2022
jgmdev added a commit to lite-xl/lite-xl-plugins that referenced this pull request Dec 25, 2022
* properly ignore comments on declarations
* strip newlines when insert_final_newline set to false
* force match up to the end
* support unset property
* make property values case insensitive
* handle indent_size when set to tab
* handle escaped comment chars
* also lowercase property names
* support utf-8 as on spec
* apply rules to unsaved unamed/named docs
* annotation fix
* added test suite and fixes for 100% pass rate
* do not force match from start, breaks 2 tests
* allow starting wild cards to match everything
* disabled print buffering
* make last line visible if insert_final_newline true
* use log_quiet for debug
* adapted to changes on lite-xl/lite-xl#1232
* properly return from add/remove_project_directory overrides
* Use new trimwhitespace functionality if possible
jgmdev added a commit to jgmdev/lite-xl-plugins that referenced this pull request Jan 19, 2023
jgmdev added a commit to lite-xl/lite-xl-plugins that referenced this pull request Jan 19, 2023
* added search_ui
* support treeview find in directory
* added support for lua pattern replace
* use new widgets animation system and other fixes
* clear results when changing options
* adapted to changes on lite-xl/lite-xl#1232
* added bottom layout and made it default
* added option to position on top
* updated to use new widgets path
* added search_ui to manifest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants