Mercurial > vim
view runtime/syntax/testdir/dumps/vim_ex_commands_01.dump @ 34466:315c0d987fd2
runtime(java): Improve the recognition of literals (#14120)
Commit: https://github.com/vim/vim/commit/100a665634a0a2edbc755daf453c4915800684dd
Author: Aliaksei Budavei <32549825+zzzyxwvut@users.noreply.github.com>
Date: Sat Mar 2 01:11:14 2024 +0300
runtime(java): Improve the recognition of literals (https://github.com/vim/vim/issues/14120)
* Emend the Unicode and octal escape sequence patterns;
* Accept the (repeated) underscore separators in all
numerical literals;
* Recognise hexadecimal floating-point literals.
(The space escape sequence '\s' will be introduced along
with text blocks in another PR.)
References:
https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.3
https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.10.1
https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.10.2
https://docs.oracle.com/javase/specs/jls/se17/html/jls-3.html#jls-3.10.7
Signed-off-by: Aliaksei Budavei <0x000c70@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 01 Mar 2024 23:15:09 +0100 |
parents | bfb925ee6bc8 |
children |
line wrap: on
line source
| +0&#ffffff0|:| |h+0#af5f00255&|e|l|p| +0#0000000&@67 @75 |:|2+0#af5f00255&|m|a|t|c|h| +0#0000000&@67 |:|3+0#af5f00255&|m|a|t|c|h| +0#0000000&@67 |:+0#af5f00255&|a|p@1|e|n|d| +0#0000000&@67 | +0#e000002&@3>t|e|x|t| +0#0000000&@66 |.+0#af5f00255&| +0#0000000&@73 |:|a+0#af5f00255&|b@1|r|e|v|i|a|t|e| +0#0000000&@63 |:|a+0#af5f00255&|b|c|l|e|a|r| +0#0000000&@66 |:|a+0#af5f00255&|b|o|v|e|l|e|f|t| +0#0000000&@64 |:|a+0#af5f00255&|l@1| +0#0000000&@70 |:|a+0#af5f00255&|m|e|n|u| +0#0000000&@68 |:|a+0#af5f00255&|n|o|r|e|m|e|n|u| +0#0000000&@64 |:|a+0#af5f00255&|r|g|s| +0#0000000&@69 |:|a+0#af5f00255&|r|g|a|d@1| +0#0000000&@67 |:|a+0#af5f00255&|r|g|d|e|d|u|p|e| +0#0000000&@64 |:|a+0#af5f00255&|r|g|d|e|l|e|t|e| +0#0000000&@64 |:|a+0#af5f00255&|r|g|e|d|i|t| +0#0000000&@66 |:|a+0#af5f00255&|r|g|d|o| +0#0000000&@68 @57|1|9|,|5| @10|1|%|