Diff of /lexers/LexLaTeX.cxx [b5123b] .. [8b789a] Maximize Restore

  Switch to unified view

a/lexers/LexLaTeX.cxx b/lexers/LexLaTeX.cxx
...
...
222
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
222
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
223
                    i++;
223
                    i++;
224
                    chNext = styler.SafeGetCharAt(i + 1);
224
                    chNext = styler.SafeGetCharAt(i + 1);
225
                } else if (chNext == '\r' || chNext == '\n') {
225
                } else if (chNext == '\r' || chNext == '\n') {
226
                    styler.ColourTo(i, SCE_L_ERROR);
226
                    styler.ColourTo(i, SCE_L_ERROR);
227
              } else {
227
              } else if (isascii(chNext)) {
228
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);
228
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);
229
                    if (chNext == '(') {
229
                    if (chNext == '(') {
230
                        mode = 1;
230
                        mode = 1;
231
                        state = SCE_L_MATH;
231
                        state = SCE_L_MATH;
232
                    } else if (chNext == '[') {
232
                    } else if (chNext == '[') {
...
...
338
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
338
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
339
                    i++;
339
                    i++;
340
                    chNext = styler.SafeGetCharAt(i + 1);
340
                    chNext = styler.SafeGetCharAt(i + 1);
341
                } else if (chNext == '\r' || chNext == '\n') {
341
                } else if (chNext == '\r' || chNext == '\n') {
342
                    styler.ColourTo(i, SCE_L_ERROR);
342
                    styler.ColourTo(i, SCE_L_ERROR);
343
              } else {
343
              } else if (isascii(chNext)) {
344
                    if (chNext == ')') {
344
                    if (chNext == ')') {
345
                        mode = 0;
345
                        mode = 0;
346
                        state = SCE_L_DEFAULT;
346
                        state = SCE_L_DEFAULT;
347
                    }
347
                    }
348
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);
348
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);
...
...
380
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
380
                    styler.ColourTo(i + 1, SCE_L_SPECIAL);
381
                    i++;
381
                    i++;
382
                    chNext = styler.SafeGetCharAt(i + 1);
382
                    chNext = styler.SafeGetCharAt(i + 1);
383
                } else if (chNext == '\r' || chNext == '\n') {
383
                } else if (chNext == '\r' || chNext == '\n') {
384
                    styler.ColourTo(i, SCE_L_ERROR);
384
                    styler.ColourTo(i, SCE_L_ERROR);
385
              } else {
385
              } else if (isascii(chNext)) {
386
                    if (chNext == ']') {
386
                    if (chNext == ']') {
387
                        mode = 0;
387
                        mode = 0;
388
                        state = SCE_L_DEFAULT;
388
                        state = SCE_L_DEFAULT;
389
                    }
389
                    }
390
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);
390
                    styler.ColourTo(i + 1, SCE_L_SHORTCMD);