\r is accepted in unrestricted names and string literals without a nonstandard-notation warning, though KerML Table 4 does not list it (pilot grammar extension)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Start from source.IsEscapeChar, which decides which escape sequences the lexer accepts, and from the nonstandard-notation check in internal/check/passes/nonstandard_notation.go. Keep \r decoding as it is, and make the existing warning fire for \r in both unrestricted names and string literals, escalating under -validate -strict. Done when the false-positive scan over examples/ and the standard library stays silent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Model and observed behaviour
package P {
part def Pt;
part 'cr\rx' : Pt;
attribute s = "a\rb";
}
The model checks clean, under -validate -strict too: \r is accepted in an unrestricted name and in a string literal with no diagnostic, and is read as a carriage return (U+000D).
What the specification requires
KerML 1.1 Beta 2 §8.2.2.3, Note 2: "Table 4 shows the meaning of the allowed escape sequences." Table 4 (Escape Sequences) lists seven:
| Escape Sequence | Meaning |
|---|---|
\' |
Single Quote |
\" |
Double Quote |
\b |
Backspace |
\f |
Form Feed |
\t |
Tab |
\n |
Line Terminator |
\\ |
Backslash |
\r is not among them. §8.2.2.5 gives STRING_VALUE the same ESCAPE_SEQUENCE ("ESCAPE_SEQUENCE is specified in 8.2.2.3"), so the same holds for string literals.
Reference implementation
The pilot's grammar admits \r in both terminals (KerMLExpressions.xtext, pilot 2026-09):
terminal UNRESTRICTED_NAME returns Ecore::EString:
'\'' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '\''))* '\'';
terminal STRING_VALUE returns Ecore::EString:
'"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
and its exporter gives declaredName cr + U+000D + x for the name above. source.IsEscapeChar follows that grammar.
Proposed
Keep accepting and decoding \r, so what the pilot accepts still parses, and report it through the existing nonstandard-notation warning (internal/check/passes/nonstandard_notation.go) — in an unrestricted name and in a string literal alike, with the strict-conformance escalation that warning already has. The same applies to any other sequence the lexer admits beyond Table 4; today \r is the only one.
No file under examples/ (the downloaded corpora included) or the standard library writes \r in a name or a string, so the warning should be silent over them; the false-positive scan should confirm that.
Split out of #2241 (which fixes #2214, the decoding of escape sequences in names) to keep that change to its scope.
Kind of gap
Accepted beyond the specification without a diagnostic
- Lingua principale
- Go
- Stelle
- 59
- Fork
- 20
- Merge medio
- 10h 23m
- PR unite (30g)
- 897
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 Open-MBEE/OpenSysML
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
A model's parse is still paid cold in every process; the library record cache does not cover itAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Open-MBEE/OpenSysML
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
krakenhavoc/cmd_and_ctrl#5853 ·
I maintainer di solito rispondono entro 1 giorno
-
flaky test: TestTRTAsyncPrefillFailures/transport reads the token load before prefillDone has released itForse già presa @Jackmeson1 l’ha presa oggi. Apertaarea/cicd area/gateway kind/misc
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
vllm-project/aibrix#3488 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Type: Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
projectdiscovery/httpx#2735 ·
I maintainer di solito rispondono entro 1 giorno
-
NuGet registry builds every URL from ROOT_URL, ignoring the host the client usedForse già presa @gritse l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno