diff options
| author | 2014-09-20 21:45:32 -0400 | |
|---|---|---|
| committer | 2014-09-20 21:45:32 -0400 | |
| commit | 84d3bd601094a733900260ad2bd0577cf65978ab (patch) | |
| tree | ae1ea4a3e101b0579b92b84bda937f3d2134e805 /src | |
| parent | added token highlighting for things outside of the jar (diff) | |
| download | enigma-84d3bd601094a733900260ad2bd0577cf65978ab.tar.gz enigma-84d3bd601094a733900260ad2bd0577cf65978ab.tar.xz enigma-84d3bd601094a733900260ad2bd0577cf65978ab.zip | |
removed workaround for procyon bug
Diffstat (limited to 'src')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index fb5cc655..49451b90 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -77,19 +77,6 @@ public class SourceIndex | |||
| 77 | token.end -= pos + 1; | 77 | token.end -= pos + 1; |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | /* HACKHACK: sometimes node regions are off by one | ||
| 81 | // I think this is a bug in Procyon, but it's easy to work around | ||
| 82 | if( !Character.isJavaIdentifierStart( m_source.charAt( token.start ) ) ) | ||
| 83 | { | ||
| 84 | token.start++; | ||
| 85 | token.end++; | ||
| 86 | if( !Character.isJavaIdentifierStart( m_source.charAt( token.start ) ) ) | ||
| 87 | { | ||
| 88 | throw new IllegalArgumentException( "Region " + region + " does not describe valid token: '" + m_source.substring( token.start, token.end ) + "'" ); | ||
| 89 | } | ||
| 90 | } | ||
| 91 | */ | ||
| 92 | |||
| 93 | return token; | 80 | return token; |
| 94 | } | 81 | } |
| 95 | 82 | ||