texstudio-org / texstudio-org/texstudio

bug of syntax highlighting of \begin{comment} ... \end{comment} block

Open
#660 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
C++
Stars
3.6k
Forks
403
Avg merge
3h 14m
Merged PRs (30d)
12

Description

Environment
  • TeXstudio: 2.12.16
  • Qt: Using Qt Version 5.12.1, compiled with Qt 5.12.1 R
  • OS: Windows 7
  • TeX distribution: miktex
Expected behavior

Block between \begin{comment} and \end{comment} should have comment color (highlighting).

Actual behavior

It seems OK when I open a latex source initially. However, when I type
"\begin{comment}"

then the color is changed as "verbatim" color.

The captured screen that shows both the color by % comment, and the color in \begin{comment}...\end{comment}.

Untitled

How to reproduce

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Reproduce the issue by typing \begin{comment} in a LaTeX source on the described TeXstudio setup, then trace the syntax-highlighting handling for the comment environment. Done means the block keeps the comment color after the environment is entered.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, latex
Domain
desktop, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.