← every case · 2000 · string forms

2030-string_symbol_of_another_kind_inside

only the symbol that opened a string can close it, so the other kind inside is text

read ascloc.defaultcloc.docstring-as-codemezura.contentmezura.regionscc.defaulttokei.default
input.py
1codea = "an apostrophe ' inside a double quoted string"
2codeb = 'a quote " inside a single quoted string'

stringcommentthe tag around another language

What each tool answered

cloc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py

cloc.default ✓ agrees

--strip-str-comments

the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py --strip-str-comments

cloc.docstring-as-code ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

cloc --json cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py --docstring-as-code

mezura.content ✓ agrees
the rules ask2 lines · 2 code · 0 comments · 0 extra
it answers2 lines · 2 code · 0 comments · 0 extra

mezura cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py --output json --hide timing --no-default-config --no-local --counting content

mezura.region ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

mezura cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py --output json --hide timing --no-default-config --no-local --counting region

scc.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

scc --format json cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py

tokei.default ✓ agrees
the rules ask2 lines · 0 blanks · 2 code · 0 comments
it answers2 lines · 0 blanks · 2 code · 0 comments

tokei --output json cases/2000-string_forms/2030-string_symbol_of_another_kind_inside/input.py