racket / racket/drracket

Indentation/highlighting issues in student languages when first line is hash comment

Open
#259 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Racket
Stars
516
Forks
103
PR merge metrics
No merged PRs in 30d

Description

When trying to use one of the student languages via the selector at the bottom, if a #; comment appears before any other uncommented code, the ide interprets it incorrectly and formats the entire section as a comment. It seems to only be a highlighting/indentation issue since running a file with this issue works normally as intended.,

What happens normally/expected when setting language via #lang:
normalcomment

What happens if a student language is set:
bslwithcommentasfirstline

It appears to be that the ide is treating the text as if no language was set

Same test with no language set:
idewithnolangset

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

Reproduce the issue in DrRacket by selecting a student language and placing a #; comment before any uncommented code, then compare the highlighting and indentation with #lang and no-language cases. Trace the editor's language-selection and syntax-highlighting behavior; done means the first-line comment is highlighted and indented correctly without changing successful program execution.

Written by the indexing model from the issue text.

Assessment

Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.