Idea detail
string_and_reference_apostrophes
reqlan rq/language/syntax.rq:101
block
Summary
strings should use double or single apostrophes interchangeably and support backslash escapes.
Attributes
| Key | Value |
|---|---|
| plan | goal Allow reqlan string literals in imports, idea names, and bracketed file/reference targets to use either double or single quotes with backslash escaping. constraints - string_literals documents escaping rules; double-quoted syntax must remain valid. - reference_file bracketed quoted paths must resolve with either quote style. - Embedded scanners and comment reference parsing must not treat // inside quoted strings as comments. steps 1. Extend grammar STRING terminal and shared unquote helper for both quote styles. 2. Update import/path/comment/embedded reference scanners and completion to accept single-quoted literals. 3. Update TextMate highlighting for single-quoted strings. 4. Add parsing and reference-resolution tests for single-quoted paths and idea names. open questions - None for initial scope; both quote styles apply everywhere STRING is used. |
| tests | references.test.ts:unquotes single-quoted reqlan string literals, parsing.test.ts:parse single-quoted import paths and idea names |
Ancestor context
string_literals
String literals in import paths and quoted idea names may use double or single quotes. Escaped characters inside strings follow standard backslash escaping.
reference_fileReferences may target arbitrary files, not only. rq files. File reference syntax uses a bracketed quoted path. Line or line-range references append L # and services after the path inside the brackets. Symbol references append a dot-separated symbol path after the quoted file path.
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| file_reference | ../../packages/language/test/parsing.test.ts:parse single-quoted import paths and idea names | packages/language/test/parsing.test.ts:parse single-quoted import paths and idea names | parsing.test.ts:parse single-quoted import paths and idea names |
| file_reference | ../../packages/language/test/references.test.ts:unquotes single-quoted reqlan string literals | packages/language/test/references.test.ts:unquotes single-quoted reqlan string literals | references.test.ts:unquotes single-quoted reqlan string literals |
| references | reference_file | reqlan rq/language/syntax.rq | reference_file |
| references | string_literals | reqlan rq/language/syntax.rq | string_literals |
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Initialising graph…