Changeset 9223 for trunk/tools/vslick/kdev.e
- Timestamp:
- Sep 12, 2002, 12:31:01 AM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/vslick/kdev.e
r9222 r9223 1 /* $Id: kdev.e,v 1. 2 2002-09-11 02:53:32bird Exp $1 /* $Id: kdev.e,v 1.3 2002-09-11 22:31:01 bird Exp $ 2 2 * 3 3 * Visual SlickEdit Documentation Macros. … … 123 123 static int k_alignup(int iValue, iAlign) 124 124 { 125 if (iAlign <= 0) 126 { 127 message('k_alignup: iValue='iValue ' iAlign='iAlign); 128 iAlign = 4; 129 } 125 130 return ((iValue intdiv iAlign) + 1) * iAlign; 126 131 } … … 154 159 * Found extension. 155 160 */ 156 sLeft = eq_name2value('left',sLine);157 sRight = eq_name2value('right',sLine);161 sLeft = strip(eq_name2value('left',sLine)); 162 sRight = strip(eq_name2value('right',sLine)); 158 163 159 164 /* Read comment column too */ … … 181 186 static boolean k_line_comment() 182 187 { 183 boolean fLineComment;184 fLineComment = 0;188 _str sRight = ''; 189 boolean fLineComment = false; 185 190 if (k_readboxconfig(sLeft, sRight, iColumn)) 186 191 fLineComment = (sRight == '' || iColumn > 0); … … 856 861 { 857 862 sText = k_comment(); 858 sText = substr(sText, length(sText)); 859 } 860 if (length(sText) == 1) 861 sText = ' ':+sText; 863 sText = ' ':+substr(sText, length(sText)); 864 } 865 862 866 if (sStr != '') 863 867 sText = sText:+' ':+sStr; … … 889 893 { 890 894 if (k_line_comment()) 891 {892 895 sText = k_comment(); 893 if (length(sText) == 1)894 sText = ' ':+sText;895 }896 896 else 897 897 { … … 945 945 int iCursorLine; 946 946 int iPadd = k_alignup(11, p_SyntaxIndent); 947 948 947 /* look for parameters */ 949 948 boolean fFoundFn = !k_func_goto_nearest_function(); … … 1050 1049 case 'GPL': 1051 1050 sProg = skProgram; 1051 k_javadoc_box_line() 1052 1052 if (sProg == '') 1053 1053 sProg = 'This program'; … … 1074 1074 case 'LGPL': 1075 1075 sProg = skProgram; 1076 k_javadoc_box_line() 1076 1077 if (sProg == '') 1077 1078 sProg = 'This program';
Note:
See TracChangeset
for help on using the changeset viewer.