Click here to Skip to main content
14,493,767 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Second call, Mr. Cthulhu Pin
Super Lloyd31-Dec-19 20:18
MemberSuper Lloyd31-Dec-19 20:18 
GeneralRe: Second call, Mr. Cthulhu Pin
Mark_Wallace31-Dec-19 21:54
MemberMark_Wallace31-Dec-19 21:54 
GeneralI'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 7:21
mvahoney the codewitch31-Dec-19 7:21 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Southmountain31-Dec-19 8:09
MemberSouthmountain31-Dec-19 8:09 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 8:13
mvahoney the codewitch31-Dec-19 8:13 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas31-Dec-19 10:19
professionalGreg Utas31-Dec-19 10:19 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 10:23
mvahoney the codewitch31-Dec-19 10:23 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 12:24
mvahoney the codewitch31-Dec-19 12:24 
I tried my way. It works like a charm. Woo! The only issue is (and this is not because of this particularly but ongoing and getting worse) my gplex specs have "a lot" of code in them - not an unreasonable amount yet - but more than lexer specs usually do, so it's a bit bigger than normal.

Oh well. Skipping comments is easy.

lineComment<skipped>='\/\/[^\n]*';
blockComment<skipped,blockEnd="*/">="/*";


blockEnd is another feature I added, though getting gplex to do it was a trick. It makes it far easier to indicate things like C block comments, HTML/XML/SGML comments, CDATA sections, basically anything with a multicharacter ending condition. Sure you can do it with lazy matching but not all lexers support that (i turned it off for performance) - this way is faster and clearer.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas31-Dec-19 13:38
professionalGreg Utas31-Dec-19 13:38 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch31-Dec-19 17:21
mvahoney the codewitch31-Dec-19 17:21 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 0:39
professionalGreg Utas1-Jan-20 0:39 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 5:54
mvahoney the codewitch1-Jan-20 5:54 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 6:26
professionalGreg Utas1-Jan-20 6:26 
QuestionRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 13:45
mvahoney the codewitch1-Jan-20 13:45 
AnswerRe: I'm finally ready for an article. I'm exhausted Pin
Greg Utas1-Jan-20 15:25
professionalGreg Utas1-Jan-20 15:25 
GeneralRe: I'm finally ready for an article. I'm exhausted Pin
honey the codewitch1-Jan-20 15:27
mvahoney the codewitch1-Jan-20 15:27 
Generalat least it's sunny there Pin
honey the codewitch31-Dec-19 5:39
mvahoney the codewitch31-Dec-19 5:39 
GeneralRe: at least it's sunny there Pin
Ron Anders31-Dec-19 5:52
MemberRon Anders31-Dec-19 5:52 
GeneralRe: at least it's sunny there Pin
Cp-Coder31-Dec-19 6:24
MemberCp-Coder31-Dec-19 6:24 
GeneralRe: at least it's sunny there Pin
Ron Anders31-Dec-19 6:29
MemberRon Anders31-Dec-19 6:29 
GeneralRe: at least it's sunny there Pin
Cp-Coder31-Dec-19 6:35
MemberCp-Coder31-Dec-19 6:35 
GeneralRe: at least it's sunny there Pin
stoneyowl231-Dec-19 9:45
Memberstoneyowl231-Dec-19 9:45 
GeneralRe: at least it's sunny there Pin
Marc Clifton31-Dec-19 5:52
mvaMarc Clifton31-Dec-19 5:52 
GeneralAnd another one is gone. But this time, you probably have no idea who he is: Syd Mead RIP. Pin
OriginalGriff31-Dec-19 4:29
mveOriginalGriff31-Dec-19 4:29 
GeneralRe: And another one is gone. But this time, you probably have no idea who he is: Syd Mead RIP. Pin
RickZeeland31-Dec-19 4:34
mveRickZeeland31-Dec-19 4:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.