Pārlūkot izejas kodu

Merge commit '3d004d253226e6b410e0179cffa6ed1c2d83ebfb' into develop

Mark Sibly 8 gadi atpakaļ
vecāks
revīzija
329c8460f0
2 mainītis faili ar 25 papildinājumiem un 3 dzēšanām
  1. 24 2
      src/ted2go/README.md
  2. 1 1
      src/ted2go/parser/Monkey2Parser.monkey2

+ 24 - 2
src/ted2go/README.md

@@ -1,6 +1,8 @@
 # Ted2Go
 # Ted2Go
 An IDE for Monkey2 programming language.
 An IDE for Monkey2 programming language.
 
 
+Binaries for MacOS and Windows are available at [itch.io](https://nerobot.itch.io/ted2go).
+
 ## Benefits & Goals
 ## Benefits & Goals
 * Autocompletion for keywords, modules and user's code (WIP).
 * Autocompletion for keywords, modules and user's code (WIP).
 * On-the-fly parser - see errors w/o build (not all errors).
 * On-the-fly parser - see errors w/o build (not all errors).
@@ -10,7 +12,27 @@ An IDE for Monkey2 programming language.
 * Doc's hints directly inside of code area (todo).
 * Doc's hints directly inside of code area (todo).
 
 
 ## More info
 ## More info
-Discussion page: http://monkeycoder.co.nz/forums/topic/ted2go-fork/
+Discuss on [forum page](http://monkeycoder.co.nz/forums/topic/ted2go-fork/).
 
 
 ## Monkey <-> money :)
 ## Monkey <-> money :)
-Support me if you like this project: https://paypal.me/engor
+Support me if you like this project:
+* [PayPal](https://paypal.me/engor)
+* Payed downloading [from itch.io](https://nerobot.itch.io/ted2go)
+
+## Notes for contributors
+Please, take a look at code style. It based on original Ted2.
+
+Will be super-cool if you can write the same style to make this project consistent.
+
+`Local abc:="ABC"` ' there is no spaces in assignment
+
+`digit=8`
+
+`callSomeMethod( param1,param2 )` 'there are spaces in bracket bounds
+
+```
+Method check:Bool( value:Double ) 'spaces in declaration
+                          ' empty line after method name (can ignore if there is one-line body)
+   Return value > 1.75
+End
+```

+ 1 - 1
src/ted2go/parser/Monkey2Parser.monkey2

@@ -484,7 +484,7 @@ Class Monkey2Parser Extends CodeParserPlugin
 		
 		
 		If isSelf Or isSuper
 		If isSelf Or isSuper
 		
 		
-			item=scope.NearestClassScope
+			If scope Then item=scope.NearestClassScope
 			
 			
 		Else ' not 'self' ident
 		Else ' not 'self' ident