Package org.fife.ui.rsyntaxtextarea

Examples of org.fife.ui.rsyntaxtextarea.Token.endsWith()


            if (t.type==Token.COMMENT_MULTILINE) {

              // Continuing an MLC from a previous line
              if (inMLC) {
                // Found the end of the MLC starting on a previous line...
                if (t.endsWith(MLC_END)) {
                  int mlcEnd = t.offset + t.textCount - 1;
                  currentFold.setEndOffset(mlcEnd);
                  Fold parentFold = currentFold.getParent();
                  // Don't add fold markers for single-line blocks
                  if (currentFold.isOnSingleLine()) {
View Full Code Here


              }
 
              // Continuing a JS MLC from a previous line
              else if (inJSMLC) {
                // Found the end of the MLC starting on a previous line...
                if (t.endsWith(JSP_COMMENT_END)) {
                  int mlcEnd = t.offset + t.textCount - 1;
                  currentFold.setEndOffset(mlcEnd);
                  Fold parentFold = currentFold.getParent();
                  // Don't add fold markers for single-line blocks
                  if (currentFold.isOnSingleLine()) {
View Full Code Here

                // Otherwise, this MLC is continuing on to yet
                // another line.
              }

              // Starting a MLC that ends on a later line...
              else if (t.startsWith(MLC_START) && !t.endsWith(MLC_END)) {
                if (currentFold==null) {
                  currentFold = new Fold(FoldType.COMMENT, textArea, t.offset);
                  folds.add(currentFold);
                }
                else {
View Full Code Here

              }

              // Starting a JSP comment that ends on a later line...
              else if (language==LANGUAGE_JSP &&
                  t.startsWith(JSP_COMMENT_START) &&
                  !t.endsWith(JSP_COMMENT_END)) {
                if (currentFold==null) {
                  currentFold = new Fold(FoldType.COMMENT, textArea, t.offset);
                  folds.add(currentFold);
                }
                else {
View Full Code Here

            }

            if (inMLC) {
              // If we found the end of an MLC that started
              // on a previous line...
              if (t.endsWith(C_MLC_END)) {
                int mlcEnd = t.offset + t.textCount - 1;
                if (currentFold==null) {
                  currentFold = new Fold(FoldType.COMMENT, textArea, mlcStart);
                  currentFold.setEndOffset(mlcEnd);
                  folds.add(currentFold);
View Full Code Here

              // Otherwise, this MLC is continuing on to yet
              // another line.
            }
            else {
              // If we're an MLC that ends on a later line...
              if (t.type!=Token.COMMENT_EOL && !t.endsWith(C_MLC_END)) {
                //System.out.println("Starting MLC at: " + t.offset);
                inMLC = true;
                mlcStart = t.offset;
              }
            }
View Full Code Here

          if (t.isComment()) {

            // Continuing an MLC from a previous line
            if (inMLC) {
              // Found the end of the MLC starting on a previous line...
              if (t.endsWith(MLC_END)) {
                int mlcEnd = t.offset + t.textCount - 1;
                if (currentFold==null) {
                  currentFold = new Fold(FoldType.COMMENT, textArea, mlcStart);
                  currentFold.setEndOffset(mlcEnd);
                  folds.add(currentFold);
View Full Code Here

              // another line.
            }

            else {
              // If we're an MLC that ends on a later line...
              if (t.type==Token.COMMENT_MULTILINE && !t.endsWith(MLC_END)) {
                inMLC = true;
                mlcStart = t.offset;
              }
            }
View Full Code Here

          if (t.isComment()) {

            if (inMLC) {
              // If we found the end of an MLC that started
              // on a previous line...
              if (t.endsWith(C_MLC_END)) {
                int mlcEnd = t.offset + t.textCount - 1;
                if (currentFold==null) {
                  currentFold = new Fold(FoldType.COMMENT, textArea, mlcStart);
                  currentFold.setEndOffset(mlcEnd);
                  folds.add(currentFold);
View Full Code Here

              // Otherwise, this MLC is continuing on to yet
              // another line.
            }
            else {
              // If we're an MLC that ends on a later line...
              if (t.type!=Token.COMMENT_EOL && !t.endsWith(C_MLC_END)) {
                //System.out.println("Starting MLC at: " + t.offset);
                inMLC = true;
                mlcStart = t.offset;
              }
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.