Comments (7)
@ajtruckle The issue is fixed and closed here at Lexilla. Lexilla 5.3.0 has been released with this fix.
Notepad++ will probably have a Pull Request submitted in a few days to merge the new releases of Scintilla and Lexilla. Time may depend on the holiday season.
If everything goes OK, the next release of Notepad++ will have this fix.
In SciTE 5.4.1 which has been just released with the fix looks like:
If you want the fix any quicker, then you may need to compile Notepad++ yourself with the fix.
Does this commit mean Notepad++ will have another update with the newer editor control?
Expectation is yes as to the routine of Notepad++.
from lexilla.
@ajtruckle It is like a note to self as reference. Still as you mention, related to backslash escape though none in the examples at end of line like your example.
@nyamatongwe My curiosity tingles as why single quotes have different styling behaviour to double quotes in Javascript when they are supposed to be interchangable.
Double quotes:
Lines 2175 to 2178 in 6a977a3
Single quotes:
Lines 2188 to 2193 in 6a977a3
I would expect these 2 code blocks to be the same. Surely one is right and the other is not. This is why I mentioned the workaround of trying single quotes in the linked post at Notepad++ as an immediate action to correct the styling.
Reference: https://www.javascript.com/learn/strings
from lexilla.
See earlier Escape of EOL in JS string does not work.
from lexilla.
@nyamatongwe
Sorry, but what is the linked article really saying specific to my case? Thank you.
from lexilla.
@ajtruckle It is like a note to self as reference.
An issue will often be examined by multiple people and they may accumulate links to reference documents (what does the standard say?) and code history. Its unlikely I'll write a patch for this but I checked git log and git blame to see what occurred. Looking at the history can indicate if this was a deliberate choice - its easy to unfix things. The bug led to change 3fa9084.
Still as you mention, related to backslash escape though none in the examples at end of line like your example.
The issue is poorly formatted and a newline can be seen in the first line of script if edit (only admins) is pressed.
<script type="text/javascript">//<![CDATA[
var x = '<table>\
</table>';
Possibly the poster battled mark-up and lost or it was a victim of SourceForge changing over time. This was originally bug #3038381 as listed in Lexilla history before SourceForge renumbered all the issues. I have updated the formatting to show the intention.
I would expect these 2 code blocks to be the same. Surely one is right and the other is not.
Some languages have different escape rules for different string quotes so there may be historical reasons or it may just be that the contributor wasn't aware they should be the same.
from lexilla.
@nyamatongwe Thanks for the information. I did not consider the markdown at Scintilla got messed up, my mistake.
As they say, "don't fix if not broke". The bug fix done by Stephen Deibel appears to work with single quoted strings and I cannot seem to break it, so I'll go with the option to apply the same fix to the double quoted strings.
from lexilla.
I appreciate your closing the issue. But Notepad++ still renders my file as I originally reported. Does this commit mean Notepad++ will have another update with the newer editor control?
from lexilla.
Related Issues (20)
- [Bash] two bugs in test operator highlighting HOT 6
- Fold Issue in Verilog mode HOT 17
- LexerVerilog tries to set line state beyond EOF HOT 2
- R escape sequences don't terminate properly HOT 13
- Syntax highlighting for Svelte HOT 1
- [CSS] Nesting and &-selector HOT 4
- Fold issue in verilog with nested MACRO and nested if HOT 3
- nested square brackets, TeX files
- Shell language lexing mistakes bitwise left shift operator for here document HOT 3
- [Bash] Don't nest `${}` parameter expansion on `{` HOT 1
- unreachable code HOT 1
- Feature Request: Folding by indentation in plain text HOT 2
- Update Assembly (Update Syntax Highlighting)
- Batch Syntax "keyword" + ":" => "keyword:" dont work properly HOT 5
- raw formatted string is not handled in Python lexer HOT 5
- prevent negative code folding level in lexer HOT 26
- [Ruby] fix `number.method` highlighting
- Batch File Syntax Highlighting After 1024 Characters HOT 3
- COBOL syntax and wrap strings HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lexilla.