Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Powershell Error in 3.5.0 #1221

Closed
jpmarceau opened this issue Jun 25, 2019 · 4 comments · Fixed by #1222
Closed

Powershell Error in 3.5.0 #1221

jpmarceau opened this issue Jun 25, 2019 · 4 comments · Fixed by #1222
Labels
bugfix-request A request for a bugfix to be developed.

Comments

@jpmarceau
Copy link

I used to be able to highlight powershell scripts but with the 3.5.0 update this afternoon, even very simple code samples now seem to fail. Example:

# Convert any text file to ASCII
 
param( [string] $infile = $(throw "Please specify a filename.") )
 
$outfile = "$infile.ascii"
 
get-content -path $infile | out-file $outfile -encoding ascii

00:02:39.671 �[31m Conversion error: Jekyll::Converters::Markdown encountered an error while converting 'collections/mydocument.md':�[0m
00:02:39.671 �[31m unknown state: :paren�[0m
00:02:39.671 jekyll 3.7.0 | Error: unknown state: :paren

Thank you :)

@pyrmont
Copy link
Contributor

pyrmont commented Jun 25, 2019

@jpmarceau Sorry about that. I'm pretty sure this is from a change to the Shell superclass. I think I know how to fix the PowerShell lexer to use the new states. I'll test and update.

@pyrmont
Copy link
Contributor

pyrmont commented Jun 25, 2019

@jpmarceau The problem was in #1216. The PowerShell lexer needed to be updated to use the new :paren_interp state. I've got a fix coming.

@jpmarceau
Copy link
Author

@pyrmont thanks for the quick follow-up!

@pyrmont
Copy link
Contributor

pyrmont commented Jun 25, 2019

@jpmarceau v3.5.1 has now been pushed to RubyGems and should fix this. Sorry about the trouble!

@pyrmont pyrmont added the bugfix-request A request for a bugfix to be developed. label Jun 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix-request A request for a bugfix to be developed.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants