diff options
| author | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
|---|---|---|
| committer | Joe Mueller <unknown> | 2015-07-30 14:35:17 +1000 | 
| commit | 58471e908a3b74b27379bb19a13d62cd8d4476b0 (patch) | |
| tree | 8f61293f34d008fea20584c631d23e58b3fe53aa /lexers/LexBibTeX.cxx | |
| parent | 2270ab97445c6f12bd0fddb273ab617fdb421594 (diff) | |
| download | scintilla-mirror-58471e908a3b74b27379bb19a13d62cd8d4476b0.tar.gz | |
Use Sci_Position / Sci_PositionU for variables in lexers that represent
positions and line numbers and may be widened to 64-bits in a future release.
Diffstat (limited to 'lexers/LexBibTeX.cxx')
| -rw-r--r-- | lexers/LexBibTeX.cxx | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/lexers/LexBibTeX.cxx b/lexers/LexBibTeX.cxx index bab02842a..fef58a9b0 100644 --- a/lexers/LexBibTeX.cxx +++ b/lexers/LexBibTeX.cxx @@ -94,7 +94,7 @@ namespace {  		styler.StartAt(start_pos);  		styler.StartSegment(start_pos); -		int current_line = styler.GetLine(start_pos); +		Sci_Position current_line = styler.GetLine(start_pos);  		int prev_level = styler.LevelAt(current_line) & SC_FOLDLEVELNUMBERMASK;  		int current_level = prev_level;  		int visible_chars = 0; @@ -153,7 +153,7 @@ namespace {  					sc.SetState(SCE_BIBTEX_DEFAULT); // Don't colorize the =  					sc.ForwardSetState(SCE_BIBTEX_VALUE); // Parameter value colorization -					int start = sc.currentPos; +					Sci_Position start = sc.currentPos;  					// We need to handle multiple situations:  					// 1. name"one two {three}" @@ -227,12 +227,12 @@ namespace {  						state = SCE_BIBTEX_DEFAULT;  					} -					int end = sc.currentPos; +					Sci_Position end = sc.currentPos;  					current_line = styler.GetLine(end);  					// We have possibly skipped some lines, so the folding levels  					// have to be adjusted separately -					for (int i = styler.GetLine(start); i <= styler.GetLine(end); ++i) +					for (Sci_Position i = styler.GetLine(start); i <= styler.GetLine(end); ++i)  						styler.SetLevel(i, prev_level);  					sc.ForwardSetState(state); | 
