Added state for single line comment to get_one_query(). This fixes
bug spotted by Gurjeet Singh.

Also added regression test.