diff options
| author | 2014-09-20 21:44:50 -0400 | |
|---|---|---|
| committer | 2014-09-20 21:44:50 -0400 | |
| commit | 57b53fc267aa606ee4d1bde5512632c82cbab9c5 (patch) | |
| tree | 19f94bdeaba5f3b178053135bce75144517fdada /src/cuchaz/enigma/analysis/SourceIndex.java | |
| parent | avoid some unnecessary work with inner classes (diff) | |
| download | enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.tar.gz enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.tar.xz enigma-fork-57b53fc267aa606ee4d1bde5512632c82cbab9c5.zip | |
added token highlighting for things outside of the jar
Diffstat (limited to '')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index b777f9f..fb5cc65 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -77,7 +77,7 @@ 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 | 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 | 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 ) ) ) | 82 | if( !Character.isJavaIdentifierStart( m_source.charAt( token.start ) ) ) |
| 83 | { | 83 | { |
| @@ -88,6 +88,7 @@ public class SourceIndex | |||
| 88 | throw new IllegalArgumentException( "Region " + region + " does not describe valid token: '" + m_source.substring( token.start, token.end ) + "'" ); | 88 | throw new IllegalArgumentException( "Region " + region + " does not describe valid token: '" + m_source.substring( token.start, token.end ) + "'" ); |
| 89 | } | 89 | } |
| 90 | } | 90 | } |
| 91 | */ | ||
| 91 | 92 | ||
| 92 | return token; | 93 | return token; |
| 93 | } | 94 | } |