Comments (14)
Since I didn't start this one yet, let's push it to 1.2.
from coderay.
Hi! I need this. What do you need to get rolling?
from coderay.
More free time ;-)
And example code, lots of crazy syntax examples.
from coderay.
I have a few Objective-C books I may be able to pull examples from.
from coderay.
I have more than few projects to pull code from.
Josef Salyer
@josefsalyer
480.286.5875
On Jul 26, 2013, at 12:16 PM, Nathan Youngman [email protected] wrote:
I have a few Objective-C books I may be able to pull examples from.
—
Reply to this email directly or view it on GitHub.
from coderay.
Cool. Checkout the https://github.com/rubychan/coderay-scanner-tests repo.
from coderay.
I forked it and checked it out. Is there a particular git workflow that I
should use? Also, where is a good place to drop sample .h/.m files?
On Fri, Jul 26, 2013 at 5:31 PM, Nathan Youngman
[email protected]:
Cool. Checkout the https://github.com/rubychan/coderay-scanner-tests repo.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/46#issuecomment-21649480
.
from coderay.
You'll need to create an objective-c folder with some .in.m files, just take a peek at how the other languages do it. I'm pretty sure there is a rake test to do some setup for you, but I don't remember off-hand. Feature branch + pull request would be grande.
from coderay.
The easiest way should be to check out the CodeRay repo and just run rake test:scanners
. It checks out coderay-scanner-tests
automatically then into a subfolder.
from coderay.
I'd like to start working on this one.
Are the guidelines still valid?
Is there any previous work I should be aware of?
from coderay.
Are the guidelines still valid?
Yes.
Is there any previous work I should be aware of?
Only what's in this PR, afaik.
from coderay.
Ok, thanks.
I think I'll base my work on the C scanner, as Objective-C is a strict superset of C.
from coderay.
Good idea. I guess for some things you need nested states or multiple state variables. Other scanners should give you lots of examples how to approach this, but I found using a new method optimized for each language to be the best way.
from coderay.
Ok, thanks. I'll definitely ask here when I reach that stage.
80% of the work should be about recognizing the object oriented layer, that thankfully has a very precise syntax borrowed from Smalltalk.
I'll also need to consider all tokens starting with 2 capital letters as Class names, as that is the Objective-C convention.
from coderay.
Related Issues (20)
- Could the API for CodeRay.scan(dataset, :python).term also allow for some variant that works on the file extension? (e. g. "rb" for ruby files, "py" or python files etc..)
- ActionView::Template::Error (Symbol or String expected, but NilClass given.)
- Elixir Scanner HOT 1
- Regex with slashes are broken for Javascript
- add 1C Enterprise syntax
- Placeholder $ character in prepared statements (SQL) is marked invalid
- Misaligned line numbers in diff files with `line_numbers: :inline` HOT 1
- Install coderay with permission error in macosx HOT 1
- Invalid rdoc option in gemspec
- CodeRay hangs on multi-code in content
- Add support for CakePHP ctp template
- Support for Kotlin
- Coderay breaks with embedded backticks
- Uninitialized constant Coderay (Redmine 4.1)
- $ method in Groovy code is highlighted as error
- ruby 3.0: test/unit/suite.rb fails due to change in flatten behavior for subclass of Array
- Support for C#
- Support for GraphQL
- License? HOT 1
- Can we easily redefine the colours? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coderay.