mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-08-26 20:28:31 +02:00
Use new interfaces SCI_FORMATRANGEFULL, SCI_GETTEXTRANGEFULL, SCI_FINDTEXTFULL from scintilla 5.2.3 Close #11734
30 lines
424 B
Ruby
30 lines
424 B
Ruby
# -*- coding: utf-8 -*-
|
|
|
|
# single character strings
|
|
puts ?a
|
|
puts ?\n
|
|
puts ?\s
|
|
puts ?\\#
|
|
puts ?\u{41}
|
|
puts ?\C-a
|
|
puts ?\M-a
|
|
puts ?\M-\C-a
|
|
puts ?\C-\M-a
|
|
puts ?あ
|
|
puts ?"
|
|
puts ?/
|
|
puts ?[[1, 2]
|
|
puts ?/\
|
|
|
|
# symbol and ternary operator
|
|
ab = /\d+/
|
|
cd = /\w+/
|
|
puts :ab, :cd, :/, :[]
|
|
puts :/\
|
|
|
|
# TODO: space after '?' and ':' is not needed
|
|
puts true ?ab : cd
|
|
puts true ? /\d+/ : /\w+/
|
|
puts false ?ab : cd
|
|
puts false ? /\d+/ : /\w+/
|