← 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.defaultmezura.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

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 --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 --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