Skip to content

Commit

Permalink
Correction : STRINGs are now prefixed with a <e>,as IL-Spy is retriev…
Browse files Browse the repository at this point in the history
…ing Extended string literal
  • Loading branch information
fforay committed Dec 17, 2020
1 parent 3df4957 commit 35f9cb4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
9 changes: 4 additions & 5 deletions ILSpy.XSharpLanguage/ILSpy.XSharpLanguage.xsproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\XSharp\XSharp.Default.props" />
<Import Project="$(XSharpMsBuildDir)\XSharp.Default.props" />
<PropertyGroup>
<ProjectGuid>c9119ba1-5ff2-4c1a-9f92-5584376e6903</ProjectGuid>
<OutputType>Library</OutputType>
Expand All @@ -16,8 +16,7 @@
<StartupObject />
<ApplicationIcon />
<VulcanCompatibleResources>False</VulcanCompatibleResources>
<XSharpProjectExtensionsPath>$(MSBuildExtensionsPath)\XSharp\</XSharpProjectExtensionsPath>
<XSharpProjectversion>2.0.1.0</XSharpProjectversion>
<XSharpProjectversion>2.7.0.0</XSharpProjectversion>
<Includepaths />
<Nostandarddefs />
<TargetFrameworkProfile />
Expand Down Expand Up @@ -47,7 +46,7 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<Import Project="$(MSBuildExtensionsPath)\XSharp\XSharp.targets" />
<Import Project="$(XSharpMsBuildDir)\XSharp.targets" />
<ItemGroup>
<Reference Include="Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<Name>Accessibility</Name>
Expand Down
4 changes: 4 additions & 0 deletions ILSpy.XSharpLanguage/XSharpHighlightingTokenWriter.prg
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,10 @@ BEGIN NAMESPACE ILSpy.XSharpLanguage
//
SELF:textOutput:BeginSpan(color)
ENDIF
// Indicate to XSharp to keep the String as it is
IF ( VALUE IS STRING )
SUPER:WritePrimitiveValue( NULL, "e" )
ENDIF
SUPER:WritePrimitiveValue(VALUE, literalValue)
IF (color != NULL)
//
Expand Down

0 comments on commit 35f9cb4

Please sign in to comment.