Comments (6)
/[^\x00-\x7f]
from neovim.
No, What I meant is that the given regex matches the characters when it shouldn't.
from neovim.
Why not?
from neovim.
/[^\x00-\]
is not a valid regex
from neovim.
It is. See :h /\]
:
*/\]*
- To include a literal ']', '^', '-' or '\' in the collection, put a
backslash before it: "[xyz\]]", "[\^xyz]", "[xy\-z]" and "[xyz\\]".
(Note: POSIX does not support the use of a backslash this way). For
']' you can also make it the first character (following a possible
"^"): "[]xyz]" or "[^]xyz]".
For '-' you can also make it the first or last character: "[-xyz]",
"[^-xyz]" or "[xyz-]". For '\' you can also let it be followed by
any character that's not in "^]-\bdertnoUux". "[\xyz]" matches '\',
'x', 'y' and 'z'. It's better to use "\\" though, future expansions
may use other characters after '\'.
- Omitting the trailing ] is not considered an error. "[]" works like
"[]]", it matches the ']' character.
from neovim.
(PSA: Vim regex is not PCRE; it is its own flavor.)
from neovim.
Related Issues (20)
- terminal COLUMNS/LINES not respected at startup, shows a small window (foot terminal) HOT 3
- nvim_set_hl does not work in (v0.9.4 / macOS v14.4.1) HOT 2
- glibc 2.29 not found error in v0.10.0+ HOT 1
- Conceal characters on cursor line except at cursor position HOT 2
- Please bring back `diff` in nvim windows binary HOT 3
- Neovim(nvim) doesn't resize to full terminal width upon opening HOT 3
- :Man softwrap (vim.g.man_hardwrap = 0) breaks table formatting HOT 1
- LSP client should be able to handle snippets that use $0 as a tabstop HOT 6
- `vim._with()` does not properly restore global-local options HOT 3
- signcolumn="yes" + cursorline results in line being visually indented backwards when going from unindented line to indented line HOT 2
- "autocmd BufRead" not working when "nvim a.lua" HOT 3
- Swapfile message (E325) doesn't use the default colorscheme HOT 1
- Incomplete Documentation for `vim.diagnostic.open_float` Options HOT 3
- Which plugins use :UpdateRemotePlugins ? HOT 5
- Cmake parser code is bad HOT 8
- Online doc strange highlights and offset display HOT 1
- Don't send "no information available" on `vim.lsp.buf.hover` if at least one attached server has information HOT 1
- Nightly release tsserver omnifunc doesn't complete partial identifier
- Nightly release: tsserver wrong autoimports with multiline imports HOT 5
- Built-in LSP completion not filtering on label HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neovim.