File tree Expand file tree Collapse file tree 5 files changed +11
-7
lines changed
src/main/java/org/fife/rsta/ac Expand file tree Collapse file tree 5 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -16,17 +16,18 @@ archivesBaseName = 'languagesupport'
1616ext. isReleaseVersion = ! project. version. endsWith(' SNAPSHOT' )
1717
1818dependencies {
19- api ' com.fifesoft:rsyntaxtextarea:3.1.3 '
20- api ' com.fifesoft:autocomplete:3.1.2 '
19+ api( ' com.fifesoft:rsyntaxtextarea:3.1.4 ' ) { changing = true }
20+ api ' com.fifesoft:autocomplete:3.1.3 '
2121 implementation ' org.mozilla:rhino:1.7.6'
2222 testImplementation ' junit:junit:4.13.2'
2323}
2424
2525wrapper {
26- gradleVersion = ' 7.0.2 '
26+ gradleVersion = ' 7.3.1 '
2727}
2828
2929repositories {
30+ mavenLocal()
3031 mavenCentral()
3132 maven {
3233 url ' https://oss.sonatype.org/content/repositories/snapshots'
Original file line number Diff line number Diff line change 11# Note that Maven- and signing-related properties are in <maven-home>/gradle.properties
22javaVersion =1.8
3- version =3.1.3-SNAPSHOT
3+ version =3.1.3
44
55# Ugh, see https://github.com/gradle/gradle/issues/11308
66systemProp.org.gradle.internal.publish.checksums.insecure =true
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-7.0.2 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.3.1 -bin.zip
44zipStoreBase =GRADLE_USER_HOME
55zipStorePath =wrapper/dists
Original file line number Diff line number Diff line change @@ -208,6 +208,7 @@ RSyntaxTextArea getTextArea() {
208208 */
209209 @ Override
210210 public void hyperlinkUpdate (HyperlinkEvent e ) {
211+ System .out .println ("Hyperlink event: " + e .getEventType ());
211212 if (e .getEventType ()==HyperlinkEvent .EventType .ACTIVATED ) {
212213 URL url = e .getURL ();
213214 if (url ==null ) {
Original file line number Diff line number Diff line change @@ -60,6 +60,8 @@ public class PhpCompletionProvider extends HtmlCompletionProvider {
6060 */
6161 private List <Completion > phpCompletions ;
6262
63+ // TODO: Make PHPTokenMaker.INTERNAL_IN_PHP public! Or come up with a better way to do this
64+ private static final int EVERYTHING_HERE_AND_BELOW_IS_PHP = -(4 <<11 );//PHPTokenMaker.INTERNAL_IN_PHP;
6365
6466 public PhpCompletionProvider () {
6567
@@ -227,11 +229,11 @@ else if (ch1=='?' && ch2=='>') {
227229 }
228230
229231 // Check if previous line ended in a PHP block.
230- // HACK: This relies on insider knowledge of PhpTokenmaker ! All
232+ // HACK: This relies on insider knowledge of PhpTokenMaker ! All
231233 // PHP-related states have the "lowest" token types.
232234 if (!inPhp && line >0 ) {
233235 int prevLineEndType = doc .getLastTokenTypeOnLine (line -1 );
234- if (prevLineEndType <= PHPTokenMaker . INTERNAL_IN_PHP ) {
236+ if (prevLineEndType <= EVERYTHING_HERE_AND_BELOW_IS_PHP ) {
235237 inPhp = true ;
236238 }
237239 }
You can’t perform that action at this time.
0 commit comments