sis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From desruisse...@apache.org
Subject svn commit: r1816196 - in /sis/branches/JDK8/core/sis-build-helper/src/main: java/org/apache/sis/internal/book/CodeColorizer.java resources/org/apache/sis/internal/book/OGC.lst
Date Thu, 23 Nov 2017 23:34:26 GMT
Author: desruisseaux
Date: Thu Nov 23 23:34:26 2017
New Revision: 1816196

URL: http://svn.apache.org/viewvc?rev=1816196&view=rev
Log:
Tuning in the application of style for <code> elements.

Modified:
    sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/CodeColorizer.java
    sis/branches/JDK8/core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/OGC.lst

Modified: sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/CodeColorizer.java
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/CodeColorizer.java?rev=1816196&r1=1816195&r2=1816196&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/CodeColorizer.java
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-build-helper/src/main/java/org/apache/sis/internal/book/CodeColorizer.java
[UTF-8] Thu Nov 23 23:34:26 2017
@@ -182,6 +182,17 @@ public final class CodeColorizer {
                 }
                 break;
             }
+            default: {
+                int upper = word.length();
+                while (upper > 0) {
+                    final int c = word.codePointBefore(upper);
+                    if (Character.isUnicodeIdentifierPart(c)) {
+                        word = word.substring(0, upper);
+                        break;
+                    }
+                    upper -= Character.charCount(c);
+                }
+            }
         }
         /*
          * Check if the keyword is a known one. The 'identifierOrigins' map contains only
simple name

Modified: sis/branches/JDK8/core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/OGC.lst
URL: http://svn.apache.org/viewvc/sis/branches/JDK8/core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/OGC.lst?rev=1816196&r1=1816195&r2=1816196&view=diff
==============================================================================
--- sis/branches/JDK8/core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/OGC.lst
[UTF-8] (original)
+++ sis/branches/JDK8/core/sis-build-helper/src/main/resources/org/apache/sis/internal/book/OGC.lst
[UTF-8] Thu Nov 23 23:34:26 2017
@@ -233,4 +233,6 @@ SV_OperationChainMetadata
 SV_OperationMetadata
 SV_ParameterDirection
 SV_ServiceIdentification
+AXIS
+ORDER
 TOWGS84



Mime
View raw message