From 0b58f6d6cc00ac2169ecb26388884db471a6739e Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 9 Jul 2016 17:07:25 -0400 Subject: Highlight numbers with underscores in NASM --- .config/nvim/syntax/nasm.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to '.config/nvim/syntax') diff --git a/.config/nvim/syntax/nasm.vim b/.config/nvim/syntax/nasm.vim index a6ed0566..1612d3ba 100644 --- a/.config/nvim/syntax/nasm.vim +++ b/.config/nvim/syntax/nasm.vim @@ -79,15 +79,15 @@ syn match nasmLabelError "\<\~\s*\(\k*\s*:\|\$\=\.\k*\)" " Constants: syn match nasmStringError +["']+ syn match nasmString +\("[^"]\{-}"\|'[^']\{-}'\)+ -syn match nasmBinNumber "\<[0-1]\+b\>" -syn match nasmBinNumber "\<\~[0-1]\+b\>"lc=1 -syn match nasmOctNumber "\<\o\+q\>" -syn match nasmOctNumber "\<\~\o\+q\>"lc=1 -syn match nasmDecNumber "\<\d\+\>" -syn match nasmDecNumber "\<\~\d\+\>"lc=1 -syn match nasmHexNumber "\<\(\d\x*h\|0x\x\+\|\$\d\x*\)\>" -syn match nasmHexNumber "\<\~\(\d\x*h\|0x\x\+\|\$\d\x*\)\>"lc=1 -syn match nasmFltNumber "\<\d\+\.\d*\(e[+-]\=\d\+\)\=\>" +syn match nasmBinNumber "\<[0-1_]\+b\>" +syn match nasmBinNumber "\<\~[0-1_]\+b\>"lc=1 +syn match nasmOctNumber "\<\(\o\|_\)\+q\>" +syn match nasmOctNumber "\<\~\(\o\|_\)\+q\>"lc=1 +syn match nasmDecNumber "\<\(\d\|_\)\+\>" +syn match nasmDecNumber "\<\~\(\d\|_\)\+\>"lc=1 +syn match nasmHexNumber "\<\(\d\(\x\|_\)*h\|0x\(\x\|_\)\+\|\$\d\(\x\|_\)*\)\>" +syn match nasmHexNumber "\<\~\(\d\(\x\|_\)*h\|0x\(\x\|_\)\+\|\$\d\(\x\|_\)*\)\>"lc=1 +syn match nasmFltNumber "\<\(\d\|_\)\+\.\(\d\|_\)*\(e[+-]\=\d\+\)\=\>" syn keyword nasmFltNumber Inf Infinity Indefinite NaN SNaN QNaN syn match nasmNumberError "\<\~\s*\d\+\.\d*\(e[+-]\=\d\+\)\=\>" -- cgit 1.4.1 dden' name='id' value='fc56a9f8d70579393e66a22a7df15fba2d78c154'/>
path: root/catgirl.1 (unfollow)
Commit message (Collapse)Author
2022-03-12Add edit option to set line editing modeJune McEnroe
I'm not super happy with the guessing based on .editrc or .inputrc because I'm not parsing the files for real, but it's a conservative guess and should do the right thing in most cases.
2022-03-12Reset to vi insert mode on enterJune McEnroe
2022-03-12Implement basic esc/i mode switchingJune McEnroe
2022-03-12Separate emacs key bindingsJune McEnroe
2022-03-09Always refresh the screen with ^LChristian Kellermann
This patch adds an explicit wrefresh call. Under some conditions just flagging the window for redraw does not trigger a redraw and the user has no other means to force redrawing of a window. Without this patch resizing the window would sometimes result in an empty chat window with no way to redraw it. Tested under uxterm and st on OpenBSD.
2022-03-05Update STANDARDS section authors, titles and URLsJune McEnroe
2022-03-02Show own nick on /nick without paramsJune McEnroe
2022-02-26Specify commands which depend on capsJune McEnroe
Currently only /setname.
2022-02-26Only add available commands to completeJune McEnroe
2022-02-26Factor out commandAvailableJune McEnroe
2022-02-23Give examples of "general events" 2.1June McEnroe
2022-02-23Add missing unistd.h include in input.cJune McEnroe
2022-02-22Document the interfaceJune McEnroe
2022-02-20Clean up unimplemented editing mode stuffJune McEnroe
2022-02-20Save input buffer contentsJune McEnroe
2022-02-20Share a cut buffer between all edit buffersJune McEnroe
2022-02-20Assert return values in edit testsJune McEnroe
2022-02-20Move mbs out of struct Edit, use a global bufferJune McEnroe
This saves 4K in the edit buffers, not to mention all the heap allocations for the separate mbs buffers! There might be a way to be more clever about capacities, but I don't think it's worth it.
2022-02-20Clear edit buffer before running commandJune McEnroe
Otherwise a command that switches windows will update the status line while the edit buffer still has input "pending", showing an indicator.
2022-02-20Show indicator in status when window has pending inputJune McEnroe
2022-02-20Use separate edit buffers for each IDJune McEnroe
2022-02-20Make sure new cap is actually larger than new lengthJune McEnroe
2022-02-20Remove unused mbs.len field from struct EditJune McEnroe
2022-02-19Remove unneeded includes in ui.cJune McEnroe
2022-02-19Reimplement tab completeJune McEnroe
2022-02-19Handle errors from editFn, etc.June McEnroe
2022-02-19Reimplement text macrosJune McEnroe
2022-02-19Factor out input handling to input.cJune McEnroe
2022-02-19Factor out window management to window.cJune McEnroe
2022-02-19Enable -Wmissing-prototypesJune McEnroe
In other words, warn when a function is missing static. I don't see why this isn't in -Wextra.
2022-02-19Fix edit.[ch] license notice additional permissionsJune McEnroe
2022-02-19Run line editing testsJune McEnroe
I know, it feels wrong.
2022-02-18Implement new line editing "library"June McEnroe
Losing tab complete and text macros, for now. This new implementation works on an instance of a struct and does not interact with the rest of catgirl, making it possible to copy into another project. Unlike existing line editing libraries, this one is entirely abstract and can be rendered externally. My goal with this library is to be able to implement vi mode. Since it operates on struct instances rather than globals, it might also be possible to give catgirl separate line editing buffers for each window, which would be a nice UX improvement.
2022-02-18Simplify cursor positioning in inputJune McEnroe
Do some extra work by adding the portion before the cursor to the input window twice, but simplify the interaction with the split point. This fixes the awkward behaviour when moving the cursor across colour codes where the code would be partially interpreted up to the cursor.
2022-02-18Fix M-f orderingJune McEnroe
2022-02-12Move sandman build to scripts/MakefileJune McEnroe
2022-02-12Use compat_readpassphrase.c on LinuxJune McEnroe
2022-02-12Copy RPP defines from oconfigureJune McEnroe