-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Closed
Labels
lexilla dependentCan't be considered for N++ implementation unless/until Lexiilla changesCan't be considered for N++ implementation unless/until Lexiilla changesscintilla dependentCan't be considered for N++ implementation unless/until Scintilla changesCan't be considered for N++ implementation unless/until Scintilla changes
Description
Description of the Issue
Certain Ruby string literals beginning with % do not apply or suppress syntax highlighting inside the string contents properly.
Steps to Reproduce the Issue
On any file with Ruby syntax highlighting enabled, enter the following:
%{abc def #{1} ghi}
%i{abc def #{1} ghi}
%q{abc def #{1} ghi}
%r{abc def #{1} ghi}
%s{abc def #{1} ghi}
%w{abc def #{1} ghi}
%x{abc def #{1} ghi}
%I{abc def #{1} ghi}
%Q{abc def #{1} ghi}
%W{abc def #{1} ghi}Expected Behavior
%,%q, and%Qshould be highlighted as strings,%ras regular expressions,%sas symbols, and%xas backticks.- String interpolation should be disabled in only
%i,%q,%s, and%w.
Actual Behavior
- These literals are not supported at all:
%i,%s,%I. String interpolation is treated as comments, anddefis treated as a keyword. %wdoes not suppress string interpolation.%and%Qdo not display themselves like interpolated strings.%rand%xdo not apply the correct colors.
Debug Information
Notepad++ v7.5.8 (32-bit)
Build time : Jul 23 2018 - 02:03:53
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Admin mode : OFF
Local Conf mode : OFF
OS : Windows 10 (64-bit)
Plugins : MarkdownViewerPlusPlus.dll NppEditorConfig.dll NppFTP.dll NPPJSONViewer.dll PluginManager.dll zoomdisabler.dll mimeTools.dll NppConverter.dll NppExport.dll
Reference
- Section on percent strings from Ruby 2.1.0
%R,%S, and%Xdo not actually exist.%rand%xdo accept string interpolations, only%sdoesn't,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
lexilla dependentCan't be considered for N++ implementation unless/until Lexiilla changesCan't be considered for N++ implementation unless/until Lexiilla changesscintilla dependentCan't be considered for N++ implementation unless/until Scintilla changesCan't be considered for N++ implementation unless/until Scintilla changes