mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-26 20:28:31 +02:00
Update scintilla with https://www.scintilla.org/scintilla537.zip Release 5.3.7 Released 22 September 2023. For GTK on macOS, fix popup window behaviour by setting type hints. Bug #2401. For GTK, fix assertion failure on some systems when an INDIC_SQUIGGLEPIXMAP drawn for a zero-width character. For Qt, allow parent window to handle context menu events by setting as ignored. Bug #2395. For Qt, fix potential crash when using IME with large amount of text selected. For Windows, fix building with non-English environment. Bug #2400. and lexilla https://www.scintilla.org/lexilla527.zip Release 5.2.7 Released 22 September 2023. Fix building on Windows with non-English environment. Pull request #200. Bash: fix line continuation for comments and when multiple backslashes at line end. Issue #195. Bash: treat += as operator and, inside arithmetic expressions, treat ++ and -- as operators. Issue #197. Bash: improve backslash handling inside backquoted command substitution and fix $ at end of backtick expression. Issue #194. Bash: treat words that are similar to numbers but invalid wholly as identifiers. Issue #199. Bash: consistently handle '-' options at line start and after '|' as identifiers. Issue #202. Bash: handle '-' options differently in [ single ] and [[ double ]] bracket constructs. Issue #203. F#: improve speed of folding long lines. Issue #198. HTML: fix invalid entity at line end and terminate invalid entity before invalid character. Issue #192. Fix #13991, fix #14062, close #14173
52 lines
1.0 KiB
Bash
52 lines
1.0 KiB
Bash
#!/bin/zsh
|
|
# Tests for zsh extensions
|
|
# Can be executed by zsh with reasonable results
|
|
# Some of these were implemented by commit [87286d] for Scintilla bug #1794
|
|
# https://zsh.sourceforge.io/Doc/Release/Expansion.html
|
|
|
|
# Where # does not start a comment
|
|
|
|
|
|
## Formatting base
|
|
print $(( [#8] y = 33 ))
|
|
print $(( [##8] 32767 ))
|
|
|
|
# Formatting base and grouping
|
|
print $(( [#16_4] 65536 ** 2 ))
|
|
|
|
|
|
## Character values
|
|
print $(( ##T+0 ))
|
|
print $(( ##^G+0 ))
|
|
# Failure: does not work when - included for bindkey syntax. \M-\C-x means Meta+Ctrl+x.
|
|
print $(( ##\M-\C-x+0 ))
|
|
|
|
# Value of first character of variable in expression
|
|
var=Tree
|
|
print $(( #var+0 ))
|
|
|
|
|
|
## Extended glob
|
|
setopt extended_glob
|
|
|
|
# # is similar to *, ## similar to +
|
|
echo [A-Za-z]#.bsh
|
|
echo [A-Za-z]##.bsh
|
|
|
|
# 13 character file names
|
|
echo **/[a-zA-Z.](#c13)
|
|
# 13-15 character file names
|
|
echo **/[a-zA-Z.](#c13,15)
|
|
|
|
|
|
## Glob flag
|
|
|
|
# i=case-insensitive
|
|
echo (#i)a*
|
|
|
|
# b=back-references
|
|
foo="a_string_with_a_message"
|
|
if [[ $foo = (a|an)_(#b)(*) ]]; then
|
|
print ${foo[$mbegin[1],$mend[1]]}
|
|
fi
|