cspotcode / cspotcode/angl

Add compiler flag to pick between generating single-quoted or double-quoted string literals

Open
#17 2 comments 0 reactions 0 assignees View on GitHub
0 - Backlog backburner
Dominant language
TypeScript
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

I prefer code to have 'single-quoted' string literals instead of "double-quoted" but the current angl compiler is outputting double-quoted (via JSON.stringify)

```
"'" + JSON.stringify(stringValue).slice(1, -1).replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.