Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TaskPaper scanner #39

Merged
merged 1 commit into from Jun 12, 2013
Merged

TaskPaper scanner #39

merged 1 commit into from Jun 12, 2013

Conversation

shimomura1004
Copy link
Contributor

Hi, there.

I've written a scanner for TaskPaper.
TaskPaper is not a programming language but a text-based todo management tool.

It's syntax is very simple:

  • The lines that contain ':' are treated as a project
  • The lines that start with '-' are treated as a task
  • Other lines are treated as a comment

For example:

Household chores:
    - Pick up the milk
    - Do the laundry
Programming:
    CodeRay:
        - Fork coderay @done
        - Write a taskpaper scanner @done
        - Send pull request
    Others:
        - ...

Thanks for reading.
Sho SHIMOMURA.

@nathany
Copy link
Contributor

nathany commented Oct 28, 2012

@shimomura1004 There needs to be more example code for testing, such as the @done syntax.

@ghost ghost assigned korny Oct 28, 2012
@shimomura1004
Copy link
Contributor Author

I'm very sorry for this late reply and poor explanation.
Here is exapmle code.

Household chores:
    - Pick up the milk @due(today)
      Bargain day!
    - Do the laundry @done
Programming:
    CodeRay:
        - Fork coderay @done(2012-10-21)
        - Write a taskpaper scanner @done
          probably just write scanners/taskppaer.rb
        - Send pull request @done(2012-10-22)
    Others:
        - ...

'Househould chores' and 'Programming' are projects.
'CodeRay' and 'Others' are subproject of 'Programming'.
We can add any tags (a word starts with '@') to tasks.
Especially tasks tagged with '@done' are highlighted as completed.

Thanks.

@korny
Copy link
Member

korny commented Jun 12, 2013

Hi @shimomura1004, thanks for the Pull request! Finally I get around to look at it.

Adding two new token kinds (that seem very special in meaning) is problematic. I suggest using .namespace for :project, and :comment for :completed.

@korny
Copy link
Member

korny commented Jun 12, 2013

I've been playing around with the token kinds a bit: https://github.com/rubychan/coderay/compare/taskpaper-scanner. Here's the result:

screenshot_01

A new token kind seems to be the only way to get this line-through styling. But let's call it :doneinstead.

@korny korny merged commit aeac667 into rubychan:master Jun 12, 2013
@shimomura1004
Copy link
Contributor Author

Thank you to merge my pull request and improve it!

@shimomura1004 shimomura1004 deleted the taskpaper branch June 12, 2013 14:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants