Moviga TECHNOLOGIES reported a new bug.

Summary
-------

Random indentation on very long lines

Type             : Bug
Priority         : Medium
Gambas version   : 3.8.90 (TRUNK)
Product          : Development Environment


Description
-----------

Try pasting these lines into a .class file and it gives a seemignly random 
indentaion on some lines when hitting CTRL+F:


Private $sKeywords As String[] = ["APPEND", "AS", "BREAK", "BYREF", "CASE", 
"CATCH", "CLASS", "CLOSE", "CONST", "CONTINUE", "COPY", "CREATE", "DEBUG", 
"DEC", "DEFAULT", "DIM", "DO", "EACH", "ELSE", "END", "ENDIF", "ERROR", 
"EVENT", "EXEC", "EXPORT", "EXTERN", "FALSE", "FINALLY", "FLUSH", "FOR", 
"FUNCTION", "GOTO", "IF", "IN", "INC", "INHERITS", "INPUT", "FROM", "IS", 
"KILL", "LAST", "LIBRARY", "LIKE", "LINE INPUT", "LINK", "LOCK", "LOOP", "ME", 
"MKDIR", "MOVE", "NEW", "NEXT", "NULL", "OPEN", "OPTIONAL", "OUTPUT", "PIPE", 
"PRINT", "PRIVATE", "PROCEDURE", "PROPERTY", "PUBLIC", "QUIT", "RAISE", 
"RANDOMIZE", "READ", "REPEAT", "RETURN", "RMDIR", "SEEK", "SELECT", "SHELL", 
"SLEEP", "STATIC", "STEP", "STOP", "SUB", "SUPER", "SWAP", "THEN", "TO", 
"TRUE", "TRY", "UNLOCK", "UNTIL", "WAIT", "WATCH", "WEND", "WHILE", "WITH", 
"WRITE"]
  Private $sFunctions As String[] = ["Abs", "Access", "Acos", "Acosh", "Alloc", 
"Ang", "Asc", "ASin", "ASinh", "Asl", "Asr", "Assign", "Atan", "ATan2", 
"ATanh", "BChg", "BClr", "Bin", "BSet", "BTst", "CBool", "Cbr", "CByte", 
"CDate", "CFloat", "Choose", "Chr", "CInt", "CLong", "Comp", "Conv", "Cos", 
"Cosh", "CShort", "CSng", "CStr", "DateAdd", "DateDiff", "Day", "DConv", "Deg", 
"DFree", "Dir", "Eof", "Eval", "Exist", "Exp", "Exp10", "Exp2", "Expm", "Fix", 
"Format", "Frac", "Free", "Hex", "Hour", "Hyp", "Iif", "InStr", "Int", 
"IsAscii", "IsBlank", "IsBoolean", "IsByte", "IsDate", "IsDigit", "IsDir", 
"IsFloat", "IsHexa", "IsInteger", "IsLCase", "IsLetter", "IsLong", "IsNull", 
"IsNumber", "IsObject", "IsPunct", "IsShort", "IsSingle", "IsSpace", 
"IsString", "IsUCase", "IsVariant", "LCase", "Left", "Len", "Lof", "Log", 
"Log10", "Log2", "Logp", "Lsl", "Lsr", "LTrim", "Mag", "Max", "Mid", "Min", 
"Minute", "Month", "Now", "Quote", "Rad", "RDir", "Realloc", "Replace", 
"Right", "RInStr", "Rnd"
 , "Rol", "Ror", "Round", "RTrim", "Scan", "SConv", "Second", "Seek", "Sgn", 
"Shl", "Shr", "Sin", "Sinh", "Space", "Split", "Sqr", "Stat", "Str", "StrPtr", 
"Subst", "Tan", "Tanh", "Temp$", "Time", "Timer", "Tr", "Trim", "TypeOf", 
"UCase", "Unquote", "Val", "VarPtr", "Week", "WeekDay", "Year"]
  Private $sStringFunctions As String[] = ["Bin$", "Chr$", "Conv$", "DConv$", 
"Format$", "Hex$", "LCase$", "Left$", "LTrim$", "Mid$", "Quote$", "Replace$", 
"Right$", "SConv$", "Space$", "Str$", "String$", "Subst$", "Tr$", "Trim$", 
"UCase$", "Unquote$"]
Private $sDatatypes As String[] = ["Boolean", "Byte", "Short", "Integer", 
"Long", "Single", "Float", "Date", "String", "Variant", "Object", "Pointer", 
"File"]
Private $sOperators As String[] = ["AND", "DIV", "MOD", "NOT", "OR", "XOR"]
Private $sObjClss As String[] = ["Application", "Array", "Byte[]", 
"Collection", "Component", "Enum", "Observer", "Param", "Process", "Stream", 
"System", "User", "Chart", "Compress", "Crypt", "Blob", "Connection", "DB", 
"Database", "DatabaseUser", "Field", "Index", "Result", "ResultField", "Table", 
"DataBrowser", "DataCombo", "DataControl", "DataSource", "DataView", "Desktop", 
"DesktopFile", "Balloon", "ColorButton", "ColorChooser", "DateChooser", 
"DirChooser", "DirView", "Expander", "FileChooser", "FileView", "FontChooser", 
"InputBox", "ListContainer", "SidePanel", "Stock", "TableView", "ToolPanel", 
"ValueBox", "Wizard", "Dialog", "ToolBar", "WorkSpace", "DnsClient", 
"SerialPort", "ServerSocket", "Socket", "UdpSocket", "FtpClient", "HttpClient", 
"SmtpClient", "Regexp", "Action", "Button", "CheckBox", "ColumnView", 
"ComboBox", "Draw", "Container", "Control", "Cursor", "DrawingArea", 
"Embedder", "Font", "Form", "Frame", "GridView", "HBox", "HPanel", "HSplit", 
"IconView", "Image", "Key
 ", "Label", "Line", "ListBox", "ListView", "Menu", "Message", "Mouse", 
"MovieBox", "Panel", "Picture", "PictureBox", "ProgressBar", "RadioButton", 
"ScrollBar", "ScrollView", "Separator", "Slider", "SpinBox", "TabStrip", 
"TextArea", "TextBox", "TextLabel", "ToggleButton", "TrayIcon", "TreeView", 
"VBox", "VPanel", "VSplit", "Watcher", "Window", "Dial", "Editor", "LCDNumber", 
"Printer", "TextEdit", "WebBrowser", "GLarea", "Report", "ReportCloner", 
"ReportContainer", "ReportControl", "ReportDrawing", "ReportField", 
"ReportHBox", "ReportImage", "ReportLabel", "ReportSection", 
"ReportSpecialField", "ReportTextLabel", "ReportVBox", "CDRom", "Channel", 
"Music", "Sound", "Settings", "VideoDevice", "Vb", "CGI", "HTML", "Request", 
"Response", "Session", "XmlDocument", "XmlNode", "XmlReader", 
"XmlReaderNodeType", "XmlWriter", "RpcArray", "RpcClient", "RpcFunction", 
"RpcServer", "RpcStruct", "RpcType", "XmlRpc", "Xslt"]
  Private $sConstants As String[] = ["Pi"]
Private $sSymbols As String[] = ["&", "&=", "&/", "*", "*=", "+", "+=", "-", 
"-=", "//", "/", "/=", "=", "==", "\\", "\\=", "^", "^=", "[", "]", "{", "}", 
"<", ">", "<>", "<=", ">="]





------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to