I haven't done any serious C work in years. Are there other new key words? I've read that there are now binary literals and that long numbers can have separators to make them easier to read. What else is there that would affect syntax highlighting?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
There are four new string literals introduced: http://en.cppreference.com/w/cpp/language/string_literal
I think the first three are easy to implement, but I don't know how to implement the last one (raw string literal, e.g., R"foo(Hello World)foo") using jedit mode.
Last edit: ahlearn 2015-08-08
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Roman, you know more about edit modes than I do now.
Any ideas on how to do that last kind of multiline quote?
#include<iostream>chararray1[]="Foo""bar";// same aschararray2[]={'F','o','o','b','a','r','\0'};constchar*s1=R"foo(HelloWorld)foo";//same asconstchar*s2="\nHello\nWorld\n";intmain(){std::cout<<array1<<'\n';std::cout<<array2<<'\n';std::cout<<s1;std::cout<<s2;}
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am getting exceptions on startup of jEdit suddenly related to this edit mode, if jEdit needs to open a cpp file to restore the previous open files of a project.
Activity log attached.
Well, my bad... I forgot to switch back from test modes to real. In the cplusplus.xml mode file all delegates to "c-14" must be replaced with just "c". I can make a commit.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I haven't done any serious C work in years. Are there other new key words? I've read that there are now binary literals and that long numbers can have separators to make them easier to read. What else is there that would affect syntax highlighting?
There are four new string literals introduced: http://en.cppreference.com/w/cpp/language/string_literal
I think the first three are easy to implement, but I don't know how to implement the last one (raw string literal, e.g., R"foo(Hello World)foo") using jedit mode.
Last edit: ahlearn 2015-08-08
Added a bunch of keywords along with new literals. I would appreciate if someone could test it.
Ticket moved from /p/jedit/feature-requests/497/
Roman, you know more about edit modes than I do now.
Any ideas on how to do that last kind of multiline quote?
Committed revision 24791.
it's done, as you already know, I suppose :)
...if you are talking about R literals.
I am getting exceptions on startup of jEdit suddenly related to this edit mode, if jEdit needs to open a cpp file to restore the previous open files of a project.
Activity log attached.
Last edit: Alan Ezust 2018-02-01
I do not see any issues with my cpp test file. Could you also show me the file which triggers exceptions?
Well, my bad... I forgot to switch back from test modes to real. In the cplusplus.xml mode file all delegates to "c-14" must be replaced with just "c". I can make a commit.
committed 24823