Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Bash ANSI C like strings with escaped quote breaks syntax highlight #146

Closed

Description

@leagris

Prerequisites

Description

An escaped single quote \' in an ANSI C like string breaks syntax highlighting.

Steps to Reproduce

  1. Write this sample code as a shell script:
#!/usr/bin/env bash
echo "Here's double quoted test"
echo 'Here'\''s single quoted test'
echo $'Here\'s ANSI C like string'
echo 'Now syntax highlighting is broken'

Expected behavior:

Maintain correct syntax highlighting with ANSI C like strings containing an escaped single quote \'

Actual behavior:

image

Reproduces how often:

This is 100% reproducible.

Versions

  • OS : Ubuntu 19.04
  • Atom : 1.38.2
  • Electron: 2.0.18
  • Chrome : 61.0.3163.100
  • Node : 8.9.3
  • apm 2.1.7
  • npm 6.2.0
  • node 8.9.3 x64
  • atom 1.38.2
  • python 2.7.16
  • git 2.20.1

Additional Information

None

Activity

  1. rsese commented on Jun 28, 2019

    @rsese

    Thanks @leagris, reproduced on macOS 10.12.6 with Atom 1.40.0-nightly15.

  2. self-assigned this
    on Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions