Python syntax highlighting doesn't handle line extension (\)
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
The report shows a Python code block where a backslash continues a string across lines, but it does not name the highlighting file or test. Start by locating the Python syntax highlighting implementation and its tests, then reproduce the supplied example. Done means world" is highlighted as part of the string and following text is treated as code.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
Python syntax highlighting doesn't handle string with "\" line extension correctly.
Repro:
```py
"Hello\
world"
```
world" should be highlighted green. Also, any text after world" should be treated as code, but it is treated as the beginning of a new string.
Operating system
Windows, Web app
Typst version
- I am using the latest version of Typst
- Lingua principale
- Rust
- Stelle
- 57.2k
- Fork
- 1.8k
- Merge medio
- 1g 17h
- PR unite (30g)
- 22
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di typst/typst
-
feature request
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
I maintainer di solito rispondono entro 2 giorni
-
bug foundations
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
typst/typst#9047 · 2 commenti · 2 reazioni ·
I maintainer di solito rispondono entro 2 giorni
-
`h3` font size is too smallApertadocs-infra
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
typst/typst#9020 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
typst/typst#8987 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
docs-infra
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
typst/typst#8934 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
Issue simili
-
priority: medium ready
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
TusanHomichi/PSIV#646 ·
I maintainer di solito rispondono entro 1 giorno
-
bug lab rust-mcp
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area:cli good first issue help wanted needs translation priority:P2 type:documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
SpecterAoD/pqkeep#226 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
haowjy/mars-agents#381 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: opencode_go chat route drops reasoning_effort (even 'none'), while the same endpoint honors it via custom_llm_provider=openaiForse già presa @arvindkumar-ship-it l’ha presa oggi. Apertallm translation
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
BerriAI/litellm#51871 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno